How to capture an integer and add that to currancy!

Hey there,

So Im having issues saving currancy. My distance traveled is calculated by a 0.1 delay function. as to constnatly calculate the distance.

Ive clamped distance traveled to get the highest number but the problem is its ticking. So when I add that value it adds every tick.

Eg. 11 12 13. add 13 to currancy.
but it does 11 12 13. add 36 to currancy.

So how do I seperate the ticking function consantly tapping 13 13 13 13 13 and adding all of them.

To just capture the final number 13. and add it one time?

Hopefully this makes sense. I feel im so close but its been a week or so now and I just cant figure it out.

ps. Ive tried quite a bit, I just wanted to lay the image out in an easier to understand cleaner look for people reading it. so got rid of my web of destruction.

Ok I fixed the inital issue with help. and Now have a 1 time screenshot of the value.

But I still cant work out how to add or store variables without overriding them with the next one.

Ok ive fixed and solved it. essentially you need 2 values. 1 to add as essentially a pocket. and one to act like the hand feeding the pocket. This has to be done prior and after the feed.

So I essentially check the pocket. Ok 10 gold. Feed the pocket another 10 gold. and check the pocket again to see 20 gold. then save the value