ID:178017
 
mob/var/maxhealth = 100
mob/var/health = 50

ok say the herb heals 50. so they use the herb and it heals 50.. say they used another and it boosts like at 150/100.Thats not right, how would i make it when you use a herb it boots the usr's health up by 20 and it never goes over the user's maxhealth.. and if they use it at usr.health = usr.maxhealth it says "You can't use that now,"
mob
var
health = 100
maxhealth = 100

verb
heal()
if(usr.health != usr.maxhealth)
usr << "You are healed!"
usr.health += 20
usr.checkhp()
else
usr << "You don't need to use that!"
checkhp()
if(src.health >= src.maxhealth)
src.health = src.maxhealth


That's an example, adapt it to your current system.