ID:140061
 
Code:


Problem description:

mob icon = 'person.dmi'
verb
say(msg as text)
world << "[usr]: [msg]"

turf
grass
icon = 'grass.dmi'

world
turf = /turf/grass

TestWorld.dm:2:error: : empty type name (indentation error?)

I can't seem to get this fixed. Can anyone help?

The program finds an error on the -tab- verb. Would this help?
What is a "mob icon"? I believe you want to edit the icon of mobs. Put it under.
Mob
-indent-icon
-indent-verb
In response to 167981728
"mob icon = 'person.dmi'" world work if that is all he was doing with it.

@Tylanofire here's a good place to get started: http://www.byond.com/developer/articles/start

In response to Leur
Leur wrote:
"mob icon = 'person.dmi'" world work if that is all he was doing with it.

No, it wouldn't. It would have to be mob/icon.
In response to Garthor
You sure?

Edit: The mob is the squiggly black line that loops around itself.
In response to Leur
It's very strange that that works, because it throws an error under some weird conditions... such as doing anything with mob in another file.

I suppose you could consider it valid syntax based on the shortcuts for if/else, but considering it doesn't even work except in rather specific circumstances, I wouldn't really suggest using it, ever.
In response to Garthor
Garthor wrote:
I wouldn't really suggest using it, ever.

I wouldn't, except in showing that it works. ;p
In response to Leur
Well this doesn't work on my script. It now says expected expression. I think this program called me predictable..
In response to 167981728
It works! Thanks a lot=]
This should fix it

mob
icon = 'person.dmi'

mob
verb
say(msg as text)
world << "[usr]: [msg]"

turf
grass
icon = 'grass.dmi'

world
turf = /turf/grass