How to have an event check for multiple different items?

Hi I needed help figuring out how to have an event check for multiple different items. In this case I have the character needing to have three different items, a sword, a rune, and 500gp. Is there a way to have an event check for these items and if you don't have any of them it would tell you what you're missing?
Getting help with this would be greatly appreciated! Thank you.
You can nest Conditional Branch commands inside each other, e.g.
Spoiler: event example
◆If:Party has Sword ◆Control Variables:#0007 Count = The number of Potion ◆If:Count ≥ 3 ◆If:Gold ≥ 500 ◆Text:None, Window, Bottom : :Trade 1 Sword, 3 Potions, and 500 gold for this Hat? ◆Show Choices:Yes, No (Window, Right, #1, #2) :When Yes ◆Text:None, Window, Bottom : :Here you go! ◆Change Weapons:Sword - 1 ◆Change Items:Potion - 3 ◆Change Gold:- 500 ◆Change Armors:Hat + 1 ◆ :When No ◆ :End ◆Exit Event Processing ◆ :End ◆ :End ◆ :End ◆Text:None, Window, Bottom : :This Hat costs 1 Sword, 3 Potions, and 500 gold.
I tried that, but when I got the items in a different order it said I was missing the wrong things.
Then you should post screenshots of your event so we can see what's wrong. What does "got the items in a different order" mean?
when I got the items in a different order it said I was missing the wrong things
the order of conditional branches should not affect the outcome - IF you did the conditional branches the correct way.
and as the post above says, we need to see what you did before we can tell you what you did wrong.
Blacksmith.jpg
Blacksmith 2.jpg
Blacksmith 3.jpg
Blacksmith 4.jpg
Blacksmith 5.jpg
Blacksmith 6.jpg
Blacksmith 7.jpg
Blacksmith 8.jpg
Blacksmith 9.jpg
When I come to the NPC with the sword and the gold he gives me this response.
Blacksmith 10.jpg
I don't understand why you're repeating the whole thing twice, with the ingredient checks in a different order. If the party has all three ingredients, they would have passed the first set of conditionals - it's impossible for the code you have in pictures 5-8 to ever get executed.

1 - Get rid of all the extraneous code.

2 - The easiest way to keep track of else statements is to code them separately. So:
If you have the sword
-- Leave this all blank at first
Else
-- Type in the failure messages and whatever here

If you have the rune
-- Leave blank
Else
-- Type in your stuff
etc.

Then just cut and paste one entire conditional inside of the other. The only way you can see that message is if you don't actually have the items you think you do, or there's an error in your event logic. I'm not going to try to count how many indents in that Else branch is to see if it's in the right place, but you're making life harder on yourself than it needs to be.

P.S. Is there a reason you're typing/pasting a <WordWrap> tag into every single message instead of just setting it as a default? Seems inefficient.
I don't understand why you're repeating the whole thing twice, with the ingredient checks in a different order. If the party has all three ingredients, they would have passed the first set of conditionals - it's impossible for the code you have in pictures 5-8 to ever get executed.

1 - Get rid of all the extraneous code.

2 - The easiest way to keep track of else statements is to code them separately. So:
If you have the sword
-- Leave this all blank at first
Else
-- Type in the failure messages and whatever here

If you have the rune
-- Leave blank
Else
-- Type in your stuff
etc.

Then just cut and paste one entire conditional inside of the other. The only way you can see that message is if you don't actually have the items you think you do, or there's an error in your event logic. I'm not going to try to count how many indents in that Else branch is to see if it's in the right place, but you're making life harder on yourself than it needs to be.

P.S. Is there a reason you're typing/pasting a <WordWrap> tag into every single message instead of just setting it as a default? Seems inefficient.
I didn't know you could set that as a default. Also for the "You're missing 'this item'" message does it have to all be the same or can the event actually tell the player what they are missing?
I didn't know you could set that as a default.
Look at whatever plugin you're using that gives you the escape code. I haven't seen one that didn't offer it as a plugin parameter.
Also for the "You're missing 'this item'" message does it have to all be the same or can the event actually tell the player what they are missing?
It can do whatever you want, but the more "intelligent" you try to make it, the more complicated it is and the greater the possibility of error on your part (which is what's happening now).

If I were making this via eventing, I'd do something like this:
Code:
If you have the sword
  If you have the rune
    If you have enough money
      Do the crafting stuff. You can do it the way you like, but I think you have way more conditionals and
      choices than you need. Why does the player need to choose different options between waiting to
      make the sword and not wanting it and other stuff? Just make the sword or not. :P At the end of
      successfully crafting, exit the event processing.
    end
  end
end

if you don't have the sword
  Message "You need a sword"
end
if you don't have the rune
  Message "You need the rune"
end
if you don't have the gold
  Message "You need 500 gold"
end
Look at whatever plugin you're using that gives you the escape code. I haven't seen one that didn't offer it as a plugin parameter.

It can do whatever you want, but the more "intelligent" you try to make it, the more complicated it is and the greater the possibility of error on your part (which is what's happening now).

If I were making this via eventing, I'd do something like this:
Code:
If you have the sword
  If you have the rune
    If you have enough money
      Do the crafting stuff. You can do it the way you like, but I think you have way more conditionals and
      choices than you need. Why does the player need to choose different options between waiting to
      make the sword and not wanting it and other stuff? Just make the sword or not. :P At the end of
      successfully crafting, exit the event processing.
    end
  end
end

if you don't have the sword
  Message "You need a sword"
end
if you don't have the rune
  Message "You need the rune"
end
if you don't have the gold
  Message "You need 500 gold"
end
I know how to check if the party doesn't have enough gold, but how would I do that for the weapon and the item?
If your question is "how do I check that condition X is not true", then that's easy.

Code:
IF (party has sword) THEN
  (leave this blank)
ELSE
  (actual code here)
END
If your question is "how do I check that condition X is not true", then that's easy.

Code:
IF (party has sword) THEN
  (leave this blank)
ELSE
  (actual code here)
END
Ah ok thank you. Some reason I was thinking it'd be different than that.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-have-an-event-check-for-multiple-different-items.145922/