I know the basic for mprog, but I'm having a little trouble with this mprog I'm trying to make. I'm trying to get my mprog to work in drow city. When a person enters the area, the guards are supposed to greet them if they are drow and attack if they aren't. Here is what I did sofar.
If $n race = drow
say Welcome to Drow City, $n.
else
yell Intruder! $n has enter the city!
kill $n
endif
I would a appreciate any help and I thank anyone in advance for your help with this.
|