Passive Ability

Status
Not open for further replies.

Parlu10

Veteran
Veteran
Joined
Jul 30, 2018
Messages
35
Reaction score
7
First Language
Italian
Primarily Uses
RMMV
Is there a way to make a passive skill that gives 10% chance to revive automatically the character after it is knocked out?
(Also using the Yanfly Passive Abilities Plugins)
 

Cythera

Veteran
Veteran
Joined
Jul 31, 2019
Messages
146
Reaction score
252
First Language
English
Primarily Uses
RMMV
Try the following in a passive state. You'll need Yanfly's Buffs+States Core as well to make it work.
<Custom Respond Effect>
if (target.hp <= 0 && Math.randomInt(10) === 1) {
target.gainHp(Math.ceil(target.mhp*.3));
target.startAnimation(49);
target.startDamagePopup();
target.clearResult();
}
</Custom Respond Effect>
That will revive the character with the passive state with 30% of their Max Health. Change the ".3" to whatever percentage you wish - so .5 is 50%, .15 is 15%, so on and so forth. Let me know if that does what you need!
 

Parlu10

Veteran
Veteran
Joined
Jul 30, 2018
Messages
35
Reaction score
7
First Language
Italian
Primarily Uses
RMMV
It's exactly what i needed, thank you very much!
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,829
Reaction score
5,221
First Language
Dutch
Primarily Uses
RMXP

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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,975
Members
137,563
Latest member
cexojow
Top