Jump to content
  • 0

adjust card bonus effect based on karmapoints


pedro chaves

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  06/20/18
  • Last Seen:  

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?

 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  120
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   6
  • Joined:  12/02/11
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  06/20/18
  • Last Seen:  

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

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  06/20/18
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

-	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;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  06/20/18
  • Last Seen:  

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},{},{}

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