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 Profile Posts

May I make a suggestion for what language we should use for plugins?

IMG_1177.JPG
Have you opened all the advent calendar's yet? Don't forget to leave @Starbird_Resources and @WaywardMartian some love!
1638376821276.png
LOOK AT EM GOOOOOOOOOO!
Sorry for the spam with this, I'm just real happy with how this has gone :D
Custom sleep sequence done! :kaopride:
fuY8hyg.gif
The other day I posted a merchant airship tileset and said it was overflow from my Advent Calendar. @Avery said something like "that's one way to flex!" Well, this morning I woke up and realized THAT I MISCOUNTED AND AM SHORT BY ONE DAY. My face and palm are now perfectly fused together.

Forum statistics

Threads
117,105
Messages
1,104,622
Members
153,128
Latest member
Scorchlicious
Top