Im trying to make some skills that apply a state when used, also if you learnt a passive it upgrades that state to have a DoT effect, furthermore you can use the passive in battle to double the damage of DoT for that battle.
2 skills:
1)DMG, applies a state 1
2)(a)Passive: If learnt, when state 1 is applied, enemy takes 50 DMG
(b)You can use the passive as an active ability to apply state 2, which now has the DoT dealing 100 DMG.
I just cant get this to work.
Heres State 1 Notebox:
Issues:
-It works when I dont know the passive it just applies state 1 and not DoT, if I learn the passive the 50 DoT works, but when I use the passive in battle to apply state 2, the enemy takes 2x 100 damage instead of replacing the 50.
Please help tried all sorts of variations on this just cant seem to figure it out.
2 skills:
1)DMG, applies a state 1
2)(a)Passive: If learnt, when state 1 is applied, enemy takes 50 DMG
(b)You can use the passive as an active ability to apply state 2, which now has the DoT dealing 100 DMG.
I just cant get this to work.
Heres State 1 Notebox:
Code:
if ($gameActors.actor(1).hasSkill(104) && user.isStateAffected(2)){
var damage = 100;
target.startAnimation(59);
target.gainHp(-damage);
target.startDamagePopup();
target.clearResult();
if (target.isDead()) {
target.performCollapse();
}
}
else if ($gameActors.actor(1).hasSkill(104)) {
var damage = 50;
target.startAnimation(59);
target.gainHp(-damage);
target.startDamagePopup();
target.clearResult();
if (target.isDead()) {
target.performCollapse();
}
}
</Custom React Effect>
-It works when I dont know the passive it just applies state 1 and not DoT, if I learn the passive the 50 DoT works, but when I use the passive in battle to apply state 2, the enemy takes 2x 100 damage instead of replacing the 50.
Please help tried all sorts of variations on this just cant seem to figure it out.