Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: Zexion on October 30, 2011, 06:39:10 pm

Title: How to Make a Switch true Through script?
Post by: Zexion on October 30, 2011, 06:39:10 pm
Okay well I'm trying to do a world select menu thing by opening a menu in events, then you click land in the menu, and it sets a switch to true(or its supposed to ._.) then another parrallel event sees the switch on, and automatically transports you to the world. But for some reason the switch won't turn on through scripts D: what am I doing wrong?


      when 0 
      $game_self_switches[WS_layout::Land] = true
        $scene = Scene_Map.new


The thing is, I use F8 or F9 to check switches and the switch is off D:
Title: Re: How to Make a Switch true Through script?
Post by: Blizzard on October 30, 2011, 06:45:27 pm
$game_self_switches is used for self-switches of events. What you want is probably $game_switches.
Title: Re: How to Make a Switch true Through script?
Post by: Zexion on October 30, 2011, 07:01:41 pm
ah shet it works now lololol