Jump to content
Sign in to follow this  

Common Event Triggers

Recommended Posts

Common Event Triggers



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


<on_enc: 1>


Which will run common event 1 whenever you encounter a slime.


If a slime dies, you might want to run common event 3


<on_die: 3>




Script: http://db.tt/BLxO1ezX




This script does not behave as expected when multiple enemies are firing off triggers. Only the last one is run. Will need a work-around.


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

Share this post

Link to post
Share on other sites

Script has been updated to address the issue where you can't queue up multiple common events.

Now each common event trigger will be handled properly.


I just need to implement proper battle-end event processing to address the other issue, which sort of breaks the whole on-death trigger.


If you can think of any other useful triggers just suggest them.

Edited by Tsukihime

Share this post

Link to post
Share on other sites

Is there a way to add the common event after the battle ends? Not at the victory, but when the battle ends on the map. It plays the common event first, then moves on to any other events(Such as auto-ran events for cutscenes)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

Top ArrowTop Arrow Highlighted