New account registrations are disabed. This website is now an archive. Read more here.

RPG Maker VX Ace    Posted April 25, 2013 by xTsukihime

Common Event Variables

Introduction

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.

 

Posted Image

The Code

License Terms

Attribution 3.0 Unported - You must attribute the work in the manner specified by the author or licensor. Commerical use allowed.

Instructions

Download

 

Script: download here

 

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.

Version History

See change log

Credits & Thanks

Tsukihime @ Hime Works

Terms & Conditions

* Free to use in commercial/non-commercial projects
* No real support. The script is provided as-is
* Will do bug fixes, but no compatibility patches
* Features may be requested but no guarantees, especially if it is non-trivial
* Credits to Tsukihime in your project
* Preserve this header

Leave a Reply

xTsukihime

  • Posted about 12 years ago

  • Engine
    RPG Maker VX Ace
  • Category
    System Enhancements
  • License
    Attribution 3.0 Unported
  • Version
    1.0

Stats

2,557 views

0 comments

Tags

eventing