I made a quest and you have to give the NPC exactly 1 sword,but you can give the NPc nothing and can still get the rewards.
How do i fix this? Also i wanted to provide a video but wasnt able to.
Also i want to say I use RMMV but made a mistake:[
You need a conditional branch after "did you find the sword?" Inside the "yes" choice: If (player has item Sword) remove the sword and then put the success messages. You'll also want to add an "else" branch to that conditional for when the player comes back without it, so the NPC can say something like, "okay...so where is it?"
additionally, you misunderstood how select item works.
the variable given is filled with the ID of the item selected.
but you never checked which item the player selected - that would have to be something like
"if item selected = 15" (if the sword has the ID 15) or so.
Just a tip so that you don't get into that again:
NEVER name the variable used in select item for the item you want the player to select.
Always give it a name like "item selected" so that you remember to check what the player selected.
no, it is most likely because your "villager's sword" does not have the ID =1
The default sword has the ID 1, which ID has your item?
Because that is what you have to check for in the selected item
EDIT:
please rename the variable used in select key item. As I explained above that variable should be named "selected item" and NOT "villagers sword" if you want to understand what the command does.