a script that where skill costs HP percentage costs

MarioWidjaya123

Veteran
Veteran
Joined
May 16, 2020
Messages
105
Reaction score
2
First Language
English
Primarily Uses
RMXP
is there a possible script where that skills costs HP in percentages?
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,111
Reaction score
11,459
First Language
English
Primarily Uses
RMVXA
Yanfly's Skill Cost Manager allows you to use HP as a skill cost, either as a percentage or as a straight number. Use the GitHub link on this web page to get it, the other link doesn't work.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,437
Reaction score
6,254
First Language
Indonesian
Primarily Uses
RMVXA
But @Kes, this is RMXP request
 

MarioWidjaya123

Veteran
Veteran
Joined
May 16, 2020
Messages
105
Reaction score
2
First Language
English
Primarily Uses
RMXP
@KK20 yeah, i know about the HP Sacrifice script but i don't know HOW it works nor how to USE IT exactly...
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,111
Reaction score
11,459
First Language
English
Primarily Uses
RMVXA
Oops!! Sorry, didn't notice that this was XP.
@TheoAllen Thanks for the heads up.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,402
Reaction score
499
First Language
English
Primarily Uses
RMVXA
i don't know HOW it works nor how to USE IT
The instructions are in the script with examples.
Shown in the script are examples for skill 28 & 30. So when those skills are used those effects are processed. KK20 will know if that is correct.
 

MarioWidjaya123

Veteran
Veteran
Joined
May 16, 2020
Messages
105
Reaction score
2
First Language
English
Primarily Uses
RMXP
OK i think i get how this script works, thanks!
 

MarioWidjaya123

Veteran
Veteran
Joined
May 16, 2020
Messages
105
Reaction score
2
First Language
English
Primarily Uses
RMXP
bump.
how do i make the HP Sacrifice Script take HP on only the allies and not the enemies
 

KK20

Just some XP Scripter
Veteran
Joined
Oct 11, 2018
Messages
186
Reaction score
67
First Language
English
Primarily Uses
RMXP
In the methods make_skill_action_result and make_item_action_result, you just have to add a single line:
Code:
return if @active_battler.is_a?(Game_Enemy)
immediately after the aliased method is called.

e.g.
Code:
    alias make_skill_action_result_hp_sacrifice make_skill_action_result
    def make_skill_action_result
      make_skill_action_result_hp_sacrifice
      return if @active_battler.is_a?(Game_Enemy)   # <== add this line here
# redacting rest of code for brevity ...
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

What is your favourite rpg maker plugin?
Hopefully this gets fixed before release..
Where's this sudden heatwave come from? It's not even sunny, it's just hot. Hate it!
I'm slightly disappointed that the MZ codebase still uses core.js, managers.js, objects.js, scenes.js, sprites.js and windows.js instead of core/Bitmap.js, core/Graphics.js, managers/AudioManager.js, managers/DataManager.js, etc...
just a few more hours until the toughest, most pressure 72 hours of my life, wish me luck guys

Forum statistics

Threads
100,565
Messages
977,269
Members
132,148
Latest member
jcamp10565
Top