Sequencer Increment Variable
Posted: Fri Dec 10, 2021 3:57 am
Hi Tony,
please help - I'd like to increment an INT with the sequencer but cannot figure out the right syntax.
Based on the documentation and forum I already tried:
SetVariable("mGuessCounter",GetVariable("mGuessCounter")+1);
SetVariable("mGuessCounter",GetVariable("mGuessCounter").AsInt+1);
SetVariable("mGuessCounter",[var.mGuessCounter]+1);
SetVariable("mGuessCounter",[var=mGuessCounter]+1);
SetVariable("mGuessCounter",mGuessCounter+1);
SetVariable("mGuessCounter","mGuessCounter"+1);
How can I achieve this?
Thanks, Michael
(Sidenote, the Variables View in the DSFU editor does not reflect changes during Runtime so it's a bit hard to debug whether the value is not increased properly or the syntax for checking the value is wrong; is there a reason why the Variables View is not updated during Runtime?)
please help - I'd like to increment an INT with the sequencer but cannot figure out the right syntax.
Based on the documentation and forum I already tried:
SetVariable("mGuessCounter",GetVariable("mGuessCounter")+1);
SetVariable("mGuessCounter",GetVariable("mGuessCounter").AsInt+1);
SetVariable("mGuessCounter",[var.mGuessCounter]+1);
SetVariable("mGuessCounter",[var=mGuessCounter]+1);
SetVariable("mGuessCounter",mGuessCounter+1);
SetVariable("mGuessCounter","mGuessCounter"+1);
How can I achieve this?
Thanks, Michael
(Sidenote, the Variables View in the DSFU editor does not reflect changes during Runtime so it's a bit hard to debug whether the value is not increased properly or the syntax for checking the value is wrong; is there a reason why the Variables View is not updated during Runtime?)