RPG Maker VX Ace

RPG Maker VX Ace

View Stats:
How do you use the YEARepo Lunatic scripts?
I'm having trouble deciphering the language in the YEARepo's VX Ace "Lunatic" series of scripts. For example, I'm trying to create a series of tiered states, where applying a certain state will increase which state the target ends up receiving. In practice, this means if you apply state 852, the Lunatic effect checks if a state from 853 to 857 is applied, and if so, it applies the correct state as a result. If state 853 is applied, it applies state 854 and removes state 853. If none of the states are applied, it applies state 853. The trouble is, the effect does none of this.

Here's my setup:
In the script, I have the following code inserted between "when /COMMON APPLY/i" and "when /COMMON ERASE/i":
when /CHAININC/i if target.state?(857) target.remove_state(852) elseif target.state?(856) target.add_state(857) target.remove_state(856) elseif target.state?(855) target.add_state(856) target.remove_state(855) elseif target.state?(854) target.add_state(855) target.remove_state(854) elseif target.state?(853) target.add_state(854) target.remove_state(853) else target.add_state(853) end target.remove_state(852)

State 852 has the following notetag:
<apply effect: CHAININC>

Each of these states is set up with a unique icon and increasing priority to indicate which state is applied. However, when the state is applied, either through an event, or through the player using a test skill that applies state 852, the only result is that state 852 is applied to the actor. No apply effect takes place.

I've searched and searched, but I can't find any in-depth guide on this. The script in question doesn't even tell you in any clear fashion that you have to add code to it to create new effects. At this point, I feel I have no recourse but to ask the community for assistance.

UPDATE: There is a typo in the original script on line 367. "after_effects" should read "apply_effects", I believe. When I fixed this, I got what I wanted to do to work.
Last edited by Zetawilk; Mar 9 @ 4:38pm