TWBaseTrap

If you have used NVScript you will be familiar with the facilities supported by the NVTrap base script. I have replicated the features provided by NVTrap and added some new features. All scripts whose names begin with TWTrap, or link to this document from their documentation page, understand the paramters listed below ([ScriptName] here is the name of the script as you entered it into the S -> Scripts property)

Parameter: [ScriptName]On

Allows you to control which script message should activate the trap.

Parameter: [ScriptName]Off

Allows you to control which script message should deactivate the trap.

Parameter: [ScriptName]Count

Lets you specify how many times the script will work. You can replicate the behaviour of the Once Trap Control Flag by setting this to [ScriptName]Count=1. To reset the count to zero, sent the trap a ResetCount message.

Parameter: [ScriptName]CountOnly

Controls whether On, Off, or both count against the limit counter. This can be set to 'On' or 1 so that only 'On' messages increase the count, or 'Off' or 2 so that only 'Off' messages increase the count.

Parameter: [ScriptName]CountFalloff

Lets you make the use count decrease over time. This specifies the time, in milliseconds (actually, sim time ticks) that it takes to decrease the count by 1.

Parameter: [ScriptName][On/Off]Capacitor

Specify the number of times the trap needs to receive an on or off message before it will actually activate or deactivate.

Parameter: [ScriptName][On/Off]CapacitorFalloff

How long it takes for the capacitor to 'lose charge'. This is the time in milliseconds that it takes to lose one activation.

Parameter: [ScriptName]Debug

Enable or disable debugging output from the script. If this is set to true, the script will write debugging information to the monolog.

Version 2.0 Alpha (Blackfriars)