Boosting damages when low HP

InBlast

The Mad Hamster
Veteran
Joined
Nov 2, 2015
Messages
287
Reaction score
89
First Language
French
Hey everyone ! 

I'm trying to make a Berserker class, with increased damages When the HP are low. The dream would be to add 1% damage on every attack for each 2% of HP lose. I tried to make a paralled event which change the physical damages deals by an actor if he have less than 80/60/40/20% of his max HP. This event would remove the previous state and add a new one each time a new condition is true. The only problem is : it doesn't work during battle. I mean, the states change works only if i'm not in battle. If i have less than 80% hp for exemple, and not in fight, i will have the state "+10% damages". But if i enter in fight, and during this battle, my HP goes below 60%, the state will be change only after battle.

Any ideas of a way to make it work ? (Without plugins if possible, but anyway i'm using nearly all of Yanfly's plugins).

Thanks !
 

Kaliya

// Caffeine Overload
Developer
Joined
Nov 1, 2015
Messages
506
Reaction score
566
First Language
English
Primarily Uses
RMMV
Have you tried using Troop/Battle events in the database? They work the same way as normal events except have different conditions such as HP <= %, turn count,etc,etc. It should in theory be able to do what you need, however I am not a pro eventer so I may be wrong there. But also based off the other information you gave it would require a lot of states lol. I can look into making a plugin if I get the free time soon, but no guarantees. 
 

InBlast

The Mad Hamster
Veteran
Joined
Nov 2, 2015
Messages
287
Reaction score
89
First Language
French
I would have to add the event for every battle in the game. I think it can work, but i would prefer related to the actor an not to the battles.

I could also use Lunatic code in the skills notetag to boost them. I will search this way too. 

And yes, actually i need one state by section of HP. That's why i change the state only every 20%. With Lunatic, i think i could use the User HP % in the formula. But there is another problem, it would work nicely only for the skills the berserker is the only one to use...

Well, a plugin for this would be nice, But i think there is a way to do this using Yanfly plugins and/or events. 
 

Kaliya

// Caffeine Overload
Developer
Joined
Nov 1, 2015
Messages
506
Reaction score
566
First Language
English
Primarily Uses
RMMV
If you used Yanflys Damage core, you could do a little math using "Lunatic" mode to check the actors HP and then applying a bonus, however you'd need to do it for every "Berserker" skill/attack.
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,635
Reaction score
5,116
First Language
English
Primarily Uses
RMVXA
Parallel/Auto common events don't work during battle - they only work while on the Map.  While Troop events could do what you're describing (and "Common Troop Events" by Yanfly will make it much easier to implement), you should make a Plug-in request.  This won't be a hard scriptlet for an experienced scripter to throw together and it will let you accomplish 'the dream'.
 
Last edited by a moderator:

Jory4001

Veteran
Veteran
Joined
Feb 16, 2014
Messages
80
Reaction score
18
First Language
English
You could have the class skills damage forunla -a.hp so the more health the user has the less damage they deal.

In the damage forumla you could calculate the % of hp the user has and multiply the basic damage forumla by half the % to get the effect you want.

On my phone atm, but it would be something like:

(Basic damage formula) * (1 + (1 - a.hp / a.maxhp) * 0.5) for 1% extra damage for every 2% hp lost.

Or *2 8nstead of 0.5 for 2% damage every 1% hp lost
 
Last edited by a moderator:

InBlast

The Mad Hamster
Veteran
Joined
Nov 2, 2015
Messages
287
Reaction score
89
First Language
French
I will try few things this evening, but if it doesn't work, i will make a request as you said. 

Thanks !
 

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

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,051
Messages
1,018,551
Members
137,837
Latest member
Dabi
Top