RPG Maker Forums

Hello!
I'm making a State that regenerates an Actor's health every turn based on the Luk parameter of the actor that afflicted it to him. To do this i'm using a few of Yanfly's plugins, such as the BuffStatesCore.

This is the code written for the State:
Code:
<Custom Apply Effect>
// Calculate the damage to be dealt by the formula.
target._Guidato = Math.floor((origin.param(7) - 10) / 2);
</Custom Apply Effect>

<Custom Remove Effect>
// Remove the damage effect.
target._Guidato = undefined;
</Custom Remove Effect>

<Custom Regenerate Effect>
// Default the DoT formula.
target._Guidato = target._Guidato || Math.floor((origin.param(7) - 10) / 2);
// Increases the target's HP
target.gainHp(target._Guidato);
// Start the damage popup.
target.startDamagePopup();
// Clear the target's results.
target.clearResult();
</Custom Regenerate Effect>
In theory, this code should take the Luk parameter of the actor that applied the skill, and use it as a base for the Health Regeneration effect. Apparently it doesn't work that way, and instead uses the Luk parameter of the actor that receives the State. I remember that "origin" served the exact purpose that i need, but perhaps it works differently?
EDIT: I should add, the skill that applies this State works outside of battle as well. Maybe it has something to do with that?

Latest Threads

Latest Posts

Latest Profile Posts

He mad, but he cute :kaopride:

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!

Forum statistics

Threads
106,036
Messages
1,018,461
Members
137,821
Latest member
Capterson
Top