Reduce TP upon dying.

Discussion in 'RPG Maker MV' started by Neka Music, Apr 16, 2018.

  1. Neka Music

    Neka Music Veteran Veteran

    Messages:
    246
    Likes Received:
    86
    First Language:
    Empty
    Primarily Uses:
    N/A
    Is there a way to create reduce an actor's TP when his hp is reduced to zero.
    I'm thinking about Yanfly Buffs & States core script. Can someone help? Thanks in advance.
     
    #1
  2. Alisu

    Alisu Veteran Veteran

    Messages:
    61
    Likes Received:
    36
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    I was wrong.
     
    #2
  3. gambitben

    gambitben Veteran Veteran

    Messages:
    66
    Likes Received:
    32
    First Language:
    Spanish English
    Primarily Uses:
    RMMV
    As in when the actor dies it loses all its current TP? I can help you with that one. If you are using Yanfy's Buff and State core paste this in your Death state note box :
    <Custom Apply Effect>
    {
    user.gainTp(-X);
    }
    </Custom Apply Effect>
    Where X is the maximum TP one of your actors can have, like -1000 for example, just to be sure :rwink:. When they die and the state is applied, they should lose all the TP.

    Hope it helps you!
     
    #3
    Neka Music likes this.
  4. Neka Music

    Neka Music Veteran Veteran

    Messages:
    246
    Likes Received:
    86
    First Language:
    Empty
    Primarily Uses:
    N/A
    It works, thanks
     
    #4

Share This Page