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.
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login