Jump to content
  • 0

H>Item bonus script i need some bonus script


Mihael

Question


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  130
  • Reputation:   70
  • Joined:  09/03/14
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  86
  • Reputation:   21
  • Joined:  10/02/13
  • Last Seen:  

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 by Tyrfing
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  130
  • Reputation:   70
  • Joined:  09/03/14
  • Last Seen:  

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.

❤️

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...