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 skill and item lunatic effects. These lunatic object effects will give leeway to occur at certain times during a skill or item’s usage, which include before the object is used, while (during) the object is used, and after the object is used.
Lunatic Object Effects allows skills and items allow users with scripting knowledge to add in their own unique effects without need to edit the base script. These effects occur at three different intervals and are marked by three different tags.
<before effect: string> <prepare effect: string> <during effect: string> <after effect: string>
Before effects occur before the skill cost or item consumption occurs, but after the spell initiates. These are generally used for skill or item preparations.
Prepare effects occur as units are being targeted but before any HP damage is dealt. Note that if a skill targets a unit multiple times, the prepare effects will also run multiple times.
During effects occur as units are being targeted and after HP damage occurs but before moving onto the next target if done in a group. Note that if a skill targets a unit multiple times, the during effects will also run multiple times.
After effects occur after the targets have all been hit. In general, this will occur right before the skill or item’s common event runs (if one was scheduled to run). These are generally used for clean up purposes.
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 “phrase” 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 skill or item, you may use these notetags in place of the ones shown above.
<before effect> string string </before effect> <prepare effect> string string </prepare effect> <during effect> string string </during effect> <after effect> string string </after 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.
- Destruction Package
- Suicide, MP Zero, TP Zero, Add States, Remove States, Add Debuffs, Add Buffs, Clear States, Clear Debuffs
- Give & Take Package
- Give State, Take State, Give Buff, Take Buff, Give Debuff, Take Debuff
- Recoil Package
- Recoil Set HP, Recoil Set MP, Recoil Set TP, Recoil Percent HP, Recoil Percent MP, Recoil Percent TP
Use your Lunatic Object Effects wisely.
— And that’s all, folks! —