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!
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!