Hey everyone,
In my game, the player is going on a little bit of a treasure hunt, collecting a total of 100 items (10 identical red pieces, 10 identical yellow pieces, 10 identical blue pieces, etc.). After collecting all 100 items (10 sets of 10 different items), I want an NPC to say something different than the regular dialogue. I figured a Conditional would do the trick (something that translated to: "If player has all these 100 items, say X; Else, say the normal thing"), but the Conditional seems to only check one item at a time, and I don't really want to nest 100 Conditionals in a row (plus, I don't know if nesting 10 identical "check for a red piece" Conditionals would actually check for 10 *total* red pieces - which is what I want - or if merely having 1 red piece would trick/confirm all 10 "red" Conditionals simultaneously, which defeats the purpose of gathering multiples of each item).
Any ideas on how I could efficiently set up a check for all 100 items, especially since they aren't all unique? Thanks!
In my game, the player is going on a little bit of a treasure hunt, collecting a total of 100 items (10 identical red pieces, 10 identical yellow pieces, 10 identical blue pieces, etc.). After collecting all 100 items (10 sets of 10 different items), I want an NPC to say something different than the regular dialogue. I figured a Conditional would do the trick (something that translated to: "If player has all these 100 items, say X; Else, say the normal thing"), but the Conditional seems to only check one item at a time, and I don't really want to nest 100 Conditionals in a row (plus, I don't know if nesting 10 identical "check for a red piece" Conditionals would actually check for 10 *total* red pieces - which is what I want - or if merely having 1 red piece would trick/confirm all 10 "red" Conditionals simultaneously, which defeats the purpose of gathering multiples of each item).
Any ideas on how I could efficiently set up a check for all 100 items, especially since they aren't all unique? Thanks!