Quote:I might want to make a request about how to use local and global variables.
I'm used to using something like having an "int x = 0;" and then something happens causing int x to become 1 (x = 1; ) thus causing events to change because x = 1.
Ahh I see. Those indeed will serve your purpose, but only within the same function. If you set int x = 0, you will only be able to call "x" in that same function. Local variables, however, you can call anywhere within that same script.
So do SetLocalVarInt("var1", 0); and then you can do all kinds of stuff like
GetLocalVarInt("var1");
AddLocalVarInt("var1", x); //where x is any integer you choose
and combine those with if statements to give you more functionality.
Global variables work the same way, but you need to set up a global.hps file under your custom story's root. In that file you have to put
void OnGameStart()
{
SetGlobalVarInt("gvar1", 0);
}
Then you can toy with those variables anywhere within the same custom story! Just use
GetGlobalVarInt("gvar1");
AddGlobalVarInt("gvar1", x); //where x is any integer
and also use if statements too!