ID:261521
 
turf/randbattle
name="grass"
icon='turfs.dmi'
icon_state="grass"
Entered()
if(battle==0)
var/random=rand(1,20)
if(random==20)
usr.loc=locate(6,6,2)
var/randommonster=rand(1,2)
if(randommonster==1)
var/A=new/mob/monster/jester(usr.x-1,usr.y,usr.z)
if(randommonster==2)
var/B=new/mob/monster/man(usr.x-1,usr.y,usr.z)
for(var/mob/monster/man/C in usr.z)
C.dir=EAST
usr.Lock(usr)
usr.dir=WEST
usr.randbattle()


Thats my code but when random=20 a new monster dosn't appear does anyone know why?