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
eironia
Beginner


Joined: 24 Jul 2006
Posts: 11

PostPosted: Fri Aug 25, 2006 6:25 am   

Keypad Macros - CTRL and Shift
 
Hallo,

I'm wondering if I'm trying to do something that just isn't possible in Zmud or if I'm going about it the completely wrong way.

The mud I play has groups arranged in ranks of 3 by 3, which was perfect for using the keypad to set up a series of healing macros. The problem is trying to give flexibility within those healing macros - when you simply press the number, it heals the person in that position. When you press ALT+number it casts a cure spell.

What I'm trying to do is add in CTRL+keypadnumber and/or Shift+keypadnumber - I can make Shift work with letters and the normal numbers, but not with the keypad, and I can't make CTRL work at all; I have tentatively clicked the CTRL/ALT option in the preferences and twiddled, but I admit ignorance of its intent.

The ALT+keypad is working beautifully, and I'm using the same pattern, so it's not my native newb knack for scripting errors there.

Any advice?
Reply with quote
Dumas
Enchanter


Joined: 11 Feb 2003
Posts: 511
Location: USA

PostPosted: Fri Aug 25, 2006 12:33 pm   
 
Can you create the macro and it doesn't work from there? Or are you having trouble with creating the macro?

Also, do you have NumLock on or off?

CTRL-NumPadKey has always worked for me. I use the regular numbers for movement and CTRL with them for items I want quick access to.
Reply with quote
eironia
Beginner


Joined: 24 Jul 2006
Posts: 11

PostPosted: Fri Aug 25, 2006 2:59 pm   
 
Quote:
Can you create the macro and it doesn't work from there?


I can create the macros - within the class, it's a series of:
Quote:
#KEY KEY7 {ca heal 11}
etc.
#KEY ALT-KEY7 {ca 'cure light' 11}
etc. and have tried:
#KEY CTRL-KEY7 {ca 'cure crit' 11}
and
#KEY SHIFT-KEY7 {ca 'cure disease' 11}
ad nauseum.


[edit] All the CTRL ones did was make the window flicker. I just now retested it to be certain I was explaining the right problem, and now it works fine. I'd swear it's looking innocently at me.

I have NumLock on; the regular and ALT macros work without a hitch.

Shift-KEY7 still does nothing, even though Shift-7 will produce the expected results - it's just impractical if it's not the keypad.
Reply with quote
Qiz
Novice


Joined: 14 Aug 2006
Posts: 34
Location: Sweden

PostPosted: Sat Aug 26, 2006 3:13 am   
 
Are you certain the SHIFT-KEY7 does not exist in more than one place? If it does, one will be hiding the other(s).
Reply with quote
eironia
Beginner


Joined: 24 Jul 2006
Posts: 11

PostPosted: Sat Aug 26, 2006 3:42 am   
 
Quote:

Are you certain the SHIFT-KEY7 does not exist in more than one place? If it does, one will be hiding the other(s).


Positive. It never even occurred to me to try a SHIFT-anything macro until I had the epiphany for this heal class. Then I began to monkey with other letters and numbers to see if it was a keypad-specific issue, or just that SHIFT-something wouldn't work.
Reply with quote
Qiz
Novice


Joined: 14 Aug 2006
Posts: 34
Location: Sweden

PostPosted: Sat Aug 26, 2006 11:22 am   
 
Something is obviously wrong somewhere, cause that macro should work. Either there's something wrong with the macro (though I don't see what) or there's something wrong somewhere else in the class script which screws up parsing of that macro.

So, check your class script to see if there are any warnings for it. If there are, correct them. If there aren't, try just removing the macro, then create a new one.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Aug 26, 2006 12:07 pm   
 
Using SHIFT with the number pad does not work because the lowest level of programming for the computer interprets that as an override of numlock when numlock is on. I would suggest overloading your macros by using other keys to set variables for what mode they are in, then CTRL-KEY# can use an #IF or #CASE to preform the right commands.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Qiz
Novice


Joined: 14 Aug 2006
Posts: 34
Location: Sweden

PostPosted: Sat Aug 26, 2006 11:00 pm   
 
Easy workaround for this, though I'm surprised zMud does not allow the SHIFT-numkey in the first place when creating the macro.

Turn off numlock, hit CTRL-K
Press the key you want to use as SHIFT-numkey, but WITHOUT holding down shift. Define what it should do
Save your settings.
Go back to the main mud window
enable numlock
press SHIFT-numkey and it works...

But do note that this is the same as defining some other keys, namely:
left, up, down, right arrows, page down, page up, home, end

If you want to use those keys for other things, I suggest using ALT-numkey instead.
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