How to Make a Switch true Through script?

Started by Zexion, October 30, 2011, 06:39:10 pm

Previous topic - Next topic

Zexion

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:

Blizzard

$game_self_switches is used for self-switches of events. What you want is probably $game_switches.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Zexion

October 30, 2011, 07:01:41 pm #2 Last Edit: October 30, 2011, 07:03:26 pm by Zexion
ah shet it works now lololol