This script allows you to assign common event triggers to enemies.
When a trigger is activated, the common event will run.
The following triggers are currently supported:
-on encounter (on_enc)
-on death (on_die)
-on escape (on_escape)
It is easy to add your own triggers as well.
Simply go to the Trigger hash at the top, add in the notetag string as well as a trigger symbol, and then you can just add the trigger somewhere in the script without having to worry about parsing it.
For example, whenever you encounter a slime, you might want to run a common event.
You might tag the slime with
Which will run common event 1 whenever you encounter a slime.
If a slime dies, you might want to run common event 3
Also note that if the last enemy dies and it has an on_die trigger, it will be run AFTER the battle finishes. Will also need a work-around.
Edited by Tsukihime, 22 August 2012 - 09:20 PM.