TDS Self switch control
Version: 1.0
Author: TDS
Date:Jul 5 2008
Version History
- <Version 1.0> 07.05.2008 Release
Description
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
Instructions
Put this in a call script to use the effect of the script.
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:
control_self_switch(1, 2, 'A', true)
Script
#=============================================================================
# ** TDS Self Switch Control
# Version: 1.0
#------------------------------------------------------------------------------
# This script allows to change more easily the state of a self switch in events
# even if they are not on the current map.
#==============================================================================
# WARNING:
#
# Do not release, distribute or change my work without my expressed written
# consent, doing so violates the terms of use of this work.
#
# * Not Knowing English or understanding these terms will not excuse you in any
# way from the consequenses.
#
# * This applies to all of my work whether they have thiss notice or not.
#
# Contact Email: Sephirothtds@hotmail.com
#==============================================================================
#--------------------------------------------------------------------------
# * Control Self Switch
# map_id : ID of map
# event_id : ID of event
# self_switch : Self switch ( 'A', 'B', 'C', 'D')
# value : Set value of activation (True or False)
#--------------------------------------------------------------------------
def control_self_switch(map_id, event_id, self_switch, value)
key = [map_id, event_id, self_switch]
$game_self_switches[key] = value
$game_map.refresh
end
Credit
Support
On this topic.
Known Compatibility Issues
None that I'm aware of.
Demo
None needed unless someone finds it too hard to understand the script.
Author's Notes
Enjoy.
Restrictions
Free to use on any project with proper credit.