Announcement

Collapse
No announcement yet.

Yay!!!!!!!!!!!!!!!

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

    Yay!!!!!!!!!!!!!!!

    I finally got RPG Maker 3 and it is my first RPG maker aside from a trial of XP and I have spent the past few days messing around with it but I'm trying to make a good game now and I have a question, how do you make it so that an NPC will only do something if you have a certain item?

    And I heard how everyone says that it is IMPOSSIBLE to find it in stores but I went to a local gamestop and they had more than a few copies and even better is that the price was only $30 and even better than that it was tagged half off so it was only $15!

    EDIT: I actually only want the NPC to to do something if the player has four of a certain item.
    Last edited by sonichero10; 05-29-2007, 07:17 PM.

    #2
    Re: Yay!!!!!!!!!!!!!!!

    Congrats on getting RPG Maker 3!!

    What kind of item is it exactly. A treasure item? Or a usable item in your inventory?

    EDIT: In addition to what Perversion mentions below, you may want to check the RPG Maker 3 - Tricks thread (trick #18)
    Last edited by Pagerron; 05-29-2007, 07:31 PM.
    " I am the way, the truth, and the life. No one comes to the Father but by me. " - Jesus

    Comment


      #3
      Re: Yay!!!!!!!!!!!!!!!

      For future reference, posts like this should probably go in RPGM3 workshop.

      What you need to do is when you give the item to the player (through an event or another NPC giving it), pick a variable and add 1 to the variable. Then when you want the NPC in question to only do something when you have the item (it's better to do this with a treasure item, as you can sell items, and the variable will still think you have the item on hand), make a Val Cond branch with the choices being, Variable you picked above=0, then have him say, "You don't have the item yet" or whatever, and Variable=1, then have him say, "Oh, wow....you found the item I was looking for" or whatever.


      Also, you can set up an event, and on the event page, there is a way to set up a condition of having the treasure item, and the event will activate. If no treasure item, the event does not activate. So if you don't want to go the variable route, you could do something similar to what I did in one of my games, and place an event (say a lidded pot) next to the NPC, and have the NPC say something like, "You need to place the treasure item in this pot," and set it up where it will only activate on "With treasure item." I guess in this sense, you would still have to use a variable to get the NPC to say what he needs to. You would put the code to say, "Lose Treasure Item" then increase a variable by one. When you talk to the NPC, put another Val Cond Branch where 0="You have not put the item in the pot yet" and variable=1, then "I see you've put the item in the pot....so now I'm going to.....whatever.


      Hope this helps a bit.

      Comment


        #4
        Re: Yay!!!!!!!!!!!!!!!

        Thanks =) I'll try it.

        Comment

        Working...
        X