ID:261522
 
Ok, I'm trying to get more then one battle arena but it's not working ill put a picture of the map file and the code.

turf/randbattle
name="grass"
icon='turfs.dmi'
icon_state="grass"
Entered()
if(battle<4)
var/random=rand(1,20)
if(random==20)
if(battle==0)
usr.loc=locate(6,6,2)
if(battle==1)
usr.loc=locate(17,6,2)
if(battle==2)
usr.loc=locate(6,18,2)
if(battle==3)
usr.loc=locate(17,18,2)
var/randommonster=rand(1,2)
if(randommonster==1)
var/A=new/mob/monster/jester(locate(usr.x-1,usr.y,usr.z))
if(randommonster==2)
var/B=new/mob/monster/man(locate(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()
battle+=1


</4>