• Announcements

    • RagingHobo

      Forum Upgraded!   07/17/2017

      We have successfully upgraded our forum to the latest version! Some things have moved around but don't worry everything is still there, we still need to find updated versions of the plugins we were using previously to restore everything to the way it was. There will be a running topic in the Feedback and Support in case you notice something wrong. Before you do so please clear your browser cache and close your browser completely to rule out a caching issue. Thank you for your patience during the outage and while we get everything back to 150%  
Sign in to follow this  
Followers 0
Tsukihime

Common Event Triggers

4 posts in this topic

Common Event Triggers

-Tsukihime

 

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.

 

Usage

 

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>

 

Download

 

Script: http://db.tt/BLxO1ezX

 

Note

 

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  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.