Jump to content
  • 0

(Solved) Increase stats by %


Question

Posted (edited)

Hello guys, 

I have just recently started to learn about scripting  and editing my offline server, so. Let's get to the point

is there anyway i can make an equipment that would give, let's say, 4% str or if refined 7 or more would give 5% str based on base str 

Thank you for your help,

Have a good day !

Edited by boonpal2

3 answers to this question

Recommended Posts

  • 0
Posted

Use Str variable and multiply it by 0.X, 1 meaning 100% and sum it to the total Str

 

like 

 

bonus bStr,bStr*0.24;

 

Meaning that it will increase Str by 24%

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...