I'm trying to get an intro sequence working after the first screen (intro.rm), so I figured the best way would be to run If statement, and put all the action in there.
I figured creating a variable, starting it at 0, having the IF statement be something like
IF (intro == 0) {
"Scripted events here";
Intro == 1;
}
But I can't seem to get the IF statement to work through the interface. I try to select the global variable Intro I created, but it keeps telling me that it's IF (0 == 0){
Well no DUH 0 == 0.
How can I script my opening sequence to only run once? I think I'm on the right track, but I'm only just missing the mark.
Figures that no less then one minute after I post the question, after almost an hour of wracking my brain, I finall get it.
Never mind guys. I got it working. :P
if (intro == 0) {
"Scripted events here";
intro = 1;
}
Beware of cases and note that:
Single = is for assignment of values
Double == is for value comparisons.
Also, check that you indeed had the variable intro declared on top of the script:
int intro;