ID:319131
 
(See the best response by Flame Sage.)
ok for example i have
obj
gui1
icon = 'num.dmi'
icon_state = "1"
mob
icon = 'player.dmi'
icon_state = "player"
var
GUI1 = new /obj/gui1
Login()
usr.Move(locate(1,1,1))
gui()
proc
gui()
usr.client.screen += usr.GUI1

but in my proc i want to change its icon_state
how would i do that?
Best response
You can change it through the GUI1 variable.
It's a Reference to the object you created, so you can access all of it's variables through that.

GUI1.icon_state = "SomethingElse"