ID:167721
 
How do you make a code so when you touch a city icon, you go into that city?
You overwrite turf/Entered() for the turf path type of the city, and tell any players that enter it to go to another place.

turf/cityturf
icon = 'cityicon.dmi'
Entered(mob/M)
if(ismob(M) && M.client) // only let players through
M.loc = locate(1,1,1) // change this location to where you want to teleport them to


~~> Unknown Person
In response to Unknown Person
what i meant was how do you get the person on another map?
In response to FireBallHatePeace
He also said that. Read closely.
M.loc=locate(x,y,z)//Change their cordinates
In response to FireBallHatePeace
FireBallHatePeace wrote:
what i meant was how do you get the person on another map

If you are talking about warping to another map file, then the z levels for your maps will go on top of each other. They are added on in alphabetical order. So if you have two maps, a.dmp, and b.dmp, b would be located on the second z level. (assuming both maps have one z level in them)

~~> Unknown Person
In response to Mysame
Now how do you make it so your player falls down when he jumps?
In response to FireBallHatePeace
Hint:
usr.y--

Hint #2: Use a for loop

Hint #3: Disregard the last two hints and think for yourself and density.

Hint #4: How are is the fall and is it to their death or what?

Hint #5: Start getting used to the idea of using what you already know and apply them to what you want because sometimes people will not help you (wheter you made them angry, they don't want to be bothered, etc)

- GhostAnime
In response to FireBallHatePeace
http://developer.byond.com/hub/ZeroCrash/Gravity
use the search box more often ^_^; (that was right on top)
In response to GhostAnime
GhostAnime wrote:
Hint:
usr.y--
Hint #4: How are is the fall and is it to their death or what?

Hint #1:????
Hint #4: just fall. no damage, no deaths