ID:149404
 
How do you make a proc that reads how much ammo the person has to make sure it isn't zero, and, if it's zero, the attack verb doesn't work?
All you need to do is check to see if you don't have enough ammo when you call the attack verb, for example:
mob/verb/attack()
if(ammo <= 0)
src << "You don't have enough ammo!"
return //ends the proc

Of course, you'll need an ammo var for this to work. And you'll need to decrease the ammo by one each time you attack, if you have enough ammo.
In response to WizDragon
POST THIS ON THE NEWBIE CENTRAL FORUM!!!!!!!!!!!

Thank you.
In response to Garthor
Don't get so excited, your posts are more annoying than them posting in the wrong forum.
In response to Nadrew
Thank you.