Galv`s Actor Duel Minigame change hlep.

Hi i decided to use Galv`s actor duel minigame script which can be found here: http://galvs-scripts.com/galvs-actor-duel-mini-game/

I have 1 tiny problem and Galv said i should probably ask for help here.

Now this is as far i can tell not a big request.

So from the little i understand of Ruby this part of his script defines the condition of loosing a fight:

def end_match
@fight_pose = 0 if !dead?
end

Now i`m asking can someone help me with a quick snippet wich checks not for the dead term but a state id?

Or do i even have the right line?

As i said the point is to have the match end not when the state death is applied to one actor but when state id X is applied to an actor.

Any help is appreciated. 
You're saying you want the character to die when mp reaches 0, and not when hp reaches 0 as it currently does? If that's the case, then no, that's not the right line.


I have played with stuff like this before and gotten it wrong, so hopefully someone else will recall how it needs to be done to use mp or state id. Sorry I can't help any further.


(your text with the blue background is REALLY hard to read. For code, just use code tags to make it formatted differently)
You're saying you want the character to die when mp reaches 0, and not when hp reaches 0 as it currently does? If that's the case, then no, that's not the right line.

I have played with stuff like this before and gotten it wrong, so hopefully someone else will recall how it needs to be done to use mp or state id. Sorry I can't help any further.

(your text with the blue background is REALLY hard to read. For code, just use code tags to make it formatted differently)

Oh nooohes i want the duel to end when any actor receives state X i thought i wasn't clear enough (and i`ll fix the text)

Original thread: https://forums.rpgmakerweb.com/threads/galv-s-actor-duel-minigame-change-hlep.20619/