I tried to use Yanfly's Lunatic States to make a state that is tied with another one, and will always be automatically added/removed when "parent" state is added/removed
I.e.:
When State 12 is applied, state 13 is automatically added.
When State 12 is removed, state 13 goes with it.
The "add" part works, but I don't know how to do "remove".
The add-on that I rigged up looks like this:
State 12 notetags look like this:
<erase effect: nostate 13>
<leave effect: nostate 13>
<apply effect: state 13>
I.e.:
When State 12 is applied, state 13 is automatically added.
When State 12 is removed, state 13 goes with it.
The "add" part works, but I don't know how to do "remove".
The add-on that I rigged up looks like this:
Ruby:
when /STATE[ ](\d+)/i
self.add_state($1.to_i)
when /NOSTATE[ ](\d+)/i
self.remove_state($1.to_i)
State 12 notetags look like this:
<erase effect: nostate 13>
<leave effect: nostate 13>
<apply effect: state 13>