"Here's my code for mob variables and the attack verb. How come I got these errors?
mob
icon = 'person.dmi' //make it so all mobs will be created with the person icon
verb
say(msg as text) //what the usr says is passed into "msg" as text
world << "[usr]: [msg]" //the world sees chatroom-like output
turf
grass //defines a "grass" prototype, which is a kind of turf...
icon = 'grass.dmi' //and has an icon named 'grass.dmi'. In single quotes!
world //we set one of our world's characteristics:
turf = /turf/grass //its default turf is the grass turf.
Heres a screenshot of the code:
http://s728.photobucket.com/albums/ww284/ deadlywario0/?action=view¤t=Error.jpg
Please help,
Deadlywario0
Sep 14 2009, 9:26 am
|
|
Your problem is the indention, only tab for like the grass turf, turf is not tabbed at all and grass is tabbed once, that's the kind of indention you want.
|
Basically, tab only when something is the child of something. Like example: verb
-tab- say(msg as text) -tab-tab-oview(5) << "[usr] says: [msg]" |