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.
|
In response to Scizzees
|
|
Tab it twice unless you want the mob to move whether it's dead or not.
|
In response to Kaiochao2536
|
|
ok igot the thing working but when the src respwans its Life stays at 0, anyway ican fix this?
|
In response to Darkarch
|
|
mob |
In response to Jman9901
|
|
how would i define MaxLife? *He asks noobishly*
EDIT: Nvm i figured it out ^^ |
In response to Darkarch
|
|
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 |