Hello Everyone. I'm new to this forum so please tell me if I'm doing something wrong with this post.
Anyway, I am making a game and I want to give items to NPC. I tried the conditional branch to check if item is in inventory but that's not what I need, because I want to let the player check the inventory first then confirm the item to be given to the NPC. I am not sure if that's even possible, but hope you could help me.
Any replies would be much appreciated 🙂 Thanks 🙂 🙂
you can use control variable : game data to load the number of items of any type into the variable, and then chack the variable to see how many the player has.
If you want the player to select the item when talking to the NPC, set it up as a Key Item and use the Select Key Item command to put the item id into a variable. Then you can do a conditional branch to see what the variable is - if it's the correct item ID, remove the item and do whatever processing you want to do.
Thanks for the replies, but what I want to happen is when the player talks to an NPC there will be choices as Talk, Give and Cancel.. When the player choose Talk, there will be a 'Show Text' Event, which I managed already. And when the player choose Give, the inventory or item list will pop-up so the player can choose what item to give. It's somewhat like the sell command where player confirms which to sell and how many to sell..
Anyway, I did appreciate all the replies.
Thanks again.
yeah, the only way to do this without scripting is if you make that item as a key item. Else you will need a script that allows showing of normal items in a list for events.
Thanks everyone! I'll try all your suggestions. 🙂 🙂
YES!! 🤘 🤣 🤘
It worked!! Thanks to all your suggestions guys!! 😀 😀