Hadeszeus 15 Posted March 9, 2014 How can I write this? if 2 ring_ isequipped || isequippedcnt of IFRIT is == 2 bonus 1 else bonus 2 ???? if(isequipped(Ring_) == 2 ) || isequippedcnt(Ifrit_Card) == 2) { bonus bStr,50; } else { bonus bStr, 20; } Looks like isequipped only returns 1 and 0. Any possible way? Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted March 9, 2014 use the same command for both if(isequippedcnt(Ring_) == 2 ) || isequippedcnt(Ifrit_Card) == 2) { bonus bStr,50;} else { bonus bStr, 20;} 1 Hadeszeus reacted to this Quote Share this post Link to post Share on other sites
0 Gerz 7 Posted March 9, 2014 if( getequipid(7) == itemid && getequipid(8) == itemid ) { blahblah } 1 Hadeszeus reacted to this Quote Share this post Link to post Share on other sites
0 Hadeszeus 15 Posted March 9, 2014 use the same command for both if(isequippedcnt(Ring_) == 2 ) || isequippedcnt(Ifrit_Card) == 2) { bonus bStr,50;} else { bonus bStr, 20;} Thanks for this Bro. Problem Solved! I'm confused with the description. *isequippedcnt(<card id>{,<card id>{,<card id>{,<card id>}}})This function is similar to 'isequipped', but instead of 1 or 0, it will return the number of cards in the list given that were found on the invoking character. I thought its only for checking cards. Quote Share this post Link to post Share on other sites
How can I write this? if 2 ring_ isequipped || isequippedcnt of IFRIT is == 2 bonus 1 else bonus 2 ????
Looks like isequipped only returns 1 and 0. Any possible way?
Share this post
Link to post
Share on other sites