Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ text substitution question

text substitution question

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Smkey21   (4 posts)  Bio
Date Wed 15 Dec 2010 09:10 PM (UTC)
Message
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.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Thu 16 Dec 2010 01:27 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Smkey21   (4 posts)  Bio
Date Reply #2 on Thu 16 Dec 2010 04:57 PM (UTC)
Message
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.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,676 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.