SO I was wondering, because I'm trying to make AI for while the zombie is still alive, what exactly does that error mean because I want to get this fixed.
The blue "proc" and "verb" keywords are used for declaring new procs and verbs. You can't declare a new proc in the middle of another one.
You however can call an existing proc by writing its name with parentheses in the end.
Note that if you have a simple breaking condition, you shouldn't set up an infinite loop and use break. Use the condition part of the loop constructs (for()'s 2nd arg and while()'s only arg).
Thanks, I appreciate that, but what I'm trying to do is make it so that the NPC acts while it still alives as if it were a zombie, so how can I do that?
proc/act() spawn() //don't hold up the caller (New()) while(src.health > 0) //if the zombie is deleted once dead, then you don't need a condition here viewers(src) << "[src] is a zombie" sleep(10) //wait a second
//if the loop ends, then it means zombine's dead.
If you still don't understand why this code would compile and yours didn't, then you have to read the guide.
You however can call an existing proc by writing its name with parentheses in the end.
Note that if you have a simple breaking condition, you shouldn't set up an infinite loop and use break. Use the condition part of the loop constructs (for()'s 2nd arg and while()'s only arg).