 |
Loto Apprentice
Joined: 05 May 2003 Posts: 194
|
Posted: 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. |
|
|
 |
nexela Wizard

Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: 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} |
|
|
 |
Loto Apprentice
Joined: 05 May 2003 Posts: 194
|
Posted: 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. |
|
|
 |
nexela Wizard

Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sun May 02, 2004 4:47 am |
remove the ~ you shouldnt need to quote the : unless you set it up as a special char
|
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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. |
|
|
 |
Loto Apprentice
Joined: 05 May 2003 Posts: 194
|
Posted: 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.
|
|
|
 |
Loto Apprentice
Joined: 05 May 2003 Posts: 194
|
Posted: 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
|
|
|
 |
|
|