Need help sprite giving you item

Hi i need help with a sprite giving me an item.


The sprite will ask for a ring and if you give him the ring he wants he will give you a special item (pendent) I am able to get item and give him the ring, and if you don't have ring it won't show up. But my problem is after i give him the ring he doesn't give me any item.


I need some help with the event where the sprite will accept the ring and then i return will give you the pendent item. Can someone please help me with the event and write the correct one to give the pendent item to me?


Note the following images are from sample map just for practice.


editevent1.JPG


no ring.JPG


give ring.JPG


nothing.JPG


pendent item database.JPG
You are doing it backwards as far as I can tell. It looks like you are saying If the player has the key item (I assume the pendant?), then give the player a ring.


You should check for a ring and then if the player has it, remove the ring and give the pendant.
You are doing it backwards as far as I can tell. It looks like you are saying If the player has the key item (I assume the pendant?), then give the player a ring.


You should check for a ring and then if the player has it, remove the ring and give the pendant.

could you please give me a sample of what the event contents should look like?


I want to give the ring to the sprite in the graveyard then the old man sprite will give me the pendent.
Assuming you have the event where you acquire the ring set up so that the player can get one and only one ring, I would do this:

Spoiler
64xiYkV.png
Assuming you have the event where you acquire the ring set up so that the player can get one and only one ring, I would do this:


still not working for me.
What do you mean by "not working"? Is the same thing still happening? 
What do you mean by "not working"? Is the same thing still happening? 

yes nothing is happening, i give him the ring but it doesn't do anything it goes back to the screen. He doesn't give me the item pendent.


nothing.JPG
Are you sure? usually nothing happens when you get an item. Go into your inventory screen (titled "items" in your menu) and see if the pendant is there. 
Are you sure? usually nothing happens when you get an item. Go into your inventory screen (titled "items" in your menu) and see if the pendant is there. 

is this where you go for your inventory? i don't have it. I disabled some scripts as this will be a non-combat game (followed this non combat instructions i found on a site) i think i disabled the inventory. Where do you find the Inventory? I made sure i didn't disabled the items as i needed that.


menu.JPG


pendent is here:

items.JPG
Yeah, unless you tell the event to do something to indicate that you've received an item, you won't know other than by looking in the inventory. If you need some sort of confirmation, you can set a text to display "You've received 1 ring" or make it play a sound effect or something.
The item screen should be found when you pause the game (press Esc). I really hope you commented the section and didn't delete it. 
The item screen should be found when you pause the game (press Esc). I really hope you commented the section and didn't delete it. 

How do i get that inventory back. My game will be a non-combat game, you be talking to people in game for example a sprite gives you an item then that item you give to a sprite and the sprite will give you an item. Or like a sprite gives you a key and that key will open a door. Do i have to have an inventory for this type of thing? like if i want to give an item to a sprite? that i got from another sprite?
Open a new project and copy Window_MenuCommand to your current project as that is probably where you edited. And yes you should have an inventory for that because you need to know what you have. 


I really think you should take some tutorials to help you get a little more accustomed to the engine, though.
I'm on the same project i went to scripts and the Windo_MenuCommand is already on there. What do i do with the MenuCommand?

menucommand.JPG
How did you disable the menu items in the first place?
@mlogan Looks like he commented "add original commands", "add formation command" and "add main command". So, @cyberfox2016, you need to delete the comment signs ("hashtags"), and your menu should return to normal. Unless you deleted something else. 
How did you disable the menu items in the first place?

I saw this on a website, i press # on the side of each one i don't need. My game will be non-combat so i don't need skills and such. I enabled the items but there is nothing in there even when i get my ring it doesn't appear in my inventory items, and no pendent when i gave ring to sprite in graveyard.


no ringdd.JPG


no pendent.JPG


This is where i disabled the menu for my non combat game


https://steamcommunity.com/app/220700/discussions/0/627456486496177696/
Yeah, I saw that now, was just editing my comment. 😛


Can you show a screenshot of your latest event where you trade the ring for the pendant, as well as the event where you get the ring?
That is because your ring is a key item, so it would go in the key items tab. But it looks like you edited the item menu as well because there is only one command. 
Your event is not correct.


You're saying if the player chooses the pendant, then your NPC will give the ring to the player.  You've got it the wrong way around.  It should be something like this:

Code:
Select Key Item: [0001: key item]
Conditional Branch: Variable [0001: key item] == 18 
  # player selects the ring from inventory
  Show Text: Thank you for finding my ring. Here is a pendant as a reward.
  Change Items: Ring - 1
  Change Items: Pendant + 1
Branch End

If the player chooses the ring from the list of items, then the ring will be removed (you're giving it back to the NPC), and you get a pendant.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-sprite-giving-you-item.68224/