ID:268680
 
I know I could figure this out if I would think on it more...
=/
<dm>
mob
verb
Build(O as null|anything in typesof(/obj,/mob,/area,/turf))
clickiconstate = O.icon_state
clickicon = O.icon
clickopacity = O.opacity
clickdensity = O.density
clickname = O.name



:$
I already have the click thingy somewhere else, but... it lables them as undefined variables.
I labled "O" as a type of thing earlier, but it still claims them to be undefined variables. :(
Thank you for the help.
~Ramen
Hell Ramen wrote:

>       Build(O as null|anything in typesof(/obj,/mob,/area,/turf))
> clickiconstate = O.icon_state
> clickicon = O.icon
> clickopacity = O.opacity
> clickdensity = O.density
> clickname = O.name

</DM>
I labled "O" as a type of thing earlier, but it still claims them to be undefined variables. :(

It doesnt matter if you have labeled 'O' as a type earlier in your project, because that variable has nothing to do with this snippet of coding. The O used in this has no reference to being any type at all, thus does not hold information about 'icon_state', 'icon', 'opacity', 'density', and 'name'.
To get 'O' to have these variables, then typecast it as a relevant type(/mob,/obj,/turf,/area) in the definition.