Hello all, I'm looking for what is (hopefully) a quick solution to my problem. I would like to change the damage text in my game to show the element type (as I am using front view battle, this would make it much easier to display damage types than a colored number popup) when dealing damage. The image below, I would essentially like it to say "Target took 100 fire damage" or "Target took 100 lightning damage" based on the element of damage they just took.
I have pulled code from rpg_windows.js and copied it into a new plugin. For my new var, element, I first set it to result.hpDamage and placed element in FableDamageText.js line 12 return statement. Using the image above with the %1, %2, and %3, I was able to use the plugin below to make my text say "Target took 100 100 damage," meaning I know I am on the right track in terms of getting it to display something different than normal.
However, I'm having a hard time trying to find out what I need to place in line 4 of FableDamageText.js to display the element of the damage that just came in (where I Have placed ?????). I do not know if that is an rpg_windows situation but it seems like this is the closest I've been able to get to figuring this out.
If anyone has any tips or insight on how to make this work and what function or text I can change var element to spit out, I would be greatly appreciative. As mentioned, the goal is to make my new variable in that return statement say the damage type of the damage just received 🙂
I have pulled code from rpg_windows.js and copied it into a new plugin. For my new var, element, I first set it to result.hpDamage and placed element in FableDamageText.js line 12 return statement. Using the image above with the %1, %2, and %3, I was able to use the plugin below to make my text say "Target took 100 100 damage," meaning I know I am on the right track in terms of getting it to display something different than normal.
However, I'm having a hard time trying to find out what I need to place in line 4 of FableDamageText.js to display the element of the damage that just came in (where I Have placed ?????). I do not know if that is an rpg_windows situation but it seems like this is the closest I've been able to get to figuring this out.
If anyone has any tips or insight on how to make this work and what function or text I can change var element to spit out, I would be greatly appreciative. As mentioned, the goal is to make my new variable in that return statement say the damage type of the damage just received 🙂