Jump to content
  • 0

adjust card bonus effect based on karmapoints


Question

Posted

Hi guys, im building a new RO, and i have karma system.

 

i need make Executioner Card read my SETKARMAPOINTS, and make a calc,

EX:

if (karmapoints >1000) bonusCrit10
elseif (karmapoints >2000) bonusCrit20
elseif (Karmapoints >300) bonusCrit30
etc...

 

someone can help me?

 

5 answers to this question

Recommended Posts

  • 0
Posted

try this 

Quote

4250,Executioner_Card,Executioner Card,6,20,,10,,,,,,,,32,,,,,{ bonus bCritical,(karmapoints/100); bonus2 bSubSize,Size_Large,25; bonus bDef,1; },{},{}

or you can create custom function and call it on your item

but the problem if you change the karmapoints

  • 0
Posted
1 hour ago, hakuren said:

try this 

or you can create custom function and call it on your item

but the problem if you change the karmapoints

 

dont work man...

he cant get karmapoints for make the calc

 

  • 0
Posted

i get it how u say

4 hours ago, hakuren said:

try this 

or you can create custom function and call it on your item

but the problem if you change the karmapoints

 

now i need how to take it on function like that

 

if (karmapoints >1000) bonusCrit10
elseif (karmapoints >2000) bonusCrit20
elseif (Karmapoints >300) bonusCrit30
etc...

  • 0
Posted
-	script	sample	-1,{
OnPCStatCalcEvent:
	if (karmapoints > 1000) bonus bCrit,10;
	else if (karmapoints > 2000) bonus bCrit,20;
	else if (Karmapoints > 300) bonus bCrit,30;
	end;
}

 

  • 0
Posted
11 hours ago, Emistry said:

-	script	sample	-1,{
OnPCStatCalcEvent:
	if (karmapoints > 1000) bonus bCrit,10;
	else if (karmapoints > 2000) bonus bCrit,20;
	else if (Karmapoints > 300) bonus bCrit,30;
	end;
}

 

Hi Emistry, thank you! how i can transform it in one function and call for executioner card like it

 

Return xval

4250,Executioner_Card,Executioner Card,6,20,,10,,,,,,,,32,,,,,{ bonus bCritical,(xval},{},{}

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