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

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

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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