Making a skill that only works when enemy's HP is below a certain level

StrawberryFlower

The Talking Fruit
Veteran
Joined
Nov 23, 2012
Messages
1,789
Reaction score
582
First Language
English
Primarily Uses
RMMV
As the title says...

Is it possible to have a skill that only works when the enemy's HP is below a certain percentage? I tried looking into formulas and such, but I'm smart enough to figure it out.

My main character is supposed to weaken her foe with, then attempt to "instakill" when said foe is weakened.

Thank you for any help.
 

ScorchedGround

Blizzards most disappointed fan (More than ever)
Veteran
Joined
Apr 12, 2020
Messages
643
Reaction score
887
First Language
German
Primarily Uses
RMMV
Put this into the damage formula:
b.hpRate() < X ? b.mhp : 0

Replace X with the percentage you want.
Example:
0.1 means 10%

So if the enemy has less than 10% health, it deals lethal damage, otherwise it deals 0 damage.
 

Latest Threads

Latest Profile Posts

I have a really hard time keeping all these goodies secret til December... but I swear, it is worth the wait!
Working on a Premium version of my minimap plugin that will have advanced functionalities such as drawing a Terrain map based completely on the users tilesets, whatever they may be, and drawing minimap radar icons automatically based on texture of the event the note is applied to.
Psttt come look, this is the secret technique to tenderizing steaks, it makes it extra beefy. :rwink:

pixeldailyaxemeatsheild.gif
#screenshotsaturday update, featuring vaporwave angels lol

Forum statistics

Threads
115,854
Messages
1,093,473
Members
151,066
Latest member
FaceMelter
Top