So basically I need some code that when the player touches an item, it figures out what stats that item affects and what values to give it. I have instance variables for each item representing the stat and it's value, but I need a more efficient way to apply those to the character. The roadmap for the code is
1. Get the name and value of the variables in the instance
2. Apply the values to the stats of the appropriate name to the character
I don't see a way to just find a variable based on name, it's all selected by a dropdown menu, am I missing something? If I could choose which variable to edit by name I can make the name a check for whatever stat I need to change something like
pseudo code
->in player, set variable "ItemsFamily.Variables[0].Name" to "ItemsFamily.Variables[0]"
Any way to do this?