YEP_EquipCore Returning NaN in Equipment Formula

Sketchward

Veteran
Veteran
Joined
Jul 26, 2016
Messages
111
Reaction score
8
First Language
English
Primarily Uses
RMMV
Seems to be an issue with using that particular eval for the plugin notetag.

Just confirmed with a console.log that custom parameters notetags are evaluated every frame while on the equipment screen, so yeah. Trying to use any stat of the equipped character causes the call stack to be exceeded.

After some playing around, I realised some of the slowdown was being caused by a per-frame console.log I was running as a debug elsewhere; removing that did make an improvement, but it's still reaaaaaaaaaally slow. Takes about 20 seconds to show the stat change.

@Sketchward I've found a way to implement this; the only thing is that you don't see the increase when equipping it.

Give the weapon 10 base ATK, then create a passive state for the weapon with the following notetag:

Code:
<Custom Initiate Effect>
a._hpMod = Math.floor(10 * (1 - a.hp / a.mhp));
a.addParam(2, a._hpMod);
</Custom Initiate Effect>
<Custom Conclude Effect>
a.addParam(2, -a._hpMod);
delete a._hpMod;
</Custom Conclude Effect>
This will add atk based on lost HP when the actor starts an action, and remove the added atk afterwards.
Thanks so much for your time, I'm too tired to mess with it tonight but I'll try it first thing tomorrow and let you know if I run into any problems.
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,635
Reaction score
5,116
First Language
English
Primarily Uses
RMVXA

@Sketchward , please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.

I've merged some of your double-posts in this thread together.
 

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

Latest Threads

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,035
Messages
1,018,454
Members
137,821
Latest member
Capterson
Top