So I'm trying to rewrite a bunch of conditional events into JavaScript because I need a little fine-tuning with how well they work. It has lag because it reads everything 1 line at a time and it doesn't flow in game like I want it to. However I'm very new to JavaScript so I'm learning as I go.
So I was having an issue having it load into a variable but I think I figured that part out.
$gameVariables.setValue(19, Math.randomInt(100) + 1);
Let me know if I've done something wrong here.
Now my issue is the IF statements... I have:
If $gameVariables.value(11) > = 1 {the code I placed up top}
But I can't seem to trigger it to make that variable work in the IF statement... Am I writing something incorrect? And how would I go about fixing it?
So I was having an issue having it load into a variable but I think I figured that part out.
$gameVariables.setValue(19, Math.randomInt(100) + 1);
Let me know if I've done something wrong here.
Now my issue is the IF statements... I have:
If $gameVariables.value(11) > = 1 {the code I placed up top}
But I can't seem to trigger it to make that variable work in the IF statement... Am I writing something incorrect? And how would I go about fixing it?