Well, I'm wondering how I should do this, letting mobs pop out of the grasses when you walk over it. And after a while when they're out of ur sight, it says, '[mob] has ran away.' or something like that. And the mob needs to attack your pet that you've out. I've tried it with this:
var/Spawnz2 = list()
var/mob/M = AZ
var/i = rand(1,5)
var/X = pick(src.Spawnz2)
var/mob/m = new X
for(var/mob/Pokemon/P in M.pokemonlist)
LV = rand(5,6)
m.wild = 1
m.loc = src
for(var/mob/Ms in world)
M << "<font color=green><font size=2>A wild [m] appeared!"
Spawnz2 = list(/mob/Wild_Pokemon/Bidoof,/mob/Wild_Pokemon/Pidgey)
But it just freezes up my window, making it crash.
So any suggestions, help, will be appreciated.