... i want the game to ask you a question based off of a dictionary (The key is the answer and the value is the statement or question). How can I get it to pick a random key in a dictionary to make this work...?
..
Try this input .. a variable and use..Choose(1,2,3,4)
and then you have several condition such as IF variable value at say 3 then use the action to pull that dictionary value.
I prefer to code a random variable number generator and then putting a condition for each value.
and..if you have 1000 question...you'll have 1000 conditions....
— you want to use Dictionary ..you need to write keys and values differently...
keys should look like :"1Question";"2Question"...."1000Question"...
then if you have variable"Rnd"=5or27or333 ..you can get Rnd&"Question" key
Second...you need to put your Question&Answer in Value..Use Separator between them...
(i use # in example)
then use tokenat to pull out Question&Answer...
..and finally..if you don't want to repeat questions..use Array for random values...
RndDictionary.capx