Chaos Project

RPG Maker => RPG Maker Scripts => Topic started by: Heretic86 on July 14, 2012, 04:06:33 am

Title: Change Event Self Switches from Move Route Script?
Post by: Heretic86 on July 14, 2012, 04:06:33 am
Hopefully an 'easy' question for experienced scripters...

So here is what Im trying to do.  Take an event.  Do something with the event.  But while the event is doing what I want it to be doing (waiting), I want to be able to turn off a Self Switch from Set Move Route -> Script so whatever I want the event to do doesnt force the Player to wait for it.  At the end of its thing, I just wanna be able to turn on / off a Self Switch from the Move Route without using a Wait or Wait for Move's Completion (causing the player to wait).  I know I can very very easily just use one of the button commands, and I can also change Game Switches (not Self Switches) from Move Route.  How can I do this hopefully in one short line of code?  $game_map.events[@event_id].self_switch_a = true / false

Oh yeah, XP...
Title: Re: Change Event Self Switches from Move Route Script?
Post by: LiTTleDRAgo on July 14, 2012, 05:26:53 am
at event move route command, insert this script

Quote$game_self_switches[[MAP_ID, EVENT_ID, 'A' / 'B' / 'C'/ 'D']] = true / false


and below that script, insert again this script

Quote$game_map.need_refresh = true
Title: Re: Change Event Self Switches from Move Route Script?
Post by: Heretic86 on July 14, 2012, 06:53:50 am
Thank you!