SELECT KEY ITEMS FROM NPC QUESTION

Posts

Pages: 1
I'll try to be as clear as I can.

I want 2 key items. Wallet and a Dagger. Lets just say we start the game off with 1 of each in your inventory. (easy to do)

I want to walk up to an NPC, have them say "Which item would you like to use" (simple) and give me a list of key items in my inventory to choose from (I think this is the select key item option, but not sure why i have to pick a variable). If I click on Wallet, I want it to do 'X', if I click on dagger, I want it to do 'Y'.

I have an understanding of conditional branching, but I can't get it to work. Can anyone help? What would the NPC event look like?
Well how would you know which item was picked? The variable of course! The variable can store the id of the item (you can check the database for the item id of the wallet, for instance). Then you simply make a conditional branch to compare the variable to the id that the wallet is supposed to be. Does that help?
Hm....I understand you in concept, but am struggling to make that happen via RPG Maker.

In the database, I changed maximum items up by 1, and added Empty Wallet. Its item 017 (is this the ID you're talking about?) I also marked it as a Key Item.

The NPC event has a simple show text "please select your wager"
Then it has "Select Key Item: (I labeled the first free variable Which Item Picked)

I then tried to do a conditional branch with Variable Which Item Picked, but I seem stuck there, as my options are to just say "if Which Item Picked is equal to .... and I can't say Equal to Wallet.

AKA, I'm still confused :*( I do appreciate your reply and any additional help you can give.
Well, if the id of the wallet is 017 (yes, that's what I'm talking about, it's the listing number of the item), then that is what you're conditional branch would check for. You're not going to check if the variable is equal to wallet, you're going to check if it's equal 017 (the ID of the wallet).
Pages: 1