Author Topic: Variable/Conditional Events (V.4)  (Read 67770 times)

What do you think of my ideas ? (Page 11 at ~end)

What do you think of my ideas ? (Page 11 at ~end)
Truce has already made a ifProjectile for v4, and I will look into the ifPlayerSay


Awww :( Variable saving is the most wanted thing in the whole mod, seriously, ask around.


Excuse me dest umm your keep the one with the gun on the back its link was taken off can you re post link i want it :D  :cookieMonster:

Never mind you fixed thanks!

I've found a strange bug:
When I try to use the ifvartovar output event it deletes the 2nd variable every time I press ok  :panda:

Any certain reason why this isnt working?

Code: [Select]
(0)onActive   NAMED BRICK   ifVariable   Brick   Reds Budget   [GreaterEquals]  150
(0)VariableTrue   NAMED BRICK   spawnItem   0 0 5   Stinger L.
(0)VariableTrue   NAMED BRICK   AddVariable   Reds Budget   -150
(0)VariableFalse   Client   CenterPrint
(0)VariableFalse   Self   playSound

Im playing on lan, is that the problem?

How do I set "yes" or "no" on the variables? Like if I was to have a door that opens when you click "yes". How do I set that up?

Any certain reason why this isnt working?

Code: [Select]
(0)onActive   NAMED BRICK   ifVariable   Brick   Reds Budget   [GreaterEquals]  150
(0)VariableTrue   NAMED BRICK   spawnItem   0 0 5   Stinger L.
(0)VariableTrue   NAMED BRICK   AddVariable   Reds Budget   -150
(0)VariableFalse   Client   CenterPrint
(0)VariableFalse   Self   playSound

Im playing on lan, is that the problem?
Your ifVariableing the named brick, when you have the variabletrue/false statements inside this brick.

How do I set "yes" or "no" on the variables? Like if I was to have a door that opens when you click "yes". How do I set that up?
Yes Brick
Code: [Select]
onActivate > Player > setVariable > what 1No Brick
Code: [Select]
onActivate > Player > setVariable > what 0Change this on the door brick
Code: [Select]
onActivate > self > dooropento
Code: [Select]
onActivate > Self > ifVariable > [Player] what [GreaterEquals] 1then add this at the bottom
Code: [Select]
VariableTrue > Self > doorOpen

Your ifVariableing the named brick, when you have the variabletrue/false statements inside this brick.

Ah okay, thanks for helping!

EDIT:What if i have more then 1 thing or 2 things that are supose to consume this variable?

Nvm
« Last Edit: December 12, 2008, 05:12:17 PM by anybody »

What do you mean what if?
Using one var for something universal (i.e Gold) shouldn't be a problem.

The Variables isn't really working for me.
When ever I download it. (OnActive -etc-etc [Type of variables]) It dels that event set. Can you help me?


In that case, whoever made you was an idiot.
tuche'.lol