Mihael Posted June 19, 2018 Group: Members Topic Count: 21 Topics Per Day: 0.01 Content Count: 130 Reputation: 73 Joined: 09/03/14 Last Seen: June 3, 2023 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 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 86 Reputation: 21 Joined: 10/02/13 Last Seen: October 23, 2024 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 Group: Members Topic Count: 21 Topics Per Day: 0.01 Content Count: 130 Reputation: 73 Joined: 09/03/14 Last Seen: June 3, 2023 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...
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.
Link 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.