PDA

View Full Version : How do I get a script to check for an item?


gryphonkessira
07-10-2005, 04:09 PM
I have some Imps in my game which drop imp toes. I want the characters
to be able to talk to another person and trade the imp toes for another item.
I can't seem to figure out how to get the script to check and see if the party
has any imp toes, and then either give them the new item if they do, or
tell them "you don't have any imp toes." if they don't.
Thanks!

Warrior Angel
07-10-2005, 04:40 PM
i only know a roundabout answer to this.'

when you set the script for the person that talks to you go to add a page and go to condition as your script type and set the condition......

i can't really remember the exact directions.

Dungeon Warden
07-10-2005, 04:57 PM
Data: Check member item will check if the member whose database number is in variable 86 has the item whose database number is in variable 134 when Data : Member Info : Load and will turn on Flag 111 if they do, or turn it off if they don't.

You can also use Game Info Load to see if the item is in the bag. Variable 80 will store the total amount of the item whose database number is in variable 134 that is in the bag.

Press Start for the help file on these commands for more info.

Rodak
07-10-2005, 05:57 PM
You could also make a 2 page event with the "Has" condition set for the item in question on one of the pages.

That would let you call two different scripts dependent on the party's possessions.

Good luck with it.

Peace.

gryphonkessira
07-10-2005, 06:29 PM
Yay! I got it to work!!!!! Thanks a whole lot, guys!