Save-Point
Self switch control - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Archives (https://www.save-point.org/forum-105.html)
+--- Forum: Creation Asylum Archives (https://www.save-point.org/forum-90.html)
+---- Forum: Scripts & Code Snippets (https://www.save-point.org/forum-92.html)
+----- Forum: RPG Maker VX Code (https://www.save-point.org/forum-101.html)
+----- Thread: Self switch control (/thread-7078.html)



Self switch control - Sephirothtds - 07-05-2008

TDS Self switch control

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


Introduction

Just a simple script that allows you to control self switches of events even if they are on other maps.

Features

* Turns self switches on and off with a simple call script
* Allows you to control self switches from events on other maps


Script

"Script"

Instructions

Put this in a call script to use the effect of the script.

Code:
control_self_switch(map_id, event_id, self_switch, value)

map_id = ID of the map where the event is
event_id = ID of the event you wish to use
self_switch = Self switch to change value('A', 'B', 'C', 'D')
value = true or false

Example:
Code:
control_self_switch(1,  2,  'A',  true)


Compatibility
Seems to work fine for now.

Credits and Thanks
TDS