First of all, Hi, I'm a newbie, I discover and use Wintermute since a few days... I programmed in some other platforms, but I don't know a lot about scripting language. I began to program a game in WME with the help of the documentation included, everything OK, but right now I have a problem:
It's the typical situation of the box that can be opened and closed, so it requires a true/false variable to determine if the main character can open or close it. Very simple, In "scene_init.script" I put something like this:
global Stateroom;
if(Stateroom==null)
{
Stateroom.Visited = false;
Stateroom.BoxOpen = false;
}
Everithing OK, it isn't? Well, but then, in any other .script file, I can't use "Stateroom.BoxOpen" anymore. It's just like I didn't declare it.
The log says: "Variable Stateroom is referenced but not defined". I don't understand this, I use just the same structure than in the demo, but in my game, It doesn't work.
Sorry, I know that probably it'll be a stupid newbie question, but I don't know what to do. Please, some help!