Prompt Trigger

Posted by Rynok on Thu 13 Jul 2006 01:45 PM — 4 posts, 18,619 views.

USA #0
I realize that there is a reason for why the client won't process the prompt trigger till it reaches the next line, but is there a way to process the prompt without using a plugin? (some check box I'm missing or special expression maybe)

Edit-Figured out how to install a plugin and how to make my own, which I'll start working on. If I process the prompt immediately will it process it again when it gets a newline?

On a totally different note, I wanted to be able to take a multiline trigger and gag it and replace it with a different single line output. You can't gag multiline triggers, so will I need to simply write an additional one line trigger to match each multiline and gag those seperately like that? Would a script be able to gag the multiline (scripting in Lua)? Perhaps a plugin instead so I can grab the trigger before it is displayed/processed?

Thanks
Amended on Thu 13 Jul 2006 04:08 PM by Rynok
#1
I think you need to turn on GA\EOR convertion or whatever it's called, and that will make it so triggers run immediatly
instead of one line later.
Australia Forum Administrator #2
Quote:

You can't gag multiline triggers, so will I need to simply write an additional one line trigger to match each multiline and gag those seperately like that? Would a script be able to gag the multiline (scripting in Lua)?


Yes, at present you need to gag the lines individually, whether or not you use Lua. The present philosophy is that once a line is committed to the log file, and displayed, it is too late to go back and un-log it.

However if you have something like:


Your inventory contains:
  bread
  water
  cake
  icing sugar
5 items.


It is fairly easy to write 3 triggers to handle that. The first turns on a "gag all subsequent lines" flag (and enables a "match all" trigger). The second trigger captures the middle lines. The third trigger turns off the flag, and winds up.
USA #3
Thanks. That prompt thing was really starting to annoy me, and I wasn't really ready for messing with plugin's yet. That option worked though once I found it and told it to add a newline to the end.