Calling the say verb from a clickable HUD item. in Developer Help
|
|
I'm trying to make a HUD with say, Who, etc, but I can never seem to get it....
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]"
|
|
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.