RPG Maker => General Discussion => Topic started by: Magus on October 12, 2011, 11:20:26 am
Title: I need to make this work. [RESOLVED]
Post by: Magus on October 12, 2011, 11:20:26 am
Okay, that code below isn't real, but I do want these conditions. If three switches are on (batch,) then switch rine stone turns on. Can anyone assist me?
If Control Switches:[0070..0072]= ON then Control Switches:[0073:Rine Stone]= ON
Title: Re: I need to make this work.
Post by: ForeverZer0 on October 12, 2011, 11:54:19 am
if (72...76).to_a.all? {|i| $game_switches[i] } $game_switches[77] = true end
Title: Re: I need to make this work.
Post by: Magus on October 12, 2011, 12:28:21 pm
Thanks so much. *Adds this to his objective as he learns scripting*