ID:139761
 
Code:
New()
..()
ai()

proc
ai()
for(var/mobs in oview())
if(!istype(mobs,/mob/zombie))
world << "...!"
ai()


Problem description:
The problem is that whenever I spawn, and go near the zombie it isn't outputting into the world that text string... Can someone please help me understand why?
well

When you create the world it makes that new mob. but as soon as that mob is created its going to run that message instantly (that is ofcourse if there is a mob in the vicinity)

Since you are joining the game at a later time and then going to the zombie hes basically a corpse that does nothing.

What you should be doing is running a proc that runs those other procs.

Look into some of the AI demos by the power uses they will help you in that area
Because the first time it executes ai(), it finds nothing, and therefore it never executes it again. What you should have is:

mob/proc/ai()
while(src)
for(var/mob/M in oview(src))
if(!istype(M,/Rob/Zombie))
world << "...!"
sleep(10)
In response to Garthor
You sir are a hero to me now. Many thanks.