mob/proc/Auracolor(Auraover)
var/Auracolor = input("what color?") as color
Auraover += Auracolor
usr.overlays += Auraover
mob/verb
change_color()
var/Auraover=usr.aura
usr.Auracolor(Auraover)
return
mob/var/list/aura=list(/obj/AURA1,/obj/AURA2,/obj/AURA3,/obj/AURA4,/obj/AURA5,/obj/AURA6,/obj/AURA7,/obj/AURA8,/obj/AURA9)
obj
AURA1
icon='aurasennin.dmi';icon_state="medio";layer=4500;pixel_y = 32
AURA2
layer=5;icon='aurasennin.dmi';icon_state="medioder";pixel_x = 32;pixel_y = 32;
AURA3
layer=4500;icon='aurasennin.dmi';icon_state="medioizk";pixel_x = -32;pixel_y = 32
AURA4
icon='aurasennin.dmi';icon_state="abajo";layer=4500
AURA5
layer=4500;icon='aurasennin.dmi';icon_state="abajoder";pixel_x = 32
AURA6
layer=4500;icon='aurasennin.dmi';icon_state="abajoizk";pixel_x = -32
AURA7
icon='aurasennin.dmi';icon_state="arriba";layer=4500;pixel_y = 64
AURA8
layer=4500;icon='aurasennin.dmi';icon_state="arribader";pixel_x = 32;pixel_y = 64
AURA9
layer=4500;icon='aurasennin.dmi';icon_state="arribaizk";pixel_x = -32;pixel_y = 64
Problem description:
Hello good night,I want to do is that when you change the color of the aura do all overlyas of aura list(),but only get the default color of the icon (orange in this case)
How I can do to change the color of the objects in the aura list()?
You're going to have to for() all the auras and apply Auracolor() to each since it looks like you keep them in separate files for I assume different poses.
You don't even need to keep a list of auras like that ,since that bloats the savefile I assume this character is attached to. Just keep it as a single image and change it's icon / apply the same color over.