ID:162753
 
i still dont understand the...start turf

What name should it have...how he hell do i do it???

locate (/turf/start) < how do i make a truf from that???

pls help me...

A begining gamemaker
the start turf is just a turf you're players will start on, so it's just an identifier that gets located when you start the game, the game finds the start turf then spawns the player there, I personally prefer to just move them to an xyz coord myself.

world/mob=/mob/loggingin/log //sets a mob to start as
mob/loggingin/log
Login() //sets login instructions for the start mob
loc=locate(x,y,z) //moves them to a loc when theyre created make sure you put number values for xyz like 1,1,1 or whatever. Look at the map editor and find the xyz you want them to start at and put that into locate(x,y,z) and huzzah they start where you want them to

//or easier still without having to set a login mob, in my program atm I have reasons to want to set one but you may not.

mob
Login()
loc=locate(x,y,z)

//make sure you indent correctly

In response to Kichimichi
x,y,z coordinates are inflexible and will end up breaking half the time if you add a new map file. locating tags or turfs is pretty much always superior.
In response to Garthor
For all my doors into and out of buildings and elevators I'd have to have a separate turf... that seems rather inefficient. If my maps not gonna change it seems like it would be ok with x,y,z. Can't you add an arguement that makes sure it uses the right map with multiple maps?

Mike-
In response to Kichimichi
No, you wouldn't have to. You'd just use the tag variable, and change the tags of your destinations on the map. Very simple.

And no, multiple map files get compiled into one map file with multiple z-levels. There's no surefire way to use x,y,z coordinates that isn't prone to breaking.
In response to Garthor
Oh sweet I was wondering what that did, thanks for the heads up.

Mike-