I am having some troubles using the dictionary. I know how to search a dictionary in Python, but C2 seems to be quite different. I have gotten it to kind of work, but it keeps the previous value. how do I clear/reset the dictionary value?
Perhaps by using the dictionary action "delete key" or "clear" (remove all keys)?
That just removes all the keys, I tried doing that.
Does anyone know how to reset/set the current dictionary value?
Develop games in your browser. Powerful, performant & highly capable.
You "Add key", "Set key", or "Delete key" as actions. It's not clear what more you want. You get the data with a Get expression.
Event 51 is wrong: you don't need a For each and Has. 'Has' checks the whole dictionary, and is true of false.
blackhornet, that is what I thought! But it didn't seem like it was working. I will test it again later on the weekend.
What I want to do is find the right key and then load the game with that value. It works, but it returns the wrong value (the dictionary value I last used).