Mihael Posted June 19, 2018 Posted June 19, 2018 i guys can please anyone help me on this item bonus script for my items?? 1) Increase % of atk based on % of maxhp on the character. Quote
0 Tyrfing Posted June 19, 2018 Posted June 19, 2018 (edited) bonus bAtkRate, (MaxHp * percentage_of_maxhp) / 100; This will increment the ATK by the specified percentage of the max hp. I'm sure this is not what you want, but it is what you requested. If MaxHp is 500, and percentage is 1, then this will add a bonus of 500 * 1 / 100 = 5% to ATK. If you find that this is too much (you probably will), you can multiply the denominator by a constant which better suits your needs. In my opinion, this will never be an interesting bonus, unless you make it non-linear, so that the bonus gets smaller as the MaxHp increases. Edited June 19, 2018 by Tyrfing 1 Quote
0 Mihael Posted June 19, 2018 Author Posted June 19, 2018 2 hours ago, Tyrfing said: bonus bAtkRate, (MaxHp * percentage_of_maxhp) / 100; This will increment the ATK by the specified percentage of the max hp. I'm sure this is not what you want, but it is what you requested. If MaxHp is 500, and percentage is 1, then this will add a bonus of 500 * 1 / 100 = 5% to ATK. If you find that this is too much (you probably will), you can multiply the denominator by a constant which better suits your needs. In my opinion, this will never be an interesting bonus, unless you make it non-linear, so that the bonus gets smaller as the MaxHp increases. Tks, Work. Quote
Question
Mihael
i guys can please anyone help me on this item bonus script for my items??
1) Increase % of atk based on % of maxhp on the character.
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.