public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

MVSet another event's selfswitch

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: Set another event's selfswitch
  • Original author: dragoonkain
  • Original date: October 26, 2015
  • Source thread: https://forums.rpgmakerweb.com/threads/set-another-events-selfswitch.47669/
  • Source forum path: Game Development Engines > RPG Maker Javascript Plugins > JS Plugin Releases (RMMV)

Summary

Sometimes I have found that it seems onerous or wasteful to create map/global switches for one-off events. Sometimes I wish I could have a cutscene event tell another event that it needs to change its state and keep those state changes local/encapsulated to each event.  I've added a plugin command called SELFSWITCH which will allow one event to control the "self switch" of another event.  SELFSWITCH [switch=A|B|C|D] [value=ON|OFF]E.g.: SELFSWITCH 1 A ONThere may be a better way to accomplish this but I hope maybe this little script will come in...

Archived First Post

Sometimes I have found that it seems onerous or wasteful to create map/global switches for one-off events. Sometimes I wish I could have a cutscene event tell another event that it needs to change its state and keep those state changes local/encapsulated to each event. 

I've added a plugin command called SELFSWITCH which will allow one event to control the "self switch" of another event. 

SELFSWITCH <event_id> [switch=A|B|C|D] [value=ON|OFF]E.g.:

SELFSWITCH 1 A ONThere may be a better way to accomplish this but I hope maybe this little script will come in handy for someone else.

https://github.com/caseylutz/KCL-MV/blob/master/KCL_SetSelfSwitch.js

If you use a helper library, FindEventByName, then you can call out your event ID by its canonical name rather than its event ID number.

https://github.com/caseylutz/KCL-MV/blob/master/KCL_FindEventByName.js

E.g.:

SELFSWITCH ENGLISH_VILLAGER_001 B ONNote: You may omit the switch and value parameters. The defaults will be "A" and "ON" respectively. 

EDIT: Plug-in moved to GitHub. 

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#039#rmmv#plugin-archive

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar