Effect: State Action

This script allows you to force an action with your skill, depending on whether the enemy has a specific state applied or not.

Download

Script: download here
Required: Effect Manager

Usage

Tag skills/items with

<eff: state_action `state_id` `skill_id` `apply_state?` >
----------------------------------------------------------
<eff: state_action 5 12 false>

Where

state_id is an integer, the ID of the state to check
skill_id is an integer, the ID of the skill to use
apply_state? is a boolean, whether it should apply the state. This should be true or false

The state must be applied in order for the special skill to activate.

The apply_state? flag is basically a conditional “add state” effect. You may want to have your skill add a state the first time you hit the enemy, and then execute the state action the next time you hit the enemy. If you were to add an “add state” effect to your skill, then the state would always be added, which may be undesirable.

You may also like...

9 Responses

  1. This doesn’t seem to work. I tried it in a blank project (with the effect manager script) and it’s just not working.

    I put in the note of the skill and it’s just plain not doing anything.

    State 6 is the default sleep state, 80 is the default “Strong Attack” skill.

  2. Digger says:

    So if I made an item such as ‘Oil Jar’ and threw it at an enemy and it got ‘Oil Soaked’ state would it be possible to make it get a big fire spell cast on it using this?

    • xtsukihime says:

      Yes, you would have one of the skills have this effect, where if the target has “oil soaked” state applied, perform a particular skill. If the state is not applied, then the effect will not activate.

  1. February 28, 2024

    … [Trackback]

    […] Here you can find 8975 more Info to that Topic: himeworks.com/2013/03/effect-state-action/ […]

  2. February 29, 2024

    … [Trackback]

    […] Info on that Topic: himeworks.com/2013/03/effect-state-action/ […]

  3. March 6, 2024

    … [Trackback]

    […] Here you will find 59773 more Information to that Topic: himeworks.com/2013/03/effect-state-action/ […]

  4. March 17, 2024

    … [Trackback]

    […] Read More here to that Topic: himeworks.com/2013/03/effect-state-action/ […]

Leave a Reply to ephemeralstyle Cancel reply

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