obj
HUDsay
icon = 'icons.dmi'
icon_state = "say"
layer = MOB_LAYER+10
screen_loc = "1,1"
Click()
usr.Say()
SUPER truncated form of my Say verb...
mob
verb
Say(t as text)
view() << "[usr] says [T]"
ID:147856
Oct 27 2003, 1:09 am (Edited on Oct 27 2003, 1:27 am)
|
|
I'm trying to make a HUD with say, Who, etc, but I can never seem to get it....
obj SUPER truncated form of my Say verb... mob |
In response to sapphiremagus
|
|
I know you have to maintain capitalization of variables, I just added a very basic say verb as an example, the say verb in my game is over 70 lines by itself. o.o Anyways, I found out what the problem is, I forgot I had a CLick() statement elsewhere in my coding, once I changed it to DblClick() for the HUD items, they all worked fine.
|
That aside, I notice a couple of other problems. One is that you have Say(t as text) and then have oview()<<"[usr] says [T]". You have to maintain the case of a variable. Also, I believe that if you directly call a verb, it works exactly like a proc. IE: if you use usr.Say(), you will need to use it as usr.say(t) and pass the text to the verb. That would require an input within your Click() definition.