|
Cbisazza Wanderer
Joined: 27 Feb 2003 Posts: 69 Location: Australia
|
Posted: 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, |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu May 06, 2004 5:38 pm |
Umm...the prompt IS the prompt text.
|
|
|
|
Cbisazza Wanderer
Joined: 27 Feb 2003 Posts: 69 Location: Australia
|
Posted: 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. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Sun May 09, 2004 9:53 pm |
#TRIGGER {*} {dostuff} "" {prompt}
|
|
|
|
Belmyrddyn Magician
Joined: 17 Oct 2001 Posts: 371 Location: USA
|
Posted: 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} |
|
|
|
Cbisazza Wanderer
Joined: 27 Feb 2003 Posts: 69 Location: Australia
|
Posted: Tue May 11, 2004 12:22 am |
Thanks for the info.
works great. |
|
|
|
|
|