Jump to content
  • 0

Only up to +10 Refine


Dori

Question


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  332
  • Reputation:   15
  • Joined:  12/11/11
  • Last Seen:  

How can I make a item script that give +1 str for each refine level until refine level 10?
with this it goes above 10..
 
bonus bStr,(getrefine()*1
 
I took the Dark Bacilium script as an example and noticed that it doesn't have a limit of 10 either ...O.o
 
look:
 

{ bonus2 bResEff,Eff_Stone,2000+(getrefine()*200); bonus2 bResEff,Eff_Freeze,2000+(getrefine()*200); bonus2 bResEff,Eff_Stun,2000+(getrefine()*200); },{},{}

how it's supposed to be like is this:

Add a 20% resistance against Stone, Freeze, Stun. Each refine increases resistance by 2%.
However, the resistance increases only up to + 10 refine
.

 

so how is this item script reading if the upgrade level is 10 or not?

Edited by Phenex
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

try

if(getrefine()<11){ bonus bStr,getrefine(); } else { bonus bStr,10; }
Edited by Stolao
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  332
  • Reputation:   15
  • Joined:  12/11/11
  • Last Seen:  

Thanks that worked~! How would I go about fixing the script for the Dark Bacilium? Would you mind showing me this as well?
 
is it like this?

 
if(getrefine()<11){ bonus2 bResEff,Eff_Stone,2000+(getrefine()*200); } else { bonus2 bResEff,Eff_Stone,1000; }

And do I have to do this separately for each stat like this?

if(getrefine()<11){ bonus2 bResEff,Eff_Stone,2000+(getrefine()*200); } else { bonus2 bResEff,Eff_Stone,1000; }
if(getrefine()<11){ bonus2 bResEff,Eff_Stun,2000+(getrefine()*200); } else { bonus2 bResEff,Eff_Stun,1000; }
if(getrefine()<11){ bonus2 bResEff,Eff_Freeze,2000+(getrefine()*200); } else { bonus2 bResEff,Eff_Freeze,1000; }
Edited by Phenex
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

You can put each one separately, however its more space efficient to group them like this

ex:

if(getrefine()<11){ bonus2 bResEff,Eff_Freeze,2000+(getrefine()*200); bonus2 bResEff,Eff_Stone,2000+(getrefine()*200); bonus2 bResEff,Eff_Stun,2000+(getrefine()*200); } else { bonus2 bResEff,Eff_Stone,1000;  bonus2 bResEff,Eff_Stun,1000; bonus2 bResEff,Eff_Freeze,1000; }
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  332
  • Reputation:   15
  • Joined:  12/11/11
  • Last Seen:  

Awesome, thanks bud!

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...