mob
var
commandkey[]
verb
test()
world<<"SUCCESS!"
k(k as text)
call(usr.commandkey[k])()
setverb()
usr.commandkey["x"]=/mob/verb/test
Problem description:
The above code works just fine. But that's not how I want it to work.
I want set verb to set the arguments as well.
The idea being -
I'm setting up a custom macro system; but since BYOND doesn't support it, I have found I need to set each key as itself in the .dmf file.
E.g. the macro for x is k "x", for the verb: k(k as text)
The end goal being players can click a button to set a new key bind, and whatever key they press next binds a command to THAT key.
e.g. binding SAY to space bar.
*Player clicks button for binding say
*Prompt asks player to press any key
*Whatever key is pressed will now be the SAY hotkey.
http://www.byond.com/members/ DreamMakers?command=view_post&post=35824