ID:164843
 
I want to make it so when you click a HUD it activates a verb how would i do this?

P.S. how can i use mob variables in objects?
Read the DM guide. It will tell you how to do that.

Also look up Click().
Look up the call() proc too.
In response to LastTroubadour
Why? Its unneeded for this. Verbs can be called normally just like procs, especially in Click().
In response to Kaioken
Wrongo. Use Click()
In response to Revojake
*insert a random "reply to wrong post like talking to furniture" style sentence here*

I figure you're referring to Troubadour - HE referred to, with call(), to the OP's 'activate verbs' part, which I corrected him about seeing as it doesn't require call().
In response to Kaioken
i tried calling a verb through call() and regular but i am getting errors(for the calling it regularly it says invalid proc)

P.S. I've seen this done before but i dont know where but you can use a persons variable in an object like a HUD
nevermind
In response to Upinflames
What about
if(usr.var==1)
?
In response to Revojake
wait unsolved thought i solved it but how would i call it?
In response to Upinflames
all i need to know is how to get a verb to execute after a Click() for an obj
In response to Upinflames
You don't execute a verb using Click(). You do what the verb would do with Click().

Example: Set what an attack verb would do as Click() instead of a verb Attack().
In response to Pyro_dragons
mob/verb/MyVerb()
src<<"WAHOO!"
obj/HUD
var/CallVerb
Click()
call(CallVerb)()
MyVerb_HUD
CallVerb=/mob/verb/MyVerb

This should work. However, you may want to work something out with input() or something if you want to do a say verb.
In response to LastTroubadour
Thanks everyone for all the help got it working finally
In response to Pyro_dragons
Pyro_dragons wrote:
You don't execute a verb using Click(). You do what the verb would do with Click().

Example: Set what an attack verb would do as Click() instead of a verb Attack().

Pyro, he's telling you that he wants to execute the verb. So instead of telling him that he doesn't want to do that, tell him how.
mob/verb/Attack()
//Attack code hither

obj/HUD
attack
Click()
usr.Attack()
In response to LastTroubadour
mob
proc
thingyyouwnat()

obj
thingy
DblClick()
usr.thingyyouwnat()
Now read the DM guide.
In response to LastTroubadour
LastTroubadour wrote:

Pyro, he's telling you that he wants to execute the verb. So instead of telling him that he doesn't want to do that, tell him how.

Why bother having both a verb and a click-able HUD for it? Kinda defeats the purpose of an HUD shortcut.
In response to Pyro_dragons
Pyro_dragons wrote:
Why bother having both a verb and a click-able HUD for it? Kinda defeats the purpose of an HUD shortcut.

There are obviously reasons you could want that. For example, you could let the player toggle the HUD if he wishes, so he can actually see his whole screen (:P).
Also, again, thats HIS consideration. He asked for help with one thing, and you're telling him he doesn't need it with no basis.