How to make a State remove another State?

● ARCHIVED · READ-ONLY
Started by Dachimotsu 5 posts View original ↗
  1. Let's say I have two states: Poison and Regen. One reduces HP each turn, and the other recovers it. As such, they are opposite states, and should not exist on the same character at the same time.

    So, if a character has Regen, then being inflicted with Poison should remove it. But I don't know how to do that. I assume it has something to do with "Remove by Restriction", but I doubt.

    Another thing I should note is that apart from KO, Poison should be the only state to replace Regen, and vice versa. I have other opposite states that I want to work in the same way (Haste and Slow, for example).
  2. I will be porting my State Add/Remove commands script from Ace to MV.  That would do it for you.

    In the meantime, if these states are applied by items or weapons or skills that have a damage formula, you could make the damage formula remove the other state.
  3. Alright, then. I have two questions:

    1) Will the new plugin you make be free for commercial use?

    2) What is the string (correct term?) for removing a state from a target?
  4. 1) Yes - all of my scripts & plugins are free for commercial use

    2) The command to remove a state is removeState(id)
  5. Thanks a ton!

    You've been very helpful.