Lessen damage if opponent has Absorption Barrier

Joined
Dec 24, 2018
Messages
59
Reaction score
3
First Language
Finnish
Primarily Uses
RMMV
So, I would like for some attacks to have their damage lessened or halved if the target has Absoprtion Barrier points left. Most enemies start battle with some ammount of Barrier you need to fight through first with specialized skills. I'm not quite proficient in script, so I hope someone could help me with the damage reduction.
http://yanfly.moe/2016/02/13/yep-70-absorption-barrier-rpg-maker-mv/
 

Junane

Veteran
Veteran
Joined
Feb 10, 2018
Messages
86
Reaction score
10
First Language
English
Primarily Uses
RMMV
Considering the plugin you're using, you should have the sufficient other plugins to use:

<Pre-Damage Eval>
if (target.barrierPoints() > 0){
value = Math.round(value * 0.5);
}
</Pre-Damage Eval>
 
Joined
Dec 24, 2018
Messages
59
Reaction score
3
First Language
Finnish
Primarily Uses
RMMV
Considering the plugin you're using, you should have the sufficient other plugins to use:

<Pre-Damage Eval>
if (target.barrierPoints() > 0){
value = Math.round(value * 0.5);
}
</Pre-Damage Eval>
Indeed I do, and this works great, thanks!
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Are we allowed to post about non-RPG Maker games. and, if so, would any of you be interested in a short, proof of concept type non-euclidian puzzle game?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:

Forum statistics

Threads
105,883
Messages
1,017,232
Members
137,607
Latest member
Maddo
Top