YANFLY ENGINE ACE - LUNATIC STATES

RPG Maker VX Ace

For advanced users.

  • YF
  • 12/15/2011 08:52 PM
  • 1808 views


Download Script

FOR ADVANCED USERS

Lunatic mode effects have always been a core part of Yanfly Engine scripts. They exist to provide more effects for those who want more power and control for their items, skills, status effects, etc., but the users must be able to add them in themselves.

This script provides the base setup for state lunatic effects. These effects will occur under certain conditions, which can include when a state is applied, erased, leaves naturally, before taking damage, after taking damage, at the start of a turn, while an action finishes, and at the end of a turn.



Lunatic States allow allow states to trigger various scripted functions throughout certain set periods of times or when certain conditions trigger. These effects can occur when a state is applied, when a state is erased, when a state leaves naturally, before damage is taken, after damage is taken, at the beginning of a turn, while the turn is occuring, and at the closing of a turn. These effects are separated by these eight different notetags.

<apply effect: string> - Occurs when state is applied.
<erase effect: string> - Occurs when state is removed.
<leave effect: string> - Occurs when state timer hits 0.
<react effect: string> - Occurs before taking damage.
<shock effect: string> - Occurs after taking damage.
<begin effect: string> - Occurs at the start of each turn.
<while effect: string> - Occurs after performing an action.
<close effect: string> - Occurs at the end of a turn.

If multiple tags of the same type are used in the same skill/item’s notebox, then the effects will occur in that order. Replace “string” in the tags with the appropriate flag for the method below to search for. Note that unlike the previous versions, these are all upcase.

Should you choose to use multiple lunatic effects for a single state, you may use these notetags in place of the ones shown above.

<apply effect>
string
string
</apply effect>

<erase effect>
string
string
</erase effect>

<leave effect>
string
string
</leave effect>

<react effect>
string
string
</react effect>

<shock effect>
string
string
</shock effect>

<begin effect>
string
string
</begin effect>

<while effect>
string
string
</while effect>

<close effect>
string
string
</close effect>

All of the string information in between those two notetags will be stored the same way as the notetags shown before those. There is no difference between using either.



Original Blog Page