This is how i would like to set up the items in my game (below) each level has its own struct containing the information that is required for itself or any children.
The issue being that i want to put the “use” event into the master item. so if the item is a consumable it gets the information from the consumable child and alters the character appropriately.
I can’t seem to figure out what node i need in order to get the information from the child struct.
To maybe give a better idea of what i mean this is how i currently have things set up. The issue being that MasterItem currently has all of the structs inside of it. so there is only one level of child-parent. Im not sure but i think this is poor optimization.
In a nut shell, i just need to know how to get information from the child into the parent.
Appreciate any help. any questions feel free to ask.