RPG Maker Forums

So, in my game I have a skill called "Endure" which allows an actor to survive an attack that would normally kill them at 1 HP. I found another person asking the same question on the forum, and this was the final answer.
Hello!


If you use Yanfly's Buff & State Core, you can use the following notetag in your Endure state:


<Custom React Effect>
if ($gameParty.inBattle() && !this.isCertainHit() && value >= target.hp) {
value = target.hp - 1;
}
</Custom React Effect>


If you wanna endure one hit only, simply check the 'Remove by Damage' box.


You can also use <Action Start: 1> to make it last until that battler's next turn.


Hope that helps!


- Riff
Well, that's all fine and dandy, but they never specified a way to get the state the only be removed if the state is activated. I know that it must involve some sort of If-then code, but I don't know javascript. @Riff or anyone else, if you're out there, please tell me what additional code I should add in order to have the state be automaticly removed when the state activates. Thanks!

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,048
Messages
1,018,545
Members
137,834
Latest member
EverNoir
Top