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' ?
 

Latest Threads

Latest Posts

Latest Profile Posts

Welp, people are trying to quit my team because I can't code. Where's the dancing blob emoji when I need it?
My home state baseball team is going back to the World Series for the first time since 1999. I remember when they went in 1995 and won, that was like the best day of my life. (I'm a huge baseball fan and yes I'm talking about the Braves).

Forum statistics

Threads
116,054
Messages
1,095,313
Members
151,400
Latest member
cashmelo
Top