Help - Search - Members - Calendar
Full Version: [SOLVED]Checking if a set of switches are ON
RPG RPG Revolution Forums > Game Engines > RPG Maker XP Discussion
jayje
I tried to use a cond. branch to check if a certain group of switches are on but got an error. I used $game_switches[10...14].id = true. but got an error msg. any ideas?
Kread-EX
Rather than checking if all are true, you can check in any is false.
Like this: not $game_switches[10..14].include?(false)

This will check in any switch between 10..14 is false and return false if this is the case.
jayje
Thanks Kread but i founD a fix for this. G.F.T.H.
Kread-EX
Out of curiosity, what kind of fix ?
jayje
someone posted a solution for me HERE
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.