turf
Grass
Entered(mob/m)
if(m in m.allies)
if(prob(3) && ismob(m))
m.prevloc=m.loc
if(prob(80))
if(m.allies.len>0)
var/mob/x=m.allies[1]
x.loc=locate(3,3,2)
x.inbattle=1
if(m.allies.len>1)
var/mob/y=m.allies[2]
y.loc=locate(7,3,2)
y.inbattle=1
if(m.allies.len>2)
var/mob/z=m.allies[3]
z.loc=locate(11,3,2)
z.inbattle=1
Problem description:
I did the allies but what if i wanted a random set of enemies to appear and fight? How would i code that in?