Hello, I want use lunatic to create a state that when the effected is stuck for weakness it does increased damage. Any help would be appreciated. Has to be lunatic no default functions for it exist in any plug ins. It is to remake the T&T for Atunement (http://www.yanfly.moe/wiki/Attunement_(MV_Plugin_Tips_&_Tricks)) in a way the state is on the target of the skills, not a passive on the user. Thanks.
Exploiting enemy weakness.
Javascript/Plugin SupportIm not sure I 100% understand but why not use the default;
In states, traits, elemental rate * X%
Elemental Rate Fire * 130% means target takes 30% extra fire damage.
You want a state that makes enemies take more elemental damage?
Exactly. A state that rewards hitting a weakness by adding more damage.
That exists in the default maker under traits.
In addition to the weakness damage already done?
Okay I misunderstood! I thought you wanted to have them take extra damage from an element. Oh boy lol!
Its simple then, its the same code but you use React instead of Confirm. If you apply the state on target and you hit a weakness they take more damage!
Code:
<Custom React Effect>
// Check if the action deals HP damage
if (this.isHpEffect() && value > 0) {
// Get this action's elements
var elements = this.getItemElements();
// Loop through each of the elements
for (var i = 0; i < elements.length; ++i) {
// Get the currently looped element
var elementId = elements[i];
// Check if the target is weak to the element
if (target.elementRate(elementId) > 1.00) {
// Set the bonus damage rate to be dealt
var rate = 1.3;
// Calculate the new damage value
value = Math.ceil(value * rate);
// Break the loop
break;
}
}
}
</Custom React Effect>
Wow that worked. I tried that before but it didn't. How weird. Anyway thanks a bunch. I'd been frustrated over this for days.
Original thread: https://forums.rpgmakerweb.com/threads/exploiting-enemy-weakness.122081/