Sorry to bother you again but I have to ask: is it possible to implement the buff breaker using the visustella state categories so it deals more damage the more count of a certain category the foe has?
Thanks for your time.
Sorry to bother you again but I have to ask: is it possible to implement the buff breaker using the visustella state categories so it deals more damage the more count of a certain category the foe has?
So you want the number of states with that category to act as a multiplier on the buff breaker damage?
Yeah, something like that. Literally, I was trying to make a debuff-abuser class but I'd like to customize what states are considered debuffs via visustella category states.
Can you tell me specifically how you want the implementation to work so I can be sure I'm giving you accurate code? Like take me through a worked example of the class using Debuff Breaker on a target.
Sure.
Okay, so you'd be looking at something along the lines of
<JS Post-Apply>
let hp = 0;
for (let i = 0; i < 8; ++i) {
if (target._buffs[i] > 0) {
hp -= user.mat * 2;
}
if (target._buffs[i] < 0) {
hp += user.mdf * 2;
}
target._buffs[i] = 0;
}
const multiplier = target.totalStateCategory("name of category here");
hp *= multiplier;
if (hp > 0) {
$gameTemp.requestAnimation([target], 41);
} else if (hp < 0) {
$gameTemp.requestAnimation([target], 56);
}
if (hp !== 0) {
target.gainHp(hp);
target.startDamagePopup();
}
</JS Post-Apply>
$gameSwitches.value(4) that's a completely different syntax than return true. One would type return $gameSwitches.value(4) if that's the syntax the plugin parameter is expecting.I mean in a new project without any plugins, you'd be missing VisuStella's Battle Core, which is required for the JS Post-Apply tag. 😛 You do have that enabled, right?
I haven't gotten to that point in my thread review yet but I'll let you know when I get there.
The damage formula @Trihan provided for that T&T should use
a not usera._allyHp + a._allyMat * 14Sure, change the skill's scope to be 1 Ally and then reference
target in the notetags instead of getting the random ally.Sorry to bother, but I know no coding. What should the reference of the target be?
<JS Pre-Start Action>
user._allyHp = target.hp;
user._allyMat = target.mat;
</JS Pre-Start Action>
user.gainHp(user._allyHp + user.allyMat * 14).Original thread: https://forums.rpgmakerweb.com/threads/how-to-implement-every-possible-yanfly-tips-tricks-effect-in-mz-with-visustella-plugins.143816/