Mihael Posted June 19, 2018 Share 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 Link to comment Share on other sites More sharing options...
0 Tyrfing Posted June 19, 2018 Share 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 Link to comment Share on other sites More sharing options...
0 Mihael Posted June 19, 2018 Author Share 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 Link to comment Share on other sites More sharing options...
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.
Link to comment
Share on other sites