I've done everything it has said. Now there is an error.. I can't see the problem, My verb parent is the problem.:
Errors:
loading Test World.dme
Test World.dm:11:error:attack :undefined proc
Test World.dm:10:error:verb :expected proc definition
Test World.dmb - 2 errors, 0 warnings (double-click on an error to jump to it)
My project:
//This is a test world created by Mohan on Saturday, Febuary 09, 2008.
mob
icon = 'person.dmi' // make it so all mobs will be created with the person icon
var
HP = 30 // declares a new variable called HP, with a value of 30
Login()
icon_state = gender //When a player logs in, make their Icon's state
..() //the gender of their key. Then call the parent!
verb
attack(mob/M as mob in oview(1)) //attack a mob within 1 tile of you
usr << "you attack [M]!" // Send this message ot the user
oview() << "[usr] attacks [M]!" // Send this message to everyone else
var/damage = rand(1,10) //assign a random # to a new variable
world << "[damage] damage!" //tell the damage to the world
M.HP -= damage //take away damage from M
turf
grass
// defeines a "grass" prototype, wich is kind of turf.
icon = 'grass.dmi' //and has an icon named 'grass.dmi'. In sigle quotes!
world //we set one of our world's characteristics:
turf = /turf/grass // its default turf is the grass turf.
ID:162231
Feb 9 2008, 10:30 am
|
|
//This is DM code shown within the <dm> tag.
Now for your problem. You need to tab everything under "verb". For multi-line tabbing, highlight the lines and press Tab. For backwards tabbing, Shift+Tab.