Skills: Effect Iff Enemy Dies from Skill

jfoster3590

Warper
Member
Joined
Aug 12, 2018
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMMV
Hi, all. I am trying to make a Skill that deals damage and has a bonus effect if and only if the Skill kills the enemy. Is there a way to go about doing this?

For example: The skill "Fire" does 200 damage. The enemy has 400 HP. On the first use of "Fire," 200 damage would be dealt, leaving the enemy with 200 HP remaining. On the second use of "Fire," 200 damage would be dealt (thus killing the enemy), and the player would gain an item or a buff.


PS - I'm new to RPG Maker, so please be patient with my ignorance. Thank you in advance for your help!
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,842
Reaction score
5,225
First Language
Dutch
Primarily Uses
RMXP

"How do I?" questions belong in the support forum. Based on your profile, I'm moving this to MV Support.

 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,248
Reaction score
1,250
First Language
Spanish
Primarily Uses
RMVXA
somebody double check this for MV, I had it for Ace.

in the damage formula:
Code:
b.hp - 200 <= 0 ? {b.add_state(death_state_id); $game_variables[x] = y} : return 200;
where x is a variable ID and Y is True, or 1, or whatever.
then in the skill effects area, you call a common event that'd check that variable and validate accordingly.

I came up with that to make a finisher skill that'd kill enemies below a certain HP.
when used above that HP level, it'd return 0 (here, it would return the regular damage)
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
554
Reaction score
229
First Language
english
Primarily Uses
RMMV
overkill plugin not what he was looking for.

Extra Enemy Drops
getting special item drop conditions is easy with the note tags.
can set it up to get drop based on number of times hit by a element through the fight or by killing blow specifically.

getting buff little bit harder to setup.
it will be part of using Battle Engine Core to create action sequences.
im still novice with those but you would be looking for something to put in the <follow action> part of that i think
 

jfoster3590

Warper
Member
Joined
Aug 12, 2018
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMMV
somebody double check this for MV, I had it for Ace.

in the damage formula:
Code:
b.hp - 200 <= 0 ? {b.add_state(death_state_id); $game_variables[x] = y} : return 200;
where x is a variable ID and Y is True, or 1, or whatever.
then in the skill effects area, you call a common event that'd check that variable and validate accordingly.

I came up with that to make a finisher skill that'd kill enemies below a certain HP.
when used above that HP level, it'd return 0 (here, it would return the regular damage)
This is exactly the setup I am looking for. However, when I use this coding, it always returns 0. Am I doing something wrong, or is it a difference between Ace and MV? The Common Event checks if Var 1 is equal to 1 or not. Knockout is State 1.

Code:
b.hp - 200 <= 0 ? {b.add_state(1); $game_variables[1] = 1} : return 200;
 

jfoster3590

Warper
Member
Joined
Aug 12, 2018
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMMV
overkill plugin not what he was looking for.

Extra Enemy Drops
getting special item drop conditions is easy with the note tags.
can set it up to get drop based on number of times hit by a element through the fight or by killing blow specifically.

getting buff little bit harder to setup.
it will be part of using Battle Engine Core to create action sequences.
im still novice with those but you would be looking for something to put in the <follow action> part of that i think
I would like the effect to happen during the battle, not after, so Extra Enemy Drops is not ideal. However, your recommendation to use a Battle Action Sequence might be a viable option! I'm hoping to make the simple damage formula work, but I will look into that as well. Thanks!
 

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