HELP i can't find the error in this code. I am new and need help cause if i don't get this error out i cvan't edit my map help!!
mob
icon = 'person2.dmi' //make it so all mobs will be created with the person icon
var
HP = 30 //define a new variable called HP, with a value of 30
Login()
icon_state = gender //when a player logs in, get them the right icon state for
..() //the gender of their key. Then call the parent!
proc
DeathCheck() //check to see if an attack is deadly
if (HP <= 0) //if the defender's HP is low enough...
world << "[src] dies!" //give the death messaging
del(src)
verb
attack(M as mob in oview(1))
usr << "You attack [M]!"
oview() << "[usr] attacks [M]!"
var/damage = rand(1,10)
world << "[damage] damage!"
M:HP -= damage
M:DeathCheck()
say(msg as text)
world << "[usr]: [msg]"
turf
grass //define a "grass" prototype, which is a kind of turf...
icon = 'grass.dmi' //that has an icon named 'grass.dmi'. In single quotes!
world //set one of our world's characteristics:
turf/grass //its default turf is the grass turf.
ID:180097
Aug 25 2001, 2:32 pm
|
|
In response to Ebonshadow
|
|
i STILL have 1 error when i compile but thanks anyway
|
In response to RagnarofBurland
|
|
RagnarofBurland wrote:
i STILL have 1 error when i compile but thanks anyway might help if you said when and where the error is. Otherwise all we can do is guess. |
In response to Ebonshadow
|
|
Ebonshadow wrote:
RagnarofBurland wrote: When i compile this is the message i get> loading testworld.dme testworld.dm:32:turf/grass:bad var testworld.dmb- 1 error, 0 warnings |
In response to RagnarofBurland
|
|
RagnarofBurland wrote:
Ebonshadow wrote: well... I counted just to make sure, and thats the same line I told you how to fix. You might want to look back at what i said. you have to change that line to say turf = /turf/grass |
In response to Ebonshadow
|
|
Ebonshadow wrote:
RagnarofBurland wrote: THANK YOU I DID IT |
world //set one of our world's characteristics:
turf/grass //its default turf is the grass turf.
It should be :
world
turf = /turf/grass