pedro chaves Posted June 27, 2018 Posted June 27, 2018 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? Quote
0 hakuren Posted June 27, 2018 Posted June 27, 2018 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 Quote
0 pedro chaves Posted June 27, 2018 Author Posted June 27, 2018 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 Quote
0 pedro chaves Posted June 27, 2018 Author Posted June 27, 2018 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) bonusCrit10elseif (karmapoints >2000) bonusCrit20elseif (Karmapoints >300) bonusCrit30etc... Quote
0 Emistry Posted June 28, 2018 Posted June 28, 2018 - 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; } Quote
0 pedro chaves Posted June 28, 2018 Author Posted June 28, 2018 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},{},{} Quote
Question
pedro chaves
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.