mob
proc
DeathCheck() //checks to see if an attack is deadly
if (Life <= 0) //if the defender's HP is low enough...
world << "[src] dies!" //do the death messaging
src.loc=locate(8,8,27)
Thats my code but for the bottom line it says that theres a missing exppression does any1 know what that means?
Andcan someone help me fix this code?
ID:163080
![]() Oct 15 2007, 10:44 am
|
|
![]() Oct 15 2007, 10:47 am
|
|
tab in src.loc=locate(8,8,27) once.
|
mob |
Noobishly indeed... Hahaha, anyways, it's very easy, which you figured out. Just to make sure,
1. Define a var (maxLife) 2. Make that var the max health... In other words... Do this: mob/var I hope that's what you did, if you didn't then I hope I helped you out. :D |