Change Event Self Switches from Move Route Script?

Started by Heretic86, July 14, 2012, 04:06:33 am

Previous topic - Next topic

Heretic86

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...
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

LiTTleDRAgo

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

Heretic86

Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)