it asked me to make a map biut the dream maker said i had something wrong with my code i am not very far so ill post the whole code cause i have no clue what the problem is
mob
icon = 'person.dmi'
var
hp = 10
str = 5
def = 2
turf
grass
icon = 'person.dmi'
icon_state = "grass"
turf
water
icon = 'person.dmi'
icon_state = "water"
density = 1
world
name = "My First Game"
turf = /turf/grass
ID:139070
![]() Jul 16 2011, 10:17 am
|
|
alright um i posted my whole short code the first time and i dont know what dm tags are but ill try
dm mob icon = 'person.dmi' var hp = 10 str = 5 def = 2 turf grass icon = 'person.dmi' icon_state = "grass" turf water icon = 'person.dmi' icon_state = "water" density = 1 world name = "My First Game" turf = /turf/grass dm |
You use the dm tags like this, <.dm>Code<./dm>, without the dot in the tags.
I will go ahead and use the dm tags on your code. mob Could you also post the code error that the compiler gives? ~Ndangerman |
Write <dm> at the start of the code snippet you're posting, and </dm> at the end. Looks like this when you've done it right:
some_code You still haven't posted the error you're getting. What is the compiler saying when you attempt to compile the code? It wouldn't, by any chance, be an 'inconsistent indentation' error? If it is inconsistent indentation, that means that that spacing you're using between blocks (like "turf" and "water" and "icon = 'person.dmi'") isn't consistent - you might have three spaces between "turf" and "water", and five between "water" and "icon = whatever". If that's the error, you'll need to fix your indentation by going through, unindenting completely, and then using the 'tab' key to indent as far as it should be. The Options->Show Tabs toggle might help you here. |
due to compilation errors the object tree cannot be trusted for map generation. these errors must be corrected before editing the map.
this is another error altogeather unable to read map file.dmm side note:the guy said to use map file dmp but i dont have tha option only dmm |
Also, generally when you have a coding problem you should also post the error given by the compiler so we can have an idea of what's wrong. Thanks!