turf/RPGMAKER/Water
icon='RPGMAKERTURFS/Beach.dmi'
icon_state="water"
var
DeepWater=0
Enter(mob/M)
if(ismob(M))
if(!src.DeepWater)
if(M.Diving)
M.Diving=0
M.layer=4
return 1
else return 1
Entered(mob/M)
if(ismob(M))
//M.underlays=null
if(src.DeepWater)
if(!M.Diving)
M.icon_state="swimming";world<<"[M.icon_state]"
M.energy-=rand(10,50)
if(src.icon_state=="Deep Water")
M.energy-=rand(100,250)
if(M.energy<=0)
M.layer=src.layer-1
M.icon_state=""
M.Diving=1
if(M.client)
M.client.screen+=new/obj/HUD/Air
if(!M.Diving)
M<<"You fall into the Water."
return
Exited(mob/M)
if(ismob(M))
if(M.icon_state=="swimming")
M.icon_state=""
else return 1
Problem description:The game tells me my icon_state changes, via the world<< but..it doesn't change in-game..even though it says it does.
</<>
If you still haven't found an error, try running this: