ID:263995
 
Code:

turf/var
iceland=/turf/iceland
yellow=rgb(255,255,0)

turf/iceland
icon = 'iceland.dmi'
verb
color()
iceland += yellow

Problem description:

when i compile this theres nothing wrong but when i press the verb it said


runtime error: type mismatch: /turf/iceland (/turf/iceland) += "#ffff00"
proc name: color (/turf/iceland/verb/color)
usr: Guest (/mob)
src: the iceland (36,25,1) (/turf/iceland)
call stack:
the iceland (36,25,1) (/turf/iceland): color()

You're trying to add color to a type path. This doesn't work, because it doesn't make sense. What are you trying to accomplish?
In response to Garthor
i'm trying to add color to the icon i just kind of fixed it but it still didn't add the color

var
iceland='iceland.dmi'
yellow=rgb(255,255,0)

mob
verb
Color()
iceland += yellow
icon+=iceland
src.loc=locate(x,y,z)
In response to Kage inc
You can't take guesses when coding.

You may want to look up the Blend proc
In response to Kage inc
Which icon are you talking about? Are you trying to change the .dmi file? Are you trying to change the color of one specific turf? Are you trying to change the color of EVERY turf? Pronouns don't work without context.