From d6498f81cc40784337ae93957245176318a32cfe Mon Sep 17 00:00:00 2001 From: Emistry Date: Mon, 31 Aug 2015 14:20:24 +0800 Subject: Updated doc/script_commands.txt isequipped() and isequippedcnt() support not only card id, but also support any item id. --- doc/script_commands.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'doc/script_commands.txt') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 0726630df..f2022e347 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -3988,7 +3988,7 @@ night mode or day mode: //===================================== --------------------------------------- -*isequipped({,{,{,}}}) +*isequipped({,{,{,}}}) This function will return 1 if the invoking character has all of the item IDs given equipped (if card IDs are passed, then it checks if the cards @@ -4001,19 +4001,22 @@ If even one of the items given is not equipped, 0 will be returned. if (isequipped(4001,4005,4033,4196)) mes "Wow! You're wearing a full complement of possible poring cards!"; // (Poring) if (isequipped(4001)) mes "A poring card is useful, don't you think?"; + // (Earring) + if (isequipped(2622)) mes "You got a pair of nice Earring."; The function was meant for item scripts to support the cards released by Gravity in February 2005, but it will work just fine in normal NPC scripts. --------------------------------------- -*isequippedcnt({,{,{,}}}) +*isequippedcnt({,{,{,}}}) 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 +return the number of equipped items/cards in the list given that were found on the invoking character. if (isequippedcnt(4001,4005,4033,4196) == 4) mes "Finally got all four poring cards?"; + if (isequippedcnt(5353,2622) == 2) mes "You equipped both Helm of Sun and Earring."; --------------------------------------- @@ -5831,7 +5834,7 @@ Examples: --------------------------------------- *pcblockmove ,