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?
ID:140061
May 23 2010, 2:04 pm (Edited on May 23 2010, 2:20 pm)
|
|
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
|
|
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=]
|
Mob
-indent-icon
-indent-verb