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 Mul Cancel reply

Your email address will not be published.

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax