Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Jdawg
Newbie


Joined: 17 Jan 2002
Posts: 5
Location: Sweden

PostPosted: 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!
Reply with quote
Dravon
Beginner


Joined: 05 Jan 2002
Posts: 29
Location: USA

PostPosted: 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
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
Jdawg
Newbie


Joined: 17 Jan 2002
Posts: 5
Location: Sweden

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net