|
Jdawg Newbie
Joined: 17 Jan 2002 Posts: 5 Location: Sweden
|
Posted: Thu Jan 17, 2002 4:55 pm
Macros |
I have a slight problem I'd like some help with.
I'm wondering if I can create a button to toggle macros off/on, just like I can for triggers.
And also if I can put a bunch of macros in a separate class folder.
The macros I want to toggle are directional buttons. I use my number keyboard to move, ie button 4 for west, 6 for east, 2 south, 8 north etc.
Recently I've added a sneak command to those buttons, ie button s sneak south etc.
I'd like to be able to toggle it on and off so I can sneak/walk normally as I wish.
Thanks! |
|
|
|
Dravon Beginner
Joined: 05 Jan 2002 Posts: 29 Location: USA
|
Posted: Fri Jan 18, 2002 12:01 am |
when you make your macros what about useing the ctrl or shift key with the keypad? ctrl + 6 == sneak east?
Gary
Gary |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Fri Jan 18, 2002 1:24 am |
Or edit your macros.
#STAT {%if(@UseSneak,Sneaking,Walking)}
#KEY Key5 {UseSneak=%eval(!UseSneak)}
#KEY Key2 {#IF (@UseSneak) {sneak south} {south}}
Modify 4,6, and 8 like the example for 2. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Jan 18, 2002 6:26 am |
The numpad currently uses the macros in the System|Keypad and System|KeypadDiag classes. I'd recommend making a new class (KeypadSneak, maybe), copying the macros for the directions you use and editing them to add the sneak command. You can then use a macro, alias, button to turn sneaking on and off by disabling one class and enabling the other. Your choice whether to use classes and turn them on and off, or rewrite 6-10 macros every time you switch.
#AL sneakon {#T- {System|Keypad};#T- {System|KeypadDiag};#T+ KeypadSneak}
#AL sneakoff {#T- KeypadSneak;#T+ {System|Keypad};#T- {System|KeypadDiag}}
LightBulb
All scripts untested unless otherwise noted |
|
|
|
Jdawg Newbie
Joined: 17 Jan 2002 Posts: 5 Location: Sweden
|
Posted: Fri Jan 18, 2002 1:22 pm |
Thanks, I actually figured it out, and did somthing like Lightbulb suggested. It's great to see that people actually help out, thanks a bunch
|
|
|
|
|
|