- Joined
- May 10, 2014
- Messages
- 45
- Reaction score
- 6
- First Language
- English
- Primarily Uses
Hi.
I have a skill in my game that does increasing damage based on the player character's missing health. The skill itself works perfectly, the problem is I would like to set the skill to have a damage cap. I want to use the value determined by the formula in all cases except when that value is greater then 5000, in which case the skill does a max of 5000 damage.
It is possible to fight a boss, and use this skill when the player is almost dead and one shot the boss because the skill does 100,000 damage.
i also tried adding .max and this seemed to cause the skill to always do 5000 damage, which is not what I want. Maybe I'm doing that wrong though.
Hopefully there is something simple I can do to fix this.
Thanks for the help,
Mike
I have a skill in my game that does increasing damage based on the player character's missing health. The skill itself works perfectly, the problem is I would like to set the skill to have a damage cap. I want to use the value determined by the formula in all cases except when that value is greater then 5000, in which case the skill does a max of 5000 damage.
It is possible to fight a boss, and use this skill when the player is almost dead and one shot the boss because the skill does 100,000 damage.
i also tried adding .max and this seemed to cause the skill to always do 5000 damage, which is not what I want. Maybe I'm doing that wrong though.
Hopefully there is something simple I can do to fix this.
Thanks for the help,
Mike

