Eureka! Finally got it working.
I did a little rooting around, and it turns out the way you need to make this work is by having your keypad line send some word you won't use in normal gameplay, and then make a normal alias that matches that specific word, and sends the expanded command you wanted.
Here's simplified guide on how to do this:
1. Under World Properties -> Keypad, Assign the desired match word(Word you want your alias to catch and translate) to the numpad key you'll be using.
2. Under World Properties -> Aliases, create a new alias. In the editor for the new alias, click the '...' key on the top left, just under the 'Alias' input area where you'd normally put in what you type to activate your alias manually. This will open a small input window that will say "Edit alias 'match' text" on the top frame. In this window, put the exact same word you assigned to the keypad in step one. Now click the OK button to save the change. The alias name will show the word you just put in as the name of your alias. (Not sure if I did this a roundabout way, maybe you can just make that word the name of the alias the way you'd normally name an alias?)
3. In the body of the alias, put in the function you want to have happen when you press that key on your numpad. In my case, this was to call up a variable using @(variable name).
(Note: Remember, if you're using a command like 'kill @target', you need to have the 'Expand Variables' setting checked for it to translate the variable properly.)
Click 'OK' to save the changes to your new alias, and from now on, when you press that numpad key, your alias will intervene and send its contents instead of just sending a normal command to the mud, which lets you perform a wide variety of advanced functions.
I apologize for the lengthy posts, but I hope this thread can help other people.
|