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
Curtis
Novice


Joined: 25 Nov 2002
Posts: 39
Location: USA

PostPosted: Sun Mar 23, 2003 12:27 am   

Automated Portal Help Needed
 
In Avalon mud I am able to portal to anyone in avalon. This is helpful when you need to get out of danger quickly. What I would like to do is have a button that enters the command LW. LW is a list of new players. These players are usually accessible by portals. I want the players and locations to go into a string list. Than I want the string list put into a picklist so I can just click which player I want to portal to.
Here is the mud output and commands. I am having trouble making it all come together.

1220h, 1169m e({-}) lw
Behold! A list of those not yet accustomed to the ways of Avalon.
Dudexcv [At: Inside a canoe ].
Inultus [At: The Singing Street ].
Young Blackknight [At: Accolade Room ].
Adwwsfdaf [At: Grassy knoll at the centre of the square ].
Meseye, The Black Flame [At: Path entrance ].
Young Blood [At: Accolade Room ].
Young Darkfox [At: Centre of the Cassiandora square marketplace ].
Young Sadu [At: Next to the lake ].
Nepthys of Springdale [At: Central Park near fountain ].
Hobag [At: Great hall of the Academy ].
The Puma [At: By the Pool of Life ].
Nadania [At: Central chamber of collegiate learning ].
1220h, 1166m e({-})

The players names are almost always
Young Blah
Blah of whatever
Blah

and my commands to portal to target are

ls portal <@target>;enter portal;close portal
Reply with quote
Curtis
Novice


Joined: 25 Nov 2002
Posts: 39
Location: USA

PostPosted: Sun Mar 23, 2003 8:32 am   
 
I should have explained what I have written so far. I have 3 triggers that add name variables to stinglist. I dont really need to be concerned with a variable for location. This is not really important.I have these triggers turning on and off at correct times. Now, how do I get this stringlist into a picklist and how do I clear the variable list when Im finished. I cant seem to figure this part out. My stringlist variable is LWTARGET.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Mar 23, 2003 9:02 am   
 
Picking out the names to make the list is the hard part, I'm glad you've already got that solved. Once you have your list completed, this set of commands should allow you to pick one, portal to it, and then clear the list:

ls portal %pick( "p:Pick someone to portal to", "o:1", @LWTARGET);enter portal;close portal;#VAR LWTARGET {}

It's intended to be run from a trigger (the one that indicates you've received all the names), alias, macro (#KEY), or button. You can also use it directly from the command line, by adding the <> to force evaluation of the %pick function.

LightBulb
Advanced Member
Reply with quote
Curtis
Novice


Joined: 25 Nov 2002
Posts: 39
Location: USA

PostPosted: Sun Mar 23, 2003 4:11 pm   
 
Thanks Lightbulb, this was extremely helpful. I can think of many more uses for this application.
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