ID:273177
 
I was wondering, isn't there a way to have invisible objects call upon so with your verb you can just add overlays to that obj as you walk around, forming a complete icon with you as the center, instead of using overlays +=?I need some serious help because I can't utilize overlays += without it flicking along with me, and if I delete it from the list but still allow the overlay to be seen, then I can't access it.
Are you sure there's just not a missing icon_state in your icon file, or a icon_state mix-up of some sort? overlays += 'Whatever.dmi' should work absolutely fine.
In response to Legendary Prince 12
I didn't understand that.
Gr1m d4 r34p3r wrote:
I need some serious help because I can't utilize overlays += without it flicking along with me

If you do not want the overlay to flick an icon state when you call flick(), then you need to specify the icon_state of whatever you add to overlays. If its icon_state is "" or null or whatever, it will always match that of the base icon. If the icon_state is given a value, then it will always have that value. IE:

mob/verb/add_overlay()
var/obj/O = new()
O.icon = 'overlay.dmi'
//this overlay will always match our icon_state:
overlays += O

O.icon_state = "overlay"
//this overlay will always have the "overlay" icon_state:
overlays += O

//oh, and note that the object itself isn't added to overlays, just a copy of its visual data, so changing O's icon_state after we add it to overlays has no effect on the overlay already there


and if I delete it from the list but still allow the overlay to be seen, then I can't access it.

This does not make any sense.
In response to Garthor
Garthor wrote:
If you do not want the overlay to flick an icon state when you call flick(), then you need to specify the icon_state of whatever you add to overlays. If its icon_state is "" or null or whatever, it will always match that of the base icon. If the icon_state is given a value, then it will always have that value. IE:

mob/verb/add_overlay()
> var/obj/O = new()
> O.icon = 'overlay.dmi'
> //this overlay will always match our icon_state:
> overlays += O
>
> O.icon_state = "overlay"
> //this overlay will always have the "overlay" icon_state:
> overlays += O
>
> //oh, and note that the object itself isn't added to overlays, just a copy of its visual data, so changing O's icon_state after we add it to overlays has no effect on the overlay already there

I don't supply the icon the player multi tiles, the players does. The player have the power to choose what piece he must piece together.
and if I delete it from the list but still allow the overlay to be seen, then I can't access it.

This does not make any sense.

I wish to still be able to remove it after they log out.
I really haven't receive any helpful comments and it's been 5 days. Help please?
Ugh, that first post is quite a mess.
Anyway, looks like you'll want to take a look here: hub://Shadowdarke.BigAtom.