- Joined
- Oct 22, 2016
- Messages
- 91
- Reaction score
- 6
- First Language
- english
- Primarily Uses
I'm trying to add a check for three separate states (that cannot be used together) :
Power tactics : Reduces the hit and adds damage
Precision tactics : Increases hit and reduces damage
Speed tactics : Reduces Eva but increase every skill's SPD
Modifying Hit is easy (traits), but damage, on a global scale.... well i could add a conditionnal check on EVERY skill, but that would be clunky
Alternative would be using YF's damage core, it offers a hand in the game's "phases" of damage calculation, in which one could "easily" add a check.
After the line on physical damage calculation for exemple :
baseDamage = this.modifyBaseDamage(value, baseDamage, target);
INSERT LINE HERE (because the - or + damage would be affected by potential element resistances)
baseDamage *= this.calcElementRate(target);
Question :
Any way to add 2 conditional checks for : If a state from 99 to 103 (Precise tactics) is present on initiator, add - Math.ceil (a.level * 0.5)
And : If a state from 93 to 97 (Power tactics) is present on initiator, add + Math.ceil (a.level * 0.5)
Bonus question :
Any way to modify SPD without changing parameters ? (My Agi doesnt just add speed, but also Hit, Eva and more, so i can't modify it freely)
Thanks for reading
Power tactics : Reduces the hit and adds damage
Precision tactics : Increases hit and reduces damage
Speed tactics : Reduces Eva but increase every skill's SPD
Modifying Hit is easy (traits), but damage, on a global scale.... well i could add a conditionnal check on EVERY skill, but that would be clunky
Alternative would be using YF's damage core, it offers a hand in the game's "phases" of damage calculation, in which one could "easily" add a check.
After the line on physical damage calculation for exemple :
baseDamage = this.modifyBaseDamage(value, baseDamage, target);
INSERT LINE HERE (because the - or + damage would be affected by potential element resistances)
baseDamage *= this.calcElementRate(target);
Question :
Any way to add 2 conditional checks for : If a state from 99 to 103 (Precise tactics) is present on initiator, add - Math.ceil (a.level * 0.5)
And : If a state from 93 to 97 (Power tactics) is present on initiator, add + Math.ceil (a.level * 0.5)
Bonus question :
Any way to modify SPD without changing parameters ? (My Agi doesnt just add speed, but also Hit, Eva and more, so i can't modify it freely)
Thanks for reading
Last edited by a moderator:
