- Joined
- Jan 5, 2016
- Messages
- 149
- Reaction score
- 88
- First Language
- English
- Primarily Uses
- RMVXA
Been experimenting trying to create a window in Scene_Skill that shows hypothetical damage output of a given skill. This is easier said than done, however, as I'm having an increasing amount of trouble getting the program to return a numeric value from the skill's formula outside of battle. I'm doing this by simulating an @actor argument in the Window class and $data_enemies[999] which is just a dummy with 0 Defense. All I did after that was use @skill.damage.formula, then @actor.send(formula), but that returns an error even when the exact method is defined under Game_Battler.
I can give more examples/actual code if needed, but I'm curious if anyone knows an immediate solution to return a value for a given skill outside of battle using a hypothetical enemy. I found the precise method "make_damage_value(user, item)" but not only does it straight up return 0, it also calculates a lot of things I don't want (I only want to simulate the formula, without variance or crit).
If anyone has any idea on how to do this, I'd be more than appreciative.
I can give more examples/actual code if needed, but I'm curious if anyone knows an immediate solution to return a value for a given skill outside of battle using a hypothetical enemy. I found the precise method "make_damage_value(user, item)" but not only does it straight up return 0, it also calculates a lot of things I don't want (I only want to simulate the formula, without variance or crit).
If anyone has any idea on how to do this, I'd be more than appreciative.
