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

I decided to reinstall one of my most favourite game of all times, Gothic 2. Time to get back to Khorinis!
So much game make... I needs to rest. The foods call.
-Casino with bunnysuit green check.png
1638563168795.png
Monday December 6th 2021 at 7PM Hawkzombie will stream A Thief's Voyage on his Twitch.

Hawkzombie Twitch

Check it out.​
Ladies and gentlepeeps, I'm working on a Chuck E Cheese horror game! Did you know that in the 80's, in the Pizza Time Theater, Helen Henny was a separate character who performed in a separate room called the Cabaret? She was one of the possible guest stars there, and she was a Hollywood star at the time. But this particular unit seems to have a dark secret...

Forum statistics

Threads
117,162
Messages
1,105,058
Members
153,247
Latest member
Cmasta
Top