Boolean Value and JavaScript

Im trying to set a group of variables to true using an execute javascript trigger.

There are lots of variables so I would like to do it all with the one trigger.

player.SetVar("PreflightComplete",true);

I have a text field with %PreflightComplete% so that i can see the value of the variable and it does change. But any triggers based on that variable dont seem to fire.

I have now just reverted to using several triggers to change the variables to True and everything works fine. Is there a special way to set a storyline boolean variable through JS? it seems like the JS is somehow just passing a string.

 

 

1 Reply