Jump to content
Sign in to follow this  
Tsukihime

Common Event Variables

Recommended Posts

This script automatically updates a set of "common event variables" throughout the game. The purpose is to make it easier for developers to design events that rely on information such as who used a skill.

 

The main purpose of this script is to provide a way to specify common event arguments. These arguments are stored in game variables, which makes it easy to use for the event editor and some script calls when necessary.

 

The variables will be updated automatically whenever a skill or item is used, on the map or in a battle.

 

commoneventvariables1.jpg

 

Download

 

Get it at Hime Works!

 

Installation

 

Place this script below Materials and above Main

 

Usage

 

In the configuration, set the ID of the game variables to store the common event variables. The game automatically tracks the following data upon item or skill use:

  • the user (actor or enemy ID)
  • the target (actor or enemy ID)
  • the skill (skill ID)
  • the item (item ID)
Note that the skill and item are stored in separate variables. You can reference these variables in your events or script calls.

 

For common event effects, only the first common event will have this information available. The data is lost after the first common event finishes running. I have not figured out when is a good time to clear out temporary data.

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