text substitution question

Posted by Smkey21 on Wed 15 Dec 2010 09:10 PM — 3 posts, 12,368 views.

#0
I'm trying to set up substitutes for all the potions in the mud I'm playing to display the potion's use affects. I've managed to get the substitutions to work properly, but I've run into a problem.
An example of a potion would be a cauterising potion. It has the effects of flame strike then two cure serious. (I've substituted 'cauterising potion' with 'cauterising potion -- flame strike-cure serious-cure serious --') I've been trying to figure out a way to change the 'flame strike' portion of the substitution to a red color so that I'll be warned that it will hit with a flame strike before healing.
I realize that this particualar example is pretty easy to remember, but it was also pretty easy to explain. I'm pretty sure that this can't be done with just triggers, and I don't really have any experience scripting with MUSHclient, so any help getting started would be greatly appreciated.
Australia Forum Administrator #1
You can make a trigger that matches what you want, omits it from output (so you don't see it), and then does a ColourNote (or one more ColourTell) to display parts in different colours.
#2
Thanks for the reply. I'd read a bit about ColorNote on the forum, but I didn't think it could handle showing more than one color. Hopefully after I read the documentation for the two functions you mentioned I'll be able to get at least one of them working without any trouble.