ID:263068
 
Code:
turf
water
icon='turf.dmi'
density=1
a
icon_state="1"
density=0
b
icon_state="2"
c
icon_state="3"
d
icon_state="4"
e
icon_state="5"
f
icon_state="6"
g
icon_state="7"
h
icon_state="8"
i
icon_state="9"
j
icon_state="10"
k
icon_state="11"
l
icon_state="12"
m
icon_state="13"
n
icon_state="14"
o
icon_state="15"
p
icon_state="16"
q
icon_state="17"
r
icon_state="18"
s
icon_state="19"
t
icon_state="20"
u
icon_state="21"
v
icon_state="22"
w
icon_state="23"
x
icon_state="24"
y
icon_state="25"
z
icon_state="26"
zy
icon_state="27"
zx
icon_state="28"
zw
icon_state="29"
density=0
zv
icon_state="30"
density=0
zu
icon_state="31"
zt
icon_state="32"
Enter(var/mob/M)
if(!M.boat)
if(alert("Do you want to go sailing","Boat","Yes","No")=="Yes")
var/list/A=typesof(/turf/water/)
A.density=0


Problem description:loading RPG.dme
turfs.dm:76:error:A.density:undefined var
turfs.dm:75:A :warning: variable defined but not used

RPG.dmb - 1 error, 1 warning (double-click on an error to jump to it) i dont understand why this isnt working am i missing a very obvious bug or what?


Your trying to make the list density 0...

try

for(var/turf/A in world)
if(istype(A,/turf/water/))
A.density = 0



In place of

var/list/A=typesof(/turf/water/)
A.density=0
In response to A.T.H.K
ok that fixed that but it still wont let my person walk on water.