okay i have a huge problem with "SetGlobalVarInt".
i heard that it could cause problems to use "AddGlobalVarInt", so i just use Set.
each time i run the custom story, it gives me an error that says,
"LanternInt is not declared"
please help, since i don't know what to do anymore.
the code(left out unneccesarys):
void OnStart()
{
SetGlobalVarInt("LanternInt", 0);
}
void OnEnter()
{
if(GetGlobalVarInt(LanternInt) == 0)
{
SetLevelDoorLocked("level_dungeon_1", true);
}
if(GetGlobalVarInt(LanternInt) == 1)
{
SetLevelDoorLocked("level_dungeon_1", false);
}
}