Create a state where user survives with 1 HP.

rambunctiousRPG

Villager
Member
Joined
Jul 2, 2021
Messages
7
Reaction score
1
First Language
English
Primarily Uses
RMMZ
I'm trying to create a state that makes the user survives any attack with 1 HP,

the skill basically replicates the move "Endure" from Pokemon.

Unfortunately, the other posts on this topic are only specific to MV, not MZ - as they require Yanfly Engine plugins.

Is there a way to do this in MZ? All help is appreciated!
 

Milennin

"With a bang and a boom!"
Veteran
Joined
Feb 7, 2013
Messages
3,018
Reaction score
2,280
First Language
English
Primarily Uses
RMMV
The non-plugin way is to give the character Death Resist, then at the end of every turn in battle, check if their HP is 0, and set it to 1. Remove Death Resist when the character is no longer affected by it.
 

rambunctiousRPG

Villager
Member
Joined
Jul 2, 2021
Messages
7
Reaction score
1
First Language
English
Primarily Uses
RMMZ
The non-plugin way is to give the character Death Resist, then at the end of every turn in battle, check if their HP is 0, and set it to 1. Remove Death Resist when the character is no longer affected by it.
How to check if their HP is <= 0 through states?

1634475644723.png
 

Milennin

"With a bang and a boom!"
Veteran
Joined
Feb 7, 2013
Messages
3,018
Reaction score
2,280
First Language
English
Primarily Uses
RMMV
You do that in troops events. Call the Common Event that checks the HP.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,763
Reaction score
8,975
First Language
German
Primarily Uses
RMMV
How to check if their HP is <= 0 through states?
or in any other event than troop events, you use control variable to load the current HP into a variable and then conditional branch to check that variable.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
3,214
Reaction score
1,904
First Language
English
Primarily Uses
RMMV
And, really, all of this would work equivalently in MV. If you're finding answers/posts that do something different or more complex than this, that actually required the custom scripting in the Buffs & States Core, the MZ equivalent to Yanfly is the VisuStella library.
 

Latest Threads

Latest Posts

Latest Profile Posts

ok by this weekend I WILL finally need alpha testers for Backstage: murdered sleep because it's got enough content at this point I want to get it on Steam Early Access ASAP (2/22/2022 would be a cool release date if I can make it).

By all means volunteer here, sure, but where else should I be looking?
1643337839651.png
Randomly trying to make some butcher shop tiles for MZ :3
Current menu of Shadows of the Earth: The Vrila'an Legend. Currently taking a break from combat related mechanics. Hope i get the actor busts done before the day ends :)
Was in need for a black van, so I made one by editing that one truck in the tileset. :kaoswt2:
nFfmJca.png
I honestly haven't ever been really active in this community, even though this year will mark my 4th year of having an account and 5th or 6th of using RPG maker. I didn't do anything with RM for most of 2020 and 2021 for personal reasons, but I'm excited to get back into game making!

Forum statistics

Threads
118,771
Messages
1,118,597
Members
155,929
Latest member
JasonVoorhees
Top