View Single Post
Old September 16th, 2012 (9:42 AM).
FL's Avatar
FL FL is offline
Pokémon Island Creator
    Join Date: Sep 2010
    Gender: Male
    Posts: 1,719
    Essentials have Temporary Self-Switches, I didn't found about this on wikia, so I'm posting the old notes:

    Originally Posted by Old notes
    Temporary Self-Switches

    Each event in the game comes with a set of temporary self switches. This set is cleared whenever a map is entered. To check whether a temporary self switch is on, use a switch named "s:tsOn?(X)" where X is one of "A", "B", "C", or "D". To check whether it's off, use a switch named s:tsOff?(X). To turn a temporary self switch on or off, use a Script event command like the following:


    Temporary self switches are currently used in doors. They also have other uses where stand-alone stateful events are desired.
    You can also access the regular Self Switch using the scripts 'pbSetSelfSwitch(event, switch,value)' and '$game_self_switches[[mapid,event,switch]]=value'. The last one needs '$game_map.need_refresh = true'
    Reply With Quote