Reply to Re: Globals and the if statement
If you don't have an account, just leave the password field blank.
I'll explain. You can create a global with:
make_global_int("&story", 0);
If you want to let something happen when it's value is 3, then you should do this in a script:
if (&story == 3)
{
//let something happen
}
You see, you'll need to use 2 '=' to let it work. Then you can change the value of the variable to 4 with this:
&story = 4;
See, it ain't that hard
. Also, you should download the DinkC reference - it's a big help when you're working with the commands.
make_global_int("&story", 0);
If you want to let something happen when it's value is 3, then you should do this in a script:
if (&story == 3)
{
//let something happen
}
You see, you'll need to use 2 '=' to let it work. Then you can change the value of the variable to 4 with this:
&story = 4;
See, it ain't that hard
