Varying damage based on Absoprtion Barrier

Joined
Dec 24, 2018
Messages
59
Reaction score
3
First Language
Finnish
Primarily Uses
RMMV
So, I have no idea how to do this at all.
What I'm looking to do is to increase or reduce the damage of certain skills depending if they damage hp or barrier. By default most skills always strike damage to barrier, until it runs out.
I would like to further specialize skills to anti-barrier and anti-hp types by adjusting their damage based on what they deal damage to.
How could I go around doing this?
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
What's an absorption barrier? Is this a system you've already implemented or you want to know how to implement an absorption barrier?
 

Fernyfer775

Veteran
Veteran
Joined
Oct 6, 2013
Messages
1,317
Reaction score
818
First Language
English
The Absorption Barrier plugin has tags to give skills/states the ability to "penetrate" the barrier. So, if you want a skill that deals bonus damage to HP if there is a barrier present, you would use:
<Barrier Penetration: x%>
Then, in the damage formula of the skill itself, you could do:
(DAMAGE FORMULA HERE) * (b.isStateAffected(X) ? 3 : 1)
Where "X" is the STATE ID of your barriers (you set this part up in the plugin parameters itself)
The 3 after the ? is the multiplied damage, and the 1 after the : is the base damage of the skill.
 

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