ID:166753
 
I have been considering problems with things that could happen with swapmaps, For example a person logging out in an overpopulated monster area, What should I do should I delete the map when the log out and then load it again when they log in or send them to a town but this would generate problems with the tutorial but I could always load the tutorial if they are in it, What are your opinions on doing this?

(I am changing my current game to where it uses AI to gain experience and I want to use swapmaps for certain areas so that kill-stealing doesn't become a problem.)

Thanks in advance for your opinions.
turf
teleports
tutcave
Enter(mob/M)
if(ismob(M))
var/swapmap/I=SwapMaps_CreateFromTemplate("TutorialCave")
I.SetID("TutCave_[M.ckey]")
var/swapmap/SM=SwapMaps_Find("TutCave_[M.ckey]")
M.loc = locate(SM.x1+10,SM.y1+2,SM.z1)
tutcave2
Enter(mob/M)
if(ismob(M))
M.loc=locate(/turf/teleports/tutcave)
var/swapmap/SM=SwapMaps_Find("TutCave_[M.ckey]")
del(SM)


For some reason if you exit it a second time it freezes, I have no clue why.
In response to Lifehunter
I'm no coder but i could try to play around with it some <_<




Edit:*sigh* no good i am already lost v_v
In response to Lifehunter
i suggest putting it on design philosophy to
In response to Devin148
Design philosophy is for ideas or concepts not for programming help.