Local variables

Started by kantor_98, Thu 05/01/2006 12:42:13

Previous topic - Next topic

kantor_98

I modify a local variable in a screen.Then I get out. When I get in again in the first screen (in which I modified the local variable) I find out that the local var has the modified value and not the initial value (the value with which this var was initialised). It was only an accident or I can usually work with this ?
My intention is not to use the local variable in other screen, but to keep in mind the status of some objects while I go to other screens.

Ashen

If I understand the question correctly:
Local (room-specific) variables store their values when you leave the room. So, unless you have something in one of the Player enters screen interactions that resets the value, you can indeed use local variables to store the status of objects, etc, while you're in another room.
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk