Might be confusing but I’ll try my best.
I’m setting up the item structure for my game. I have certain boolean variables setup in the struct to state whether the item is equipable, craftable, consumable, etc.
Basically wondering if there is any way to automatically set variables in the struct to zero-based off of a boolean status from the same struct? Hoping there is a way to do this, so that I don’t have to go set every variable to 0 for certain things.
Example: If consumable is set to false, I want the food it provides or the hydration it provides (Both integer variables in the item struct) to automatically be set to 0.
Thanks for the help