I know I had a topic before this about certain events, but since it has become old and the title didn't fit the current help needed, I have created a new one. Also, sorry for all the topics about events and stuff; I am making something that needs quite a bit of complicated events. But it's top secret so you-no-see.
What I need help with:
I have a brick that, when you click it, sells an item to you for a certain amount of points. I know how to subtract points, make sure you have enough points to buy the item, and add the item, but I want the brick that sells the item to know if you have bought it or not. If this is possible, if you have bought the item, it will just give you it without charging you points. If you have not bought the item yet, then it checks if you have enough points, subtracts the points from you if you do, and gives you the item.
If you could please reply with the events (either a picture of them, typed (accurately!) in the reply box, or in some other way) included, it would be very helpful.