I have an item that, when used, immediately kills enemies:
I want the item to be ineffective against "boss" enemies. So I modified Game_Action.prototype.evalDamageFormula():
I was hoping that my edit would allow me to add a "+ boss" to my original formula, and have the item be ineffective towards enemy entries in my database with a <boss> tag in their notes:
Here is where I have run into a problem, though- the player is able to deal damage to enemies but none of the enemies are able to deal damage back to the player.
The enemies are not using the item in question. I am using ABS mode in Chrono Engine and they are assigned a totally different skill.
I checked to see if MOG_ChronoEngine.js had any instances of evalDamageFormula() that I might be inevitably overwriting (since I am not aliasing it in my edit), but it doesn't. MOG_ChronoEngine.js does have a function called evalDamageFormulaCN(), but it doesn't seem linked to the original evalDamageFormula():
So I can't really see how editing one would affect the other.
Does anybody know what I am doing wrong? Is there another way to accomplish what I am trying to achieve?
Thanks for your help!
I want the item to be ineffective against "boss" enemies. So I modified Game_Action.prototype.evalDamageFormula():
I was hoping that my edit would allow me to add a "+ boss" to my original formula, and have the item be ineffective towards enemy entries in my database with a <boss> tag in their notes:
Here is where I have run into a problem, though- the player is able to deal damage to enemies but none of the enemies are able to deal damage back to the player.
The enemies are not using the item in question. I am using ABS mode in Chrono Engine and they are assigned a totally different skill.
I checked to see if MOG_ChronoEngine.js had any instances of evalDamageFormula() that I might be inevitably overwriting (since I am not aliasing it in my edit), but it doesn't. MOG_ChronoEngine.js does have a function called evalDamageFormulaCN(), but it doesn't seem linked to the original evalDamageFormula():
So I can't really see how editing one would affect the other.
Does anybody know what I am doing wrong? Is there another way to accomplish what I am trying to achieve?
Thanks for your help!