ID:158487
 
I was wondering.. How would I code a battle arena where it's on screen and you and the person you're battling walk in and one of you clicks "Challenge" or something, and when they accept it starts..

Like, I just want to know how to make it check if someone else is on the other side of the arena.
You could use an area, when entered that person is added to a list.
var/list
ArenaList[]

area/Arena
Enter()
if(istype(usr,/Mob)) ArenaList+=usr

for(var/mob/X in ArenaList)
//challenge
In response to Saucepan Man
Entered(), not Enter(), and you need to be using the argument:

area
Entered(var/mob/M)
if(ismob(M))
whatever += M