Restore Dead Allies To 1 HP After Battle? (Persona 5 Feature)

Status
Not open for further replies.

thecursedcometh

Veteran
Veteran
Joined
Dec 4, 2018
Messages
35
Reaction score
17
First Language
English
Primarily Uses
RMMV
In Persona 5, if an ally dies in battle, they will be automatically revived with 1 HP after the battle. Can this be done with common events, or is a script required? How would I go about making this?
Forgive me if this exists already. Maybe I'm bad at knowing what to look up, but I can't find this anywhere. Not on the master list, not on Google.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,959
First Language
English
Primarily Uses
RMMV
You can do this with a parallel process common event. Set aside a switch and call it "revive dead"; let's say it has ID 5. Your event should be activated by that switch.

Create a conditional branch for script condition "!$gameParty.inBattle()" and inside that do the following script command:

Code:
$gameParty.deadMembers().forEach(function(member) { member.removeState(1); });
Then turn switch 5 OFF.

Make a battle event (if you're not using shared battle events, you'll need this for all troops) which turns switch 5 ON on turn 0.
 

thecursedcometh

Veteran
Veteran
Joined
Dec 4, 2018
Messages
35
Reaction score
17
First Language
English
Primarily Uses
RMMV
Ah, it works now. Had to remove the extra lines. I just saw you edited your post, so that's my bad lol. Thanks!
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,729
Reaction score
4,682
First Language
English
Primarily Uses
RMMZ

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