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 {
ID:149932
Jan 25 2002, 4:38 am
|
|
Illyena wrote:
turf/pit 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 By the way, you weren't at one time connected to Spirit of the Moon, were you? |
usr.HP -= damage
usr.DeathCheck()