So I'm working on a sort of CYOA thing.
It unfolds in scenes (scene 1, 2, 3, 4, 5, etc), and each scene I need to check to see what items the player has, and print a message to a textbox depending on that.
I'm doing this with a dictionary object (dictStoryText) and using an array to store the items the player currently, which can change as the game proceeds (arrInventory).
This is what I need to do, roughly:
I can't post my capx, but what I've been trying to do is something like this:
My dictionary object looks like this:
This is the code I've been messing with:
This prints, but it doesn't print the right messages (it doesn't seem to be able to figure out what items I have).