Simple JS Question

Discussion in 'Javascript/Plugin Support' started by RetroBoy, Jun 22, 2017.

  1. RetroBoy

    RetroBoy Veteran Veteran

    Messages:
    378
    Likes Received:
    259
    First Language:
    English
    I want to remove a state (actually two states) when another state is removed. Is there someway (using Yanfly scripts) that I can have it so that State A and B are removed from the Actor/Enemy if State C is removed. What code do I use?
     
    #1
  2. waynee95

    waynee95 Lunatic Coder Veteran

    Messages:
    599
    Likes Received:
    482
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    There is a YEP BuffStatesCore note tag.

    Put this into a state. When that state will be removed it will trigger this note tag.
    <Custom Remove Effect>
    user.removeState(ID);
    user.removeState(ID);
    </Custom Remove Effect>
     
    Last edited: Jun 22, 2017
    #2
    RetroBoy likes this.
  3. RetroBoy

    RetroBoy Veteran Veteran

    Messages:
    378
    Likes Received:
    259
    First Language:
    English
    Thank you, Wayne.
     
    #3

Share This Page