ID:261525
 
turf/randbattle
name="grass"
icon='turfs.dmi'
icon_state="grass"
Entered(mob/A)
if(battle<4)
var/random=rand(1,20)
if(random==20)
if(battle==0)
A.Move(locate(6,6,2))
else if(battle==1)
A.Move(locate(17,6,2))
else if(battle==2)
A.Move(locate(6,18,2))
else if(battle==3)
A.Move(locate(17,18,2))
var/randommonster=rand(1,2)
if(randommonster==1)
var/atom/B=new/mob/monster/jester(locate(A.x-1,A.y,A.z))
if(randommonster==2)
var/atom/C=new/mob/monster/man(locate(A.x-1,A.y,A.z))
for(var/mob/monster/man/D in world)
D.dir=EAST
A.Lock(A)
A.dir = WEST
A.randbattle(A)
battle++

Hmm after the first person goes into battle its a-ok, but when the 2nd-4th person goes to battle it just adds a jester/man but dosn't goto the coords on the 2nd Z-level can anyone possibly help me on this.