State Caster

This script allows battlers to store a state’s caster, the battler that applied the state. If the state was applied through events or other means, then there is no caster.

It is useful for scripts that need to know who applied a state.

Download

Script: download here

Installation

In the script editor, place this script below Materials and above Main

Usage

This script provides one method that allows you to check the battler that originally inflicted a state. In a damage formula, for example, you can say

a.state_cause(4) == $game_actors[3]

Which would determine whether actor 3 had inflicted state 4 to the current skill user.

The state_cause method returns a Game_Battler object.

You may also like...

4 Responses

  1. Mul says:

    The link on the main page is broken. It directs you to a non-existent page (http://himeworks.com/2013/10/10/state-cause/)

  2. Arsist says:

    Can a battler have multiple caster origins, or is it just the last battler who applied the state?

Leave a Reply to Arsist Cancel reply

Your email address will not be published. Required fields are marked *