Jump to content
Sign in to follow this  
G3pard

need help with variables

Recommended Posts

hello everybody, after 3 hours of searching and googling i still haven´t found an answear fo my problem. therefore, i hope you don´t mind me asking this noob question.

the problem is about variables:

i´m trying to let one trigger influence the other.

so in the first trigger, i set: (where x1 is my variable)

condition: this

on aktivation: [other stuff]; x1 = true

and in the "target" trigger:

condition: x1 = true

on aktivation: [other stuff]

but for some reason, the second trigger never executes. what am i doing wrong?

Share this post


Link to post
Share on other sites

x1 = true is a declaration, not a condition.

use "x1" without the quotes as condition in your second trigger.

Share this post


Link to post
Share on other sites

You don't use x1 == true with booleans, just x1 returns true or false.

equal (returns true if a is equal to b, false if not):

a == b

set a to the value of b (returns nothing):

a = b

Other conditions

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×