mob
Login()
world << "[usr] has joined the world"//you see this when you login
mob
verb
wsay(msg as text)
world << "[usr] wsays: [msg]"//now we can talk
mob
verb
hit(attack players)
set src in view (1)
src .HurtMe(10)
turf
floor
icon = 'floor.dmi'
start
icon = 'start.dmi'
wall
icon = 'wall.dmi'
density = 1
mob
icon = 'player.dmi'//makes a player
Login()
loc = locate (/turf/start)//where they start duh
mob
var/life = 100
proc/HurtMe(D)
life = life - D
if (life < 0)
view() << "[src] dies"
loc = locate (/turf/start)
Crono Gears.dm:13:error: players: missing comma ',' or right-paren ')'
Crono Gears.dm:13:error: ): expected }
Crono Gears.dm:13:error: location of top-most unmatched {
ID:148148
Jun 23 2003, 1:57 pm
|
|
In response to Crispy
|
|
thanks a lot but when i put oview(1) in it says 16:oview :warning: statement has no effect
|
In response to Code
|
|
Sigh. When I take the time to write out longish posts, please take the time to read them properly.
Secondly, by setting "<font color=red>set src in </font>view(1)" you're also allowing players to hit themselves. If this isn't what you want, use oview(1) instead of view(1). |
Bzzzt. "attack players"? What's that supposed to mean? No wonder the compiler's getting confused. It looks like you meant that to be a comment, but comments are always after double slashes, like this:
//this is a comment
Or between /* and */, like this:
/* This is also a comment
But it can have multiple lines
Like
this */
Instead, you've put it where arguments are meant to go. It has absolutely no business being there, so get rid of it.
Secondly, by setting "set src in view(1)" you're also allowing players to hit themselves. If this isn't what you want, use oview(1) instead of view(1).
Finally, don't put a space before the period (.); it should be like this: src.HurtMe(10)