ID:266614
 
ok say if you didn't want your monster to attack your town...

so you have
mob/proc/attack(mob/M as mob in oview(10)
if(istype(M,/mob/town)
spawn(10)
attack()
return


ok I know all that now the problem I'm having is....

if the monster is standing by the town how do you makie it ignore the town so it doesn't keep cycling through the attack proc and goes after other mobs around?

suggestions?
Look up the ! operator. That should be just what you need.
In response to WizDragon
nm for some reason my AI wasn't working but it wasn't because of this problem... thanks anyhow ;)