Jump to content
  • 0

Only up to +10 Refine


Question

Posted (edited)

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

4 answers to this question

Recommended Posts

Posted (edited)

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
Posted

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

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