That sort of solves my problem. The thing is, I have about 30 of these triggers, and not all of the desired substitutions can be done with wildcards. For example, I have, triggering off of:
^A hand\-sized tick with a human face leaps for your throat\.$
the substituted text of
"Ticked!"
I could obviously make a seperate function for each of these triggers but that wouldn't be efficient, and I could also get a special wildcard that's unique to each trigger (like making "hand-sized tick" a wildcard so I could have if statements to check what trigger called the sub function.
Ideally, I'd like to have something like this working:
function sub(text)
ColourNote("silver", "black", text)
end
where in my triggers, I'd Send-To: Script, and in Send, I'd do
I'd think that would work, as you said, because it's getting deferred to the script file, but as of now I've got that first trigger I posted sending
sub("%1: .maul. /%2/ /%3/")
to the sub function I mentioned earlier, and it is doing the same thing I complained about in my first post.
|