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
Cbisazza
Wanderer


Joined: 27 Feb 2003
Posts: 69
Location: Australia

PostPosted: Thu May 06, 2004 1:44 am   

Triggering on prompt (GSL-based games)
 
Is there a way to trigger on the prompt in GSL-based games?

I'm looking for a common way to reset my text parsing, and that seems to be the most logical.

Note that I'm *NOT* trying to trigger off the prompt text - that would be trivial - I'm trying to trigger off the prompt itself.

Thanks,
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu May 06, 2004 5:38 pm   
 
Umm...the prompt IS the prompt text.
Reply with quote
Cbisazza
Wanderer


Joined: 27 Feb 2003
Posts: 69
Location: Australia

PostPosted: Sun May 09, 2004 2:36 pm   
 
Well, yes and no. Let me try to explain what's happening in more detail for those who don't play GSL games.

If you go to the "GSL emulation" section of the preferences, you'll see what I mean - you can set the prompt to whatever you want from zMUD. zMUD then echoes whatever text (or variables or whatever)you enter into that field as a prompt.

Now I would like to to match the prompt in some triggers, and I believe it should be possible to match the 'prompt' without explicitly matching the text. This will increase portability of code and also avoid errors when I have not updated my prompt variable.

Sorry for not providing the info earlier on.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Sun May 09, 2004 9:53 pm   
 
#TRIGGER {*} {dostuff} "" {prompt}
Reply with quote
Belmyrddyn
Magician


Joined: 17 Oct 2001
Posts: 371
Location: USA

PostPosted: Mon May 10, 2004 9:49 pm   
 
Or, a better way, is to create a GSL trigger which triggers off of the letter q.
#TRIGGER {q} {dostuff} "" {gsl}
Reply with quote
Cbisazza
Wanderer


Joined: 27 Feb 2003
Posts: 69
Location: Australia

PostPosted: Tue May 11, 2004 12:22 am   
 
Thanks for the info.

works great.
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