ID:179809
 
I have this code but i cant figure out where to put it and stuff. Here it is:


turf
Entered(mob/M as mob) // this is called whenever a mob enters the turf
M.loc = locate(your location) // locate them to the new location
..() // go on with the entered proc




Tazor07 wrote:
I have this code but i cant figure out where to put it and stuff.

Well I take it you learned HTML as you first programming languege. But anyways in DM it doesn't matter where you put things unless they're uhhhh... in the same block of code. So just stick it any where. Top, Bottom, Middle doesn't matter. But indentation does.
In response to BurningIce
FYI:

html isn't a programming launguage.
In response to Nadrew
Nadrew wrote:
FYI:

html isn't a programming launguage.

Yeah HTML is a document format just like RTF or DOC files, but there are embedded scripting languages which would be programming languages because they actually do something other than display a static document.
In response to Theodis

Yeah HTML is a document format just like RTF or DOC files, but there are embedded scripting languages which would be programming languages because they actually do something other than display a static document.

Thats what I call a programing languege
if i put the code anywhere i teleport every tile
Tazor07 wrote:
I have this code but i cant figure out where to put it and stuff. Here it is:


turf
Entered(mob/M as mob) // this is called whenever a mob enters the turf
M.loc = locate(your location) // locate them to the new location
..() // go on with the entered proc



you dont put that inside anything else. If you want only specific turfs to do that, then simply put the Entered() under that turf...


turf
Teleport
Entered() etc etc

Alathon