I have the PLAYER warping commands all set up, and while it might be a bit.. I dunno what you would call it, it works fine, for now anyways.
mob/var
last_x
last_y
last_z
//-------------------------------------------------------
area/Battle_Coin
var/in_use = 0
var/last_used = ""
layer = 4
// icon = 'Combat Event.dmi'
//-------------------------------------------------------
turf/Battle_Event/Battle
density = 0
Entered(mob/PC/M)
M = usr
var/chance = rand(1,10)
switch(chance)
if(3||5||8)
M.Battle()
//-------------------------------------------------------
turf/Battle_Event/Border
density = 0
Entered(mob/PC/M)
M = usr
M.loc = locate(M.last_x,M.last_y,M.last_z)
for(var/area/Battle_Coin/BC in world)
if(BC.last_used == M.name)
BC.last_used = ""
BC.in_use = 0
//-------------------------------------------------------
mob/proc/Battle()
for(var/area/Battle_Coin/BC in world)
if(BC.in_use == 1)
return
else
src.last_x = src.x
src.last_y = src.y
src.last_z = src.z
src.loc = locate(BC.x,BC.y,BC.z)
Bascilly there is a invisble turf, that randomly decides combat, if you go into combat, it then checks for a empty battle field, by checking the battle coins in the world and seeing if any are avaible.
If they are, your last locations are saved on some vars and you are warped to the battle coin.
When you are done with the battle, you can touch the boundry line on the battle area, and youll be warped back to your last location.
then the game checks for your battle coin, and resets the vars to it, so another person could use it.
I tested this, and it works fine.
Now comes the harder part, how should I have monsters warped into the arena? I could have it, so that there are monster coins, with a serial number related to the battle coin.
Then when you are warped to the battle coin, the game checks for monster coins with the same serial number, and then warps monsters to those coins.
When you leave the arena, it checks for monsters with the same serial number and delets them, so players wouldnt encounter say like 20 monsters in one area.
Any thoughts, ideas, suggestions? thanks.
Exactly what you need.