You should be able to add both through the effects of the skill.
You can also add additional effects through linking a common event to the usage of the skill.
I appreciate the help guys. I'm still so new to coding and such. It's quite intimidating but I really wanna learn
Is there a way to set that the minimum amount of damage for a skill as a percent instead of a fixed amount?
For the standard attack skill, the formula I use is: Math.max(a.atk * 4 - b.def * 2,1) So the minimum this skill can do is 1 damage.
The thing is, it gets pretty dumb when enemies who are meant to be intimidating end up hitting for 1 HP if the player becomes over powered. Is there a formula that I can use to make the minimum damage for this skill be, let's say 5% of the target's total health? It would be way easier than having to rebalance the entire game, since mine is open ended.
Thank you! I wasn't sure if it was that easy!
Thank you for all this great info, Skunk!
the eval for the damage formula expects a number as a result, and that number will always be the last one processed. in your first variants the number was calculated first, but never used anywhere.
it works the other way around because the number first calculated there is used in the gainhp function instead of just being ignored, while the second calculation is taken as the result of the eval and used by the engine itself.