Announcement

Collapse
No announcement yet.

How do I get a script to check for an item?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How do I get a script to check for an item?

    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!

    #2
    Re: How do I get a script to check for an item?

    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.
    Looking for a rmxp group to Join? Visit

    www.freewebs.com/warriordomain

    "The Only Limitations Are Those You Set On Yourself"

    Comment


      #3
      Re: How do I get a script to check for an item?

      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.




      The Crown of Order demo is here.

      Comment


        #4
        Re: How do I get a script to check for an item?

        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.

        MOO!




        Comment


          #5
          Re: How do I get a script to check for an item?

          Yay! I got it to work!!!!! Thanks a whole lot, guys!

          Comment

          Working...
          X