Mat based def buff

SgtDoomsday

Warper
Member
Joined
Feb 17, 2018
Messages
2
Reaction score
1
First Language
English
Primarily Uses
RMMV
Hello everyone.

I've been trying for several days now to create a 'Frozen Armor' skill for my game, but with no success. I want the state set by the skill to buff the user's def based on a percentage of their mat. I am using the majority of the Yanfly Engine Plugins and have tried to use those as well as elements of some of their 'Tips & Tricks' videos to create this spell, but nothing has worked yet. Does anyone know of a way to do this?

Thanks in advance.
 

Isabella Ava

Veteran
Veteran
Joined
Sep 13, 2016
Messages
635
Reaction score
756
First Language
English
<Custom Apply Effect>
target._bdef = target._bdef || 0;
target._bdef = target.mat * 0.5;
target.addParam(3, target._bdef);
</Custom Apply Effect>

<Custom Remove Effect>
target.addParam(3, -target._bdef);
delete target._bdef;
</Custom Remove Effect>

You must installed Yanfly Buff & State core plugin first: http://yanfly.moe/2015/12/25/yep-50-buffs-states-core/
 
Last edited:

SgtDoomsday

Warper
Member
Joined
Feb 17, 2018
Messages
2
Reaction score
1
First Language
English
Primarily Uses
RMMV
<Custom Apply Effect>
target._bdef = target._bdef || 0;
target._bdef = target.mat * 0.5;
target.addParam(3, target._bdef);
</Custom Apply Effect>

<Custom Remove Effect>
target.addParam(3, -target._bdef);
delete target._bdef;
</Custom Remove Effect>

You must installed Yanfly Buff & State core plugin first: http://yanfly.moe/2015/12/25/yep-50-buffs-states-core/
That worked. Thank you very much!

If I wanted to make a similar spell that was cast on an ally, but used the caster's mat, would I just replace 'target.mat' with 'user.mat' ?
 

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,847
Messages
1,016,968
Members
137,561
Latest member
JaCrispy85
Top