Trigger Activation and End Lines

by Thrasymachus

Back to Mechanic's Corner.

Thrasymachus2006-09-07 16:41:51
When one of my triggers is cought it doesnt immediatly execute the code that is attatched to it, it waits unil another line is executed first. Example, If my autosipper finds my health at below 75% instead of sipping then it waits until the prompt shows up again. Is there any way to fix this??

Also . . .

Im having a bit of trouble with some of the lines showing up appended to the end of my prompt and it can make entire triggers not to catch. Is there any way to make sure that a newline is at the end of the prompt to fix this or am i screwed eek.gif ?
Ashteru2006-09-07 16:45:00
Well, what are you using?
Thrasymachus2006-09-07 16:47:01
Im using Mushclient forgot to mention
Ashteru2006-09-07 16:56:31
Aaah. Ask Nirrti then. She might be annoying, and rude, and mean, and totally not nice to her poor friends but she can code!
Unknown2006-09-07 17:28:22
Either turn on the GA/EOR prompt option in MUSHclient or use the CONFIG PROMPT ADD LINEBREAK option in Lusternia. MUSHclient doesn't have the "trigger on prompt without newline" option.
Unknown2006-09-07 19:39:20
QUOTE(Zarquan @ Sep 7 2006, 06:28 PM) 328871

Either turn on the GA/EOR prompt option in MUSHclient or use the CONFIG PROMPT ADD LINEBREAK option in Lusternia. MUSHclient doesn't have the "trigger on prompt without newline" option.

Go to Game > Configure > Output... and check "Convert IAC EOR/GA to new line" in the bottom right corner. (CONFIG PROMPT ADD LINEBREAK used to give me stray blank lines sometimes, so this is better.)

QUOTE(Ashteru @ Sep 7 2006, 05:56 PM) 328861

Aaah. Ask Nirrti then. She might be annoying, and rude, and mean, and totally not nice to her poor friends but she can code!

Well nyah.gif to you too.
Thrasymachus2006-09-07 20:17:30
Thanks everyone this helps alot smile.gif
Shorlen2006-09-08 09:46:47
For those of you using zMUD, add "" {nocr|prompt} to the end of your prompt triggers. For instance,
CODE
#trigger "prompttrig" {^(%d)h, (%d)m, (%d)e} {health=%1;mana=%2;ego=%3} "" {nocr|prompt}
Unknown2006-09-08 12:15:19
I didn't say anything. You're seeing things again.
Shorlen2006-09-08 12:47:22
QUOTE(Zarquan @ Sep 8 2006, 08:15 AM) 329235
If you use Shorlen's prompt, be sure to use "mana=%2" instead of "mana=%1"... wink.gif

What are you talking about? dry.gif