Main Menu
  • Welcome to The RPG Maker Resource Kit.

[Resolved] (vx) remote conditional self-switch

Started by Mushu, August 27, 2011, 04:41:08 PM

0 Members and 1 Guest are viewing this topic.

Mushu

Is there any way to make a conditional branch that checks the status of another events self switch?
ex: if event X's control switch is set to A
          then bla bla bla
I need this because I have a moving event that responds with event touch but I also want it to switch A off using switches or variables (using another event and TDS's remote self switch controller) since 'event touch' doesnt check status until it is ran into. This kind of stuff would be very useful for traps and the like.
Pretty much I want a remote event to check another's self switch and switch it when condition is met.

cozziekuns


Conditional Branch: Script - $game_self_switches[map_id, event_id, self_switch_character]


So if I wanted to check if the self switch "A" of the event with the id of 6, on the map with the id of 1, I would put:


$game_self_switches[1, 6, "A"]


in my conditional branch.

Mushu