Woo! Pressure plates are now working. When a character walks onto a destructible object with a Pressure trigger, the character will stop moving and the associated script will run.
Triggers are added on a map-by-map basis by adding a trigger parameter in the <Unit> tag of the destructible object you want to use the trigger with. This, for instance, will add a Pressure trigger to a PressurePlate object and set it to trigger the script PressurePlateTrap:
<Unit trigger="Pressure,PressurePlateTrap">0,99,PressurePlate,0,9,None,None</Unit>
You can now specify the triggering character's coordinates using -Y- and -X-, useful for things like having particle effects on the space a script has been triggered.
New script action: DamageChar. Has three parameters: the name of the character to damage, the base damage to deal, and the element the damage belongs to (Pierce, Slash, Heat, etc.) Optionally, you can add a fourth parameter, which will serve like the affects parameter in an attack. (By default, DamageChar actions affect Health.)
This script will trigger a shower of smoke and sparks at the triggerer's location, and deal 8 base Heat damage to the triggerer:
<Script>PressurePlateTrap
<Action>SpawnParticlesAt/Smoke,-Y-,-X-</Action>
<Action>SpawnParticlesAt/Sparks,-Y-,-X-</Action>
<Action>DamageChar/-FNAME-,8,Heat</Action>
</Script>