Jump to content
  • 0
Sign in to follow this  
Hadeszeus

isequipped() can check same item?

Question

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?

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

 

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.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.