Hello, I am trying to figure out if it's possible to make an item grant a bonus depending on current HP. I would like an armor item to grant 20% damage to all classes when the character is below 50%.
I tried if(Hp < MaxHp / 100 * 50) { ... } but it did not work. Is this kind of condition even possible or would it require the player to equip the item when below 50%?
Question
Roku
Hello, I am trying to figure out if it's possible to make an item grant a bonus depending on current HP. I would like an armor item to grant 20% damage to all classes when the character is below 50%.
I tried if(Hp < MaxHp / 100 * 50) { ... } but it did not work. Is this kind of condition even possible or would it require the player to equip the item when below 50%?
Edited by RokuLink to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.