How To Use A Dictionary Behavior
-
I wanted to create this post because I cant find anywhere how to really use a dictionary. Im trying to create an inventory system and I actually know how to set this up with strictly using if behaviors. But upon reading what a dictionary does this seems the route I have to go. Maybe put a future “Create an inventory system” article. Here are my questions in order.
-
Where do you start? Is it best to create the Dictionary and all its values in the global layer?
-
How do you assign a dictionary value to a specific object?
-
How do you properly save and call out this dictionary value.
Upon reading the Dictionary information it constantly references a helmet to the head. Maybe if someone can create a mini project using dictionary to equip a helmet to a head. That would greatly help even more.
-