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


Joined: 08 Oct 2002
Posts: 34

PostPosted: Sat Aug 16, 2003 11:37 pm   

Controlling the prompt
 
I'm new at this so please bare with me.

My mud prompt looks similar to this:

<207/207hp 144/144m 430/430mv 100br 8,138xp>

Naturally, you can change it to display different information but you get the general idea.

On my mud though, 'look' does not provide the exit info (which throws off the automapper but that is a different subject). I have to do a separate 'exit'. I created an alias so the 'look' and 'exit' are sent at the same time.

The problem I have is that I receive a double prompt in return to my alias. One for the 'look' and one for the 'prompt'. I would like to receive only one prompt, after the exit info has been sent.

I created a class that will control the display of the prompt but I don't know what what expressions to use.

What would I use for an expression that controls the dispaly of the prompt. I don't want any part (including the newline) to display on my screen.
Reply with quote
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Sun Aug 17, 2003 4:17 pm   
 
#TR "promptgag" {~<%d/%dhp %d/%dm %d/%dmv %dbr %d,%dxp~>} {#GAG;#T- promptgag}
Use "#T+ promptgag" somewhere - possibly in the alias, or possibly in a trigger, to enable this trigger. It will only fire once as you can see, because it disables itself each time it fires.
Reply with quote
Aekisu
Novice


Joined: 08 Oct 2002
Posts: 34

PostPosted: Sat Aug 23, 2003 3:41 am   
 
I'm using an alias to enable your trigger. It is:
#AL L {#T+ promptgag; look; exits}
It fires the promptgag once, as designed but it isn't working correctly.

The actual line gagged is at the top of the text sent. For example,

#gag removes the word "look"
#gag 2 removes the words "look", and "exits"
#gag 3 removes "look", "exits" and the room description.

What I need removed is the prompt line (i.e. <207/207hp 144/144m 430/430mv 100br 8,138xp>)
Reply with quote
Aekisu
Novice


Joined: 08 Oct 2002
Posts: 34

PostPosted: Mon Aug 25, 2003 9:30 am   
 
Anyone ?
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Mon Aug 25, 2003 1:54 pm   
 
#ALIAS as {look;#gag ~<*~>;exit}

Straight from the help files under #gag
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Aug 25, 2003 6:03 pm   
 
#AL L {#T+ promptgag;look;exits}
#TR "promptgag" {~<%d/%dhp %d/%dm %d/%dmv %dbr %d,%dxp~>} {} {} {nocr|prompt}
#COND {~<%d/%dhp %d/%dm %d/%dmv %dbr %d,%dxp~>} {#GAG;#T- promptgag} {nocr|prompt|Within|Param=1}

This should gag the first double prompt after you use the L alias. If that's not what you want, try using your exits line as the pattern and gag the first prompt after it.
Reply with quote
Aekisu
Novice


Joined: 08 Oct 2002
Posts: 34

PostPosted: Mon Aug 25, 2003 7:11 pm   
 
thank you
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