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
dan_a_wall
Newbie


Joined: 01 Aug 2002
Posts: 5
Location: USA

PostPosted: Sat Aug 17, 2002 2:38 am   

Keypad movement vs. New movement
 
Currently when I press the KEY2 button I move south. I want to be able to toggle between this set up and another. I also need to know how to create a new setup. For example; my mud allows party creation and movement. If I press KEY2 I want to send "party move south". When I'm not in a party I want to be able to revert back to KEY2 moves me south.

Thank you.

Daniel A. Wall
Reply with quote
Drevarr
Beginner


Joined: 19 Dec 2001
Posts: 17
Location: USA

PostPosted: Sat Aug 17, 2002 4:28 am   
 
Move your current movement macros to a class and then create new party macros in another class. Once you've got it set up you can turn each class on/off as requried.

Something like this:
#CLASS {NormalMove}
#CLASS {PartyMove}
#KEY KEY2 {S} "NormalMove"
#KEY KEY2 {party move south} "PartyMove"
#alias partymove {#T+ PartyMove;#T- NormalMove}
#alias normalmove {#T- PartyMove;#T+ NormalMove}
Reply with quote
dan_a_wall
Newbie


Joined: 01 Aug 2002
Posts: 5
Location: USA

PostPosted: Sun Aug 18, 2002 2:07 am   
 
Ok, I have set this up. How do I execute the PartyMove?


Daniel A. Wall
Reply with quote
EdwinDroom
Wanderer


Joined: 25 Jan 2002
Posts: 77
Location: Ireland

PostPosted: Sun Aug 18, 2002 2:57 am   
 
use the aliases - partymove turns on partymove and off normalmove, and vice versa...

#T+ turns a class of triggers on

"I've got an allergy to Perrier, daylight and responsibility" - Marillion

Check out Moral Decay on 131.247.113.1 3003
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Aug 18, 2002 2:58 am   
 
Press KEY2.

LightBulb
Senior Member
Reply with quote
dan_a_wall
Newbie


Joined: 01 Aug 2002
Posts: 5
Location: USA

PostPosted: Sun Aug 18, 2002 7:00 pm   
 
I Still do not understand where do us the #T+? I typed and pressed enter, but nothing happens.

I am new to zMud so excucse my ignorace.

Daniel A. Wall
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sun Aug 18, 2002 8:26 pm   
 
I have always been a fan of using a button for toggling such things as that, they are easy to click and conviently display what the current state is.

#BUTTON 1 {Move: %if(%trigger(PartyMove),Party,Normal)} {#IF (%trigger(PartyMove)) {#T- PartyMove;#T+ NormalMove} {#T- NormalMove;#T+ PartyMove}} {} {} {} {} {} {Size} {70} {23} {} {} {} {} {} {} {} "" {} {} {}
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Aug 18, 2002 11:09 pm   
 
Drevarr's script contains two aliases, partymove and normalmove, with the appropriate #T+ and #T- commands to switch between the two modes. All you have to do is type "partymove" when you want to switch to the party commands, and "normalmove" when you leave the party. Ton's button does the same thing, you'll probably find it even easier.

Since you failed to recognize fairly basic commands, I expect you'll need the other directions, besides south, too. You can just cut-and-paste this entire script into zMUD at the command line, either as a block or line-by-line. If you use line-by-line, note that the entire button script is one line, even though it takes several lines here because of wordwrap.

Since the "normal" movement macros should already be in your settings, I've chosen not to repeat them.

#CLASS PartyMove {disable}
#KEY KEY1 {party move sw}
#KEY KEY2 {party move s}
#KEY KEY3 {party move se}
#KEY KEY4 {party move w}
#KEY KEY6 {party move e}
#KEY KEY7 {party move nw}
#KEY KEY8 {party move n}
#KEY KEY9 {party move ne}
#KEY SUB {party move d}
#KEY ADD {party move u}
#CLASS 0
#T- PartyMove;#T+ Keypad;#T+ KeypadDiag
#AL partymove {#T- Keypad;#T- KeypadDiag;#T+ PartyMove}
#AL normalmove {#T- PartyMove;#T+ Keypad;#T+ KeypadDiag}
#BUTTON 1 {Move: %if(%trigger(PartyMove),Party,Normal)} {#IF (%trigger(PartyMove)) {#T- PartyMove;#T+ Keypad;#T+ KeypadDiag} {#T- Keypad;#T- KeypadDiag;#T+ PartyMove}} {} {} {} {} {} {Size} {70} {23} {} {} {} {} {} {} {} "" {} {} {}

LightBulb
Senior Member
Reply with quote
Burser
Wanderer


Joined: 07 Feb 2001
Posts: 70
Location: United Kingdom

PostPosted: Mon Aug 19, 2002 4:02 am   
 
There is another alternative

Make macros for Ctrl-KEY2, etc.

That way you move yourself using the normal keys, and move the party using Ctrl-key.

You can even combine the two methods and have a button that swaps the primary movement method from party to self, but still have the other available on-key.

---> Burser

|## - The flags have it.
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