Power Charge - Yanfly Battle and Buff Cores

MerlinCross

Veteran
Veteran
Joined
Jun 8, 2015
Messages
208
Reaction score
88
First Language
English
Primarily Uses
So I'm having a.... odd problem.

I attempted to follow Yanfly's Power/Mind Charge tutorial. It works but I wanted to have 1 skill buff the next attack so I removed anything mentioning Physical or Magical. And it works! Damage is doubled...., but hard to tell the attack is going off. Yanfly has a section in the code to have it play an animation but mine doesn't. And while the first thing I checked was to make sure it wasn't an empty animation, it doesn't work with anything when done this way. Code is in the quote.

<Custom Action Start Effect>

// Get the current action.

var action = user.currentAction();

// Check if the action is magical and deals HP damage.

if action.isHpEffect() {

// Start the animation.

user.startAnimation(37);

}

</Custom Action Start Effect>



<Custom Confirm Effect>

// Check if the action is magical and deals HP damage.

if (this.isHpEffect() && value > 0) {

// Increase the damage by a multiplier.

value *= 2.0;

// Round up the damage.

value = Math.ceil(value);

// Remove the state.

user.removeState(stateId);

}

</Custom Confirm Effect>
I wasn't sure if it should go here or in plug in support.
 

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

Latest Threads

Latest Posts

Latest Profile Posts


230 paths... roughly 250 light sources on the screen... One serious lag fiesta... But I finally got it all the screen at once. I guess I could have also just made an event to spawn each one in exactly the location I needed, but that's sooo much less fun. :LZSwink:
A wee radio thing I made months and months and months ago. 2020 has felt like such a long year. Maybe made this before 2020.IDK anymore.

Made this one much more recently.
Stream will be live shortly with a surprise session of the Interactive Text Adventure! Feel free to drop by!

Forum statistics

Threads
104,497
Messages
1,006,723
Members
135,996
Latest member
lunette
Top