mob
icon = 'player.dmi'
turf
grass
icon = 'grass.dmi'
mob/verb/swapcolor()
switch(alert("what color do you want",,"red","blue"))
if("red")
I.SwapColor(rgb(255,255,255),rgb(255,0,0))
if("blue")
I.SwapColor(rgb(255,255,255),rgb(0,0,255))
var/icon/I
What am i doing wrong it compiles but i get runtime errors
try putting this above your switch statement:
I = icon('player.dmi')
then below the switch, put this: