Hey all,
So my game features weakpoints that when destroyed give various effects. I was trying to achieve this with a state on the target that has this Buff/States code:
Which then gets used in another skill's damage formula via Force Skill:
(a.mhp * 0.4) + v[291]
For some reason it gives this error:
Is "value" not able to be used in this way? It seems like it is recognized when using it in other places from the same plugin.
So my game features weakpoints that when destroyed give various effects. I was trying to achieve this with a state on the target that has this Buff/States code:
JavaScript:
<Custom Deselect Effect>
if (value >= target.hp) {
var overkill = value - target.hp;
$gameVariables.setValue(291, overkill);
}
</Custom Deselect Effect>
Which then gets used in another skill's damage formula via Force Skill:
(a.mhp * 0.4) + v[291]
For some reason it gives this error:
Code:
YEP_CoreEngine.js:1098 TypeError: Cannot read property 'clamp' of null
at Game_Enemy.Game_BattlerBase.refresh (rpg_objects.js:2614)
at Game_Enemy.Game_BattlerBase.refresh (YEP_X_EquipRequirements.js:490)
at Game_Enemy.Game_BattlerBase.refresh (YEP_DamageCore.js:1210)
at Game_Enemy.Game_BattlerBase.refresh (YEP_BuffsStatesCore.js:1164)
at Game_Enemy.Game_BattlerBase.refresh (YEP_WeaponUnleash.js:505)
at Game_Enemy.Game_BattlerBase.refresh (YEP_AbsorptionBarrier.js:732)
at Game_Enemy.Game_BattlerBase.refresh (YEP_X_LimitedSkillUses.js:625)
at Game_Enemy.Game_BattlerBase.refresh (YEP_AutoPassiveStates.js:421)
at Game_Enemy.Game_BattlerBase.refresh (YEP_X_SelectionControl.js:804)
at Game_Enemy.Game_BattlerBase.refresh (YEP_EnhancedTP.js:3427)
Is "value" not able to be used in this way? It seems like it is recognized when using it in other places from the same plugin.
