Object Use - Destroy

Blitz3D Forums/Blitz3D Beginners Area/Object Use - Destroy

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I need a little help with logic please. Here is what I wish to do.

I have a potion bottle, it has 3 uses.
On left mouse click it applies 5 points to health.
It looses one of its uses.
So there would be a check to see if the three uses goes to 0 then the item would be destroyed. (Removed)

potion = 3
if left click -1
add 5 points to health
if total= < 0
then destroy.

I am pretty good with knowing what to use as far as functions and such, its putting it together Im having trouble with. Thank you!