I have a bunch of different emotion icon states, their all just different faces for him, anyway i need to find out how to put these icons in the statpanel and have them change according to the character's reactions. All help is appreciated. Thnx in advance!
/\/Delita12345\/\
ID:176912
![]() Nov 28 2002, 8:27 pm
|
|
Oops, I don't think stat panels work with icons. Create a new object and assign I to it, then display that.
|
Garthor wrote:
mob I believe we've covered this ground before: stat() doesn't support the display of a raw /icon type. It only shows atoms. Lummox JR |
how would i do that? it won't let me put a New() proc in the Login(). That way it would make a new instance of the obj and move it directly to the user's contents.
|
mob
var/obj/Face New() var/obj/O = new() O.icon = icon Face = O Stat() usr.Face.icon_state = usr.Emotion stat(usr.Face) |
review this and tell me what's wrong.
mob servbot var/obj/emote New() var/obj/O =new() O.icon = 'servbot.dmi' emote = O var iscommanded = 0 M trans = 0 icon = 'servbot.dmi' icon_state = "servbot" Login() usr.loc = locate(2,2,1) usr << sound('Gesellschaft.mid',1) usr << "Welcome to Servbot Command!" ..() Stat() usr.emote.icon_state = usr.emotion statpanel("Servbot Status") stat(usr.face) I get this: Servbot Command.dm:25:error:usr.emote.icon_state:undefined var Servbot Command.dm:25:error:usr.emotion:undefined var Servbot Command.dm:27:error:usr.face:undefined var |
usr is of type /mob. I guess it wouldn't work in your Stat() proc, since you keep on using servbot. Take out the usr's in the Stat() proc.
|
that got rid of one error, but i still have these
Servbot Command.dm:25:error:usr.emote.icon_state:undefined var Servbot Command.dm:25:error:usr.emotion:undefined var |
another one down, one left.
Servbot Command.dm:25:error:emotion:undefined var here's my Stat() proc Stat() emote.icon_state = emotion statpanel("Servbot Status") stat(emote) |
Stat()
var/icon/I = new('Blah.dmi',"[usr.emotion]")
stat(I)