Create buy system for my currency




My coins aka bottles can be picked up and are able to be saved. The only problem is that I dont know how to set up a system for buying things with the coins on a button clicked in the widget. Can anyone show me how to do it.