Hi again! So quick Question,
I'm using Buffs and States Core to create an ability that Marks a target, the mark detonates the next time the target takes damage by activating a second skill
I'm using Skills Core to create a passive effect for my character where every time she sees an enemy die she casts a skill that restores MP
However, when the Detonation of the Mark kills the enemy the Passive effect does not activate properly
While I can leave it at "Detonation Damage does not proc the passive" I feel that's just poor game design and discourages the player from using the Mark ability
This is the code for each ability
Passive Effect: (On each of the character's damaging abilities)
Mark Code: (On the "Marked" Status Effect)
If someone knows what's going wrong here it'd really make my day! JavaScript and I aren't the greatest of friends after all...
I'm using Buffs and States Core to create an ability that Marks a target, the mark detonates the next time the target takes damage by activating a second skill
I'm using Skills Core to create a passive effect for my character where every time she sees an enemy die she casts a skill that restores MP
However, when the Detonation of the Mark kills the enemy the Passive effect does not activate properly
While I can leave it at "Detonation Damage does not proc the passive" I feel that's just poor game design and discourages the player from using the Mark ability
This is the code for each ability
Passive Effect: (On each of the character's damaging abilities)
<Post-Damage Eval>
if (target.hp <= 0) {
$gameParty.members()[0].forceAction(15, -2);
BattleManager.forceAction($gameParty.members()[0]);
}
</Post-Damage Eval>Mark Code: (On the "Marked" Status Effect)
<Custom Remove Effect>
var subject = $gameParty.members()[0];
subject.forceAction(12, 0);
BattleManager.forceAction(subject);
this.setWaitMode('action');
</Custom Remove Effect>If someone knows what's going wrong here it'd really make my day! JavaScript and I aren't the greatest of friends after all...