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
Loto
Apprentice


Joined: 05 May 2003
Posts: 194

PostPosted: Sun May 02, 2004 12:26 am   

Gagging and Waiting
 
I have an alias to do this:

#gagon
score
#COND {Wait|Param=20}
#gagoff

I want it to wait before sending the gagoff, since there is a slight delay before the MUD sends the results of the score command. Instead it waits before it sends the entire alias.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sun May 02, 2004 1:17 am   
 
I think the quickest/simplest way would be to just make a #TEMP trigger where the #cond is that is based on your prompt to issue a #gagoff

#gagon
score
#TEMP "gagtillprompt" {%d/%d hp %d/%d ma} {#gagoff}
Reply with quote
Loto
Apprentice


Joined: 05 May 2003
Posts: 194

PostPosted: Sun May 02, 2004 1:33 am   
 
Ok, I changed it to fit my prompt. Apparently I changed it wrong. I made it:

#gagon
score
#TEMP "gagtillprompt" {HP~:* MV~:*} {#gagoff}

My prompt is:
* R HP:Healthy MV:Fresh >

But the R and the * aren't always there, are sometimes different, so I left them out, but it didn't work.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sun May 02, 2004 4:47 am   
 
remove the ~ you shouldnt need to quote the : unless you set it up as a special char
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun May 02, 2004 5:11 am   
 
Prompt triggers usually need the "prompt" option set. Otherwise, they don't take effect until the next line is received or sent.
#TEMP "gagtillprompt" {HP~:* MV:*} {#GAGOFF} {} {prompt}

As nexela said, you shouldn't need the ~ before :. On the other hand, removing them doesn't make any difference except to make your pattern slightly easier to read.
Reply with quote
Loto
Apprentice


Joined: 05 May 2003
Posts: 194

PostPosted: Sun May 02, 2004 5:11 am   
 
It's automatically set up as a special char, its for focus. But i'll try without it.
Reply with quote
Loto
Apprentice


Joined: 05 May 2003
Posts: 194

PostPosted: Sun May 02, 2004 5:14 am   
 
Ah great, it works, thanks LightBulb! I took out the ~s, Nexela, and it still didn't work
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