proc
updateScoreOrange()
var/ORANGESCORE = TeamO
for(var/obj/event/Orangescore/S in world)
S.icon_state=num2text(ORANGESCORE)
Problem description: I have to make an icon state for every single point, and the event ends at 200 points, its very tedious to make 200 icon states... so if there's an easy way to do the same thing maybe a different code?
mob/proc
addname(var/text)
for(var/i=1,i<=length(text),i++)
var/obj/N=new/obj/name
N.icon_state="[copytext(text,i,i+1)]"
src.overlays+=N
obj/name
icon='text.dmi'
icon_state=""
layer=MOB_LAYER+100
I have this code from a demo that i forgot about (so credits to the creator for that) but is there a way to edit this to make the scores? This makes the name and i dont have to make an icon state for each name it just adds the letters to what you type in.