ID:149932
 
turf/pit
icon = 'pit.dmi'
Entered(O)
usr << "OUCH. You fell in a pit!"
var/damage = 10
world << "[usr] has fallen into a pit!" [usr].HP -= damage [usr].DeathCheck()

error(s):

turf.dm:10:error: [: expected }
turf.dm:7:error: location of top-most unmatched {
Try not using the brackets outside of quotes. You probably want something like:

usr.HP -= damage
usr.DeathCheck()
Illyena wrote:
turf/pit
icon = 'pit.dmi'
Entered(O)
usr << "OUCH. You fell in a pit!"
var/damage = 10
world << "[usr] has fallen into a pit!" [usr].HP -= damage [usr].DeathCheck()

error(s):

turf.dm:10:error: [: expected }
turf.dm:7:error: location of top-most unmatched {

There seems to be an indent problem here, as well as using the brackets to mean a variable outside of quotation marks. Lastly, it's a little dangerous to use "usr" here. Yes, I know the reference shows this, and you can if you want to. The final code should be more like this:
turf/pit
icon = 'pit.dmi'
Entered(mob/M)
M << "OUCH. You fell in a pit!"
var/damage = 10
world << "[M] has fallen into a pit!"
M.HP -= damage
M.DeathCheck()


By the way, you weren't at one time connected to Spirit of the Moon, were you?