Key Items certain selecting

Status
Not open for further replies.

Shiwo

Villager
Member
Joined
Oct 29, 2016
Messages
7
Reaction score
1
First Language
English
Primarily Uses
Okay! So I've got a little dilemma here. I've got a tiny little side-quest kind of thing going where the protagonist has to go find an item, and take it back to the npc. Hand it in and get the reward.


Now I have that part setup perfectly fine. I'm happy with it and it does really well, except for one thing. When it comes to choosing the Key Item which I have specified it too. It lists EVERY key item I have in the game. And I can choose any of the items in order to give to the npc, which results in the quest being completed regardless of the item I've given to the npc.


I'm sorry if I'm not being as descriptive of the issue as I could. If that is the case, here are a few screenshots. These include the event I have used to code it, the Key items, and the result regardless of which item I have given to the npc.

Events.jpg

Key Items.png

Result.png
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
you misunderstood what the command "select key item" does.


Selecting the key item places the ID of the selected item into the variable given. It does not remove the item from inventory.


But since the ID of the item is now stored in the variable, you can use a conditional branch to check if the correct item was selected and process it only in that case.
 

Shiwo

Villager
Member
Joined
Oct 29, 2016
Messages
7
Reaction score
1
First Language
English
Primarily Uses
Thanks a huge bunch. After you told me to use the conditional branch. I did a little bit of research and implemented it, it works like an absolute charm! Thank you so much!
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,045
Members
137,569
Latest member
Shtelsky
Top