YEP Absorption barrier mechanic effect help!

Danitinkis

Deadly and sexy
Veteran
Joined
Dec 31, 2016
Messages
118
Reaction score
65
First Language
Spanish
Primarily Uses
RMMV
Hi! So im trying to make Overwatch's old torbjörn armor pack effect. So when you gave an armor pack to an ally, it will sum up up to 75 armor to them. If you gave another armor pack to him, it will not sum up to 150 armour because the maximum armor that you can gain from that ability is 75. However, with the workaround I made for making that effect, I could only use that armor gain ability in my game, because I don't know how to treat the armor gained from that ability separetly from other ones. Here is the code i used in the skill notetag:
Code:
<Before Eval>
var maxarmour = target.mhp * 0.2;
var armour= target.barrierPoints();
var gainarmour= maxarmour - armour;
target.gainBarrier(gain armour, 0);
</Before Eval>
Here, instead of up to 75 armor I use 20% of target's max health.
Plugins used:
YEP Absorbtion barrier: http://yanfly.moe/2016/02/13/yep-70-absorption-barrier-rpg-maker-mv/
YEP Skill Core: http://yanfly.moe/2015/10/13/yep-8-skill-core/
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top