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?
It's a Reference to the object you created, so you can access all of it's variables through that.
GUI1.icon_state = "SomethingElse"