Negate Damage if Damage is less than X% of MHP

Vis_Mage

Novice Magician
Veteran
Joined
Jul 28, 2013
Messages
574
Reaction score
196
First Language
English
Primarily Uses
RMMV
Hey! :kaohi:

I'm wondering if anyone could help me out with a script.

The title pretty much sums it up, I'm hoping to create an effect that will negate damage from an attack, if the damage dealt would be less than X% of their Max HP (something like <DamageNegate: 20> would negate any attack damage that would deal less than 20% of their MHP), that can ideally be applied to actors, classes, equipment, enemies, and states.

Hopefully I explained this in a way that makes sense. Let me know if you have any questions.

Thank you!
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Is this looking at the damage value before or after critical and variance are applied?

What happens if you have a class that has 20 and a weapon that has 15?
 

Vis_Mage

Novice Magician
Veteran
Joined
Jul 28, 2013
Messages
574
Reaction score
196
First Language
English
Primarily Uses
RMMV
Those are good questions, that I hadn't actually thought about.

For damage, I'd go for the final damage value only, after any critical hits/elemental resistances/etc have been calculated.

As for instances where more than 1 notetag is present, I'd just go for the highest notetag present. So an actor with 20 with a weapon with 15 would only factor in the 20.
 

Heirukichi

Veteran
Veteran
Joined
Sep 24, 2015
Messages
1,421
Reaction score
596
First Language
Italian
Primarily Uses
RMVXA
I also have a question: is the mhp intended to be the target mhp or the user's?
 

Vis_Mage

Novice Magician
Veteran
Joined
Jul 28, 2013
Messages
574
Reaction score
196
First Language
English
Primarily Uses
RMMV
Sorry for not clarifying. MHP is refering to the target of the attack. So if Actor1 has the tag, then when they are attacked, it will check Actor1's MHP.

Thinking about it a bit more, there will probably have to be some way for the script to tell if the target is being healed or damaged, since I'd ideally not have the tag negating healing effects.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
Yanfly has a script that does this, under their lunatic scripts. You can set it to block all damage above x%, or even to 0 out any damage that is below a certain percentage.

I don't have the link to it though, but if you look up their scripts you should find it.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top