|
Valech Newbie
Joined: 15 Oct 2007 Posts: 4
|
Posted: Mon Oct 15, 2007 2:02 pm
Movement Key change |
Hi,
I've been trying to read up and test, but to no luck as of yet. I would like to change the cardinal direction keys. Instead of just normally N, E, S, W etc. I would like to Sneak N, Sneak E, etc... And of course I would need to be able to change it back to normal. Any help is appreciated, thanks. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Mon Oct 15, 2007 3:29 pm |
make a variable to store special movement types
move=sneak
then make all your new macros with something like this
#IF (@move) {@move east} {east} |
|
_________________ Discord: Shalimarwildcat |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Mon Oct 15, 2007 3:34 pm |
The way I do this is by making a new set of macros for Shift+numpadkey that do sneak. I have a set for swimming, too. If you simply must create new movement key, click "Define a Macro Key" on the Actions menu (or press Ctrl+K), press the key you want to change, and then type "sneak whatever" in the script box when the settings editor opens. Save and repeat for your other directions.
This may or may not stop the mapper working (if you use it). If it does, it's easy to fix that too - just ask.
EDIT: Or do it Shalimar's far more flexible way. Wascally Wabbit. |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Mon Oct 15, 2007 3:56 pm |
Not to mention you can set up a button for it so you're not having to type move="" whenever you're wanting to go back to normal. And you can just set move=1 if you want to sneak. A toggle button would also help identify if you are sneaking or not (although I suspect moving one room would tell you. :P).
Charneus |
|
|
|
Valech Newbie
Joined: 15 Oct 2007 Posts: 4
|
Posted: Mon Oct 15, 2007 4:00 pm |
After speaking with another on the MUD we came up with this.
Made alias - SneakOn
#CLASS {System|Macros|Keypad}
#KEY KEY1 {sneak ~se}
#KEY KEY2 {sneak ~s}
#KEY KEY3 {sneak ~sw}
#KEY KEY4 {sneak ~w}
#KEY KEY6 {sneak ~e}
#KEY KEY7 {sneak ~nw}
#KEY KEY8 {sneak ~n}
#KEY KEY9 {sneak ~ne}
#CLASS 0
This has been frustrating to me for a while now, thanks all for the help ^^. |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Mon Oct 15, 2007 4:52 pm |
If that's the script of the alias, you might have problems turning it off again. It's actually overwriting the macros that normally handle movement, and they can't be restored except by running all those commands again, without the sneak part. Better would be something like this:
#CLASS SneakMacros
#KEY KEY1 {sneak ~se}
#KEY KEY2 {sneak ~s}
#KEY KEY3 {sneak ~sw}
#KEY KEY4 {sneak ~w}
#KEY KEY6 {sneak ~e}
#KEY KEY7 {sneak ~nw}
#KEY KEY8 {sneak ~n}
#KEY KEY9 {sneak ~ne}
#CLASS 0
#alias SneakOn {#t+ SneakMacros}
#alias SneakOff {#t- SneakMacros}
You don't actually need the escapes in front of the directions, either - they won't hurt, but they're not needed. |
|
|
|
|
|