ID:157259
Apr 13 2010, 11:34 am
|
|
The topic says it all, i want to know how to get verbs to be shown in a right click menu, depending on what you are right clicking on, thanks in advance XD
|
Apr 13 2010, 11:58 am
|
|
That is the default behavior.
|
In response to Garthor
|
|
Hmm, i wondered ablout weither it was, and when i complied, and ran the game, for testing, right clicking did not work for anything, even if i was on the tile, or off the tile, that i was right clicking, is there a certain way you have to set up the verbs, to trigger the default, or is there a way that you could accidentally null it, without meaning to, and if you need it, i can post snippets of code, (i will post a small example of how they are being written though, right now)
turf |
In response to Wolfnova
|
|
Oh, right. For areas and turfs, the default src setting is "set src = view(0)". The = suppresses a dialog window to select the target and suppresses the right-click verb list (again, because you can't select the target). Put "set src in view(0)" at the start of the verb to get the drop-down.
|
In response to Garthor
|
|
Don't forget that verbs that take other atoms as args will also appear on the right click menu.
E.g. mob/verb/Zap(mob/M as mob in view(usr)) Will cause right clicking on a mob to display the Zap verb in the list of possible verbs. |