Galv`s Actor Duel Minigame change hlep.

Grayborders

Maniac, Lunatic, Crazy
Veteran
Joined
Oct 19, 2013
Messages
146
Reaction score
79
First Language
Hungarian
Primarily Uses
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. 
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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)
 

Grayborders

Maniac, Lunatic, Crazy
Veteran
Joined
Oct 19, 2013
Messages
146
Reaction score
79
First Language
Hungarian
Primarily Uses
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)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top