the error is:
Code\Turfs.dm:105:error: expected expression
it says its in this area O.o
turf
Beach_Cave
Dirt
icon = 'Dirt.dmi'
dirt1
icon_state = "1"
dirt2
icon_state = "2"
dirt3
icon_state = "3"
dirt4
icon_state = "4"
dirt5
icon_state = "5"
normal
icon_state = "6"
dirt7
icon_state = "7"
dirt8
icon_state = "8"
dirt9
icon_state = "9"
but it started when i added the attributes code which is
#define normal 1
#define fire 2
#define water 3
#define electric 4
#define grass 5
#define ice 6
#define fighting 7
#define poison 8
#define ground 9
#define flying 10
#define psychic 11
#define bug 12
#define rock 13
#define ghost 14
#define dragon 15
#define dark 16
#define steel 17
var/list/atr=list(\
list(1,1,1,1,1,1,2,1,1,1,1,1,1,0,1,1,1),
list(1,0.5,2,1,0.5,0.5,1,1,2,1,1,0.5,2,1,1,1,0.5),
list(1,0.5,0.5,2,2,0.5,1,1,1,1,1,1,1,1,1,1,0.5),
list(1,1,1,0.5,1,1,1,1,2,0.5,1,1,1,1,1,1,0.5),
list(1,2,0.5,0.5,0.5,2,1,2,0.5,2,1,2,1,1,1,1,1),
list(1,2,1,1,1,0.5,2,1,1,1,1,1,2,1,1,1,2),
list(1,1,1,1,1,1,1,1,1,2,2,0.5,0.5,1,1,0.5,1),
list(1,1,1,1,0.5,1,0.5,0.5,2,1,2,0.5,1,1,1,1,1),
list(1,1,2,0,2,2,1,0.5,1,1,1,1,0.5,1,1,1,1),
list(1,1,1,2,0.5,2,0.5,1,0,1,1,0.5,2,1,1,1,1),
list(1,1,1,1,1,1,0.5,1,1,1,0.5,2,1,2,1,2,1),
list(1,2,1,1,0.5,1,0.5,1,0.5,2,1,1,2,1,1,1,1),
list(0.5,0.5,2,1,2,1,2,0.5,2,0.5,1,1,1,1,1,1,2),
list(0,1,1,1,1,1,0,0.5,1,1,1,0.5,1,2,1,2,1),
list(1,0.5,0.5,0.5,0.5,2,1,1,1,1,1,1,1,1,2,1,1),
list(1,1,1,1,1,1,2,1,1,1,0,2,1,0.5,1,0.5,1),
list(0.5,2,1,1,0.5,0.5,2,0,2,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5)
)
proc
change_type(type)
if(type == "normal") return normal
if(type == "fire") return fire
if(type == "water") return water
if(type == "electric") return electric
if(type == "grass") return grass
if(type == "ice") return ice
if(type == "fighting") return fighting
if(type == "poison") return poison
if(type == "ground") return ground
if(type == "flying") return flying
if(type == "psychic") return psychic
if(type == "bug") return bug
if(type == "rock") return rock
if(type == "ghost") return ghost
if(type == "dragon") return dragon
if(type == "dark") return dark
if(type == "steel") return steel
if(type == "none") return normal
the attribute code alone and when i remove turf code works fine, but when i remove the attributes code the turf code works fine...Can anyone help me fix this?