Insta-Kill when the target is at a % HP or Below Skill

Status
Not open for further replies.

Redeye

Chronicles Creator
Veteran
Joined
Jun 21, 2013
Messages
441
Reaction score
261
First Language
English
Primarily Uses
I can't seem to find a good way to implement this from within the database, so I think I may need a script for it.


I have a Skill in my game that is set to Instantly Kill the target, but only if it is at 15% of its Maximum HP or below. If not, the skill fails to do anything.


I was wondering if anyone could show me an easy script that does this, or a way to do this without scripts?
 

Redeye

Chronicles Creator
Veteran
Joined
Jun 21, 2013
Messages
441
Reaction score
261
First Language
English
Primarily Uses
Nevermind. I figured it out with the help of a friend.


If anyone still wants to know, one method would be to type in


if b.hp_rate <= 0.15; b.add_state(1); end
 


into a Damage Formula. You can change the 0.15 to any number depending on what Max HP level you want the enemy to be at for the skill to work.


However, this skill WILL bypass 0% State Rates, but not state resists. (Credit to Wavelength for helping me figure this out.)


This thread can be locked now.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
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

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,574
Latest member
nikisknight
Top