i have gold, it gets put in the treasure room. it tells me how much gold is in a pile i can pick up the gold, and drop it, it maintains its value. and gold stacks when overlapping.
but, i want a total owned gold figure.
i need to check each goldpile.goldinside that is overlapping a treasureroom; and add it up.
any ideas on how i can check for total gold owned?
i thought about for each goldpile. set GOLDinDungeon to goldpile.goldinside+GoldinDungeon
but, will that only work once? do i need to make a function? and call it every time gold is added to a treasure room?
any thoughts, or easier ideas are welcomed. thank you all