ID:152836
 
Ok so I have been working on my own way to have a random, action based combat,where you meet monsters on the battle field like final fantasy, but you move around real time, ect.

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.
SwapMaps. http://developer.byond.com/hub/LummoxJR/SwapMaps

Exactly what you need.
In response to Jmurph
Nope, it wouldnt work for me, I got a bunch of errors when I tried to load maps.
In response to Shades
It would help to tell us the errors. I had errors when I was first trying to do it also.
In response to N1ghtW1ng
It was something about null, it dosent matter, I got it working how I want.
In response to Shades
Something like that happened to me also. I know it happened when I had the .txt file in a subfolder. Maybe you were doing something similar?