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


Joined: 07 Aug 2002
Posts: 4
Location: Ireland

PostPosted: Wed Aug 07, 2002 6:44 pm   

Bring on the easy life putting variables to menus
 
My first post just started using zmud and its scripts..life could be very easy...but..
Heres the problem:
When i type password it gives a list of passwords like this:

blah land of nod
blah2 land of pixies and fairies
blah3 etc...

I want to be able to type password then capture the list of passwords and destinations and put them into a popup button menu ie the button will have a password written on it and then the destination written beside it...I have tried but my triggers flop in syntax and splitting up the lines never works...please help and I will be eternally grateful..

Thanks,
Dev
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Aug 07, 2002 10:25 pm   
 
Are there any lines that preceed the typing of the password? Are there any prompts for the password? Are there any lines that indicate a successfully entered password? Are there any othere texts you wish to send to the mud? Is there any other information that you think might be needful for me to write the appropiate triggers and script code for you?

What I am really trying to say is I could easily write a script to capture all mud output, then put it in a popup box. From there I have to know whether to just send your selection or hold on to that information till later. I have to have all these questions answered before I can write it for you.
Reply with quote
dev99
Newbie


Joined: 07 Aug 2002
Posts: 4
Location: Ireland

PostPosted: Thu Aug 08, 2002 6:41 pm   
 
The password works by typing "Go <password>". The password is not actually asked for it is just input by the user usually after checking the password lists. If you can write me a script to do this then I can work out how to perform other string manipulations to menus myself I just need a good example to work from...

Thanks Vijilante,
Dev


Last edited by dev99 on Wed Oct 19, 2005 3:59 am; edited 1 time in total
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Aug 08, 2002 10:17 pm   
 
#CLASS {GoCommand} {enable}
#TR {^(%w) land of (*)$} {#VAR {%replace("%2"," ","_")} "%1" "_nodef" {GoCommand};#EXEC %concat("#MENU {"%2"} {go @",%replace("%2"," ","_"),"} {GoCommand|Menus} {}")}
#MENU {Go} {} "" {Menus}
#CLASS 0
#CLASS {GoCommand|Menus} {enable|menu}
#ALARM {+1} {#ECHO Classes succesfully created.}
#CLASS 0

This creates a right-click menu for you by the name of go, with a submenu listing each item it has found. Since you didn't even asnwer half of my questions it is pretty dumb and likely to capture wildly inaccurate information. Enjoy.
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