ID:1838681
 
(See the best response by Lummox JR.)
Code:
 turf
Cave_Ground_and_Walls
icon = 'Walls Ground Mtn.dmi'
icon_state = ""
Walls Ground Mtn(1)
icon_state = "Walls Ground Mtn(1)"
Walls Ground Mtn(2)
icon_state = "Walls Ground Mtn(2)"


Problem description:

I keep getting this error:
Boxes and Interior Mrket.dm:3:error: Interior: expected end of statement
Boxes and Interior Mrket.dm:116:error: FMA: expected end of statement

from the code above. Is it the parenthesis aroudn '1' and '2'? If so, how do I remedy the problem?
Best response
Actually it's both the parentheses and the spaces. You can't have a space in part of a type path identifier (an underscore would work, or you could just forgo spacing), and parentheses are illegal chars there as well.
You formatted it correctly in this line:
turf/Cave_Ground_and_Walls // underscore = a space

So I'm not sure why you decided to use spaces afterwards.Also, just take off the parenthesis on the turf itself, it's fine on an a string variable(like the icon_state)

I.e
Walls Ground Mtn(1) // should/can be Walls_Ground_Mtn1
Sorry for the late response, my pager never told me people responded... I'll test it now.
Hmm, so i'm guessing this is gonna be related to your other post about trying to define icon states for a whole bunch of files you imported?
It worked! Thanks for the help guys. I thought the name of the icon_states HAD to match the name above it.
In response to Turboskill
Turboskill wrote:
Hmm, so i'm guessing this is gonna be related to your other post about trying to define icon states for a whole bunch of files you imported?

Yeahhhh heh.