ID:178642
 
Ok I want to set predifined macros but I dont want the player to beable to use the verb except through the macro. Is this possible?
Just don't make it a verb, make it a proc. Say if you want the center key to run the Jump proc, do it like this:

<code>client.Center() mob.Jump() mob/proc/Jump() //do jump stuff</code>

Just don't expect any of the nifty input options you get with verbs.
In response to Foomer
Would it go in the dms file?
In response to BurningIce
Works just fine in a .dm file.
In response to Foomer
Its not working if you make it a letter do you still put the () after it?
In response to BurningIce
Never Mind I'll just make a verb.
You could make it a hidden verb with a ridiculously long and complex name that no one would ever guess. Hidden verbs are not visible in the verb panels and are not auto-completed when you hit the spacebar.
How do you make macros at all? I looked up the macro proc but I get errors. I even get errors if I paste it in from the help, and it is exactly the same.
In response to Loduwijk
Macros like this:

<code>macro a return "say a"</code>

...need to be placed in the .dms file, not .dm files. I just figured that out yesturday, too :o)

Replacing the default macros is a lot easier and more useful, though, since you can just override their procs (in the .dm file) like this:

<code>client.North() mob.say("Hello.")</code>