Substitution triggers

Posted by Doomed on Tue 13 Jan 2004 05:56 PM — 2 posts, 10,762 views.

#0
As it is, I can't see any reasonable way of handling
cases when I want to grab all instances of, for example,
the word "fail" in the output and substitute them with
"FAIL", i.e. not getting the trigger response text sent
on the next line.

Maybe a new option for the Send to -list, "Substitute",
which sends the text to the world in place of the matching
trigger text?

--

dsm
Australia Forum Administrator #1
By the time the trigger is evaluated the text has already been displayed, however you could check "omit from output" and call a script that substitutes different words for the matching ones, eg.

Match: *fail*

In the script, do:

world.Note wildcards (1) & "FAIL" & wildcards (2)

However this will change the colour of the line.