That is a comment. Shaz just put it in there for clarification, and you don't actually put it in your event commands.
everyone is so helpful on here, thank you. 🙂
How do you have your item set up? If it's set to a Key item it may not show up. You could change it to a regular item and set the price to 0, which would stop the player being able to sell it. Or, if you've made changes to your item script so it only shows one tab (no key items), that could be the problem. Your event is correct, and the pendant is definitely being added to inventory.
I think it's the latter - you've got a modified Items menu that doesn't let you see key items. I'd look at either changing it so the Key Items tab is back again, or the Items lists ALL the items and doesn't exclude key items.
You need to uncomment line 45 of Window_ItemCategory: add_command(Vocab::key_item, :key_item)
ok it worked it was disabled in my script. But it has that mp/hp and that default character pic on it. As my game will be a non-combat game i don't find any use for those MP/HP on the screen. Besides when i get an item for example, in my game i had a locked door for a house and i had to go and find the key to unlock the house i then obtained the key and opened the door without going to inventory to choose key or items.
Enable key item on the script (last screen shot)
Edit:Lol was on mobile didn't see the update
Ok you can close this topic now as my gameplay now only involves getting keys and items from chests and not people. As now i know how to get things from chests. I can close this topic now.