07-05-2008, 01:00 PM
TDS Self switch control
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
Instructions
Put this in a call script to use the effect of the script.
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:
Compatibility
Seems to work fine for now.
Credits and Thanks
TDS
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.
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