[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  custom colors not showing up triggering to send to output

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: custom colors not showing up triggering to send to output
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by Nick Gammon   Australia  (18,800 posts)  [Biography] bio   Forum Administrator
Date Tue 09 Apr 2002 12:19 AM (UTC)  quote  ]
Message
I understand what you are trying to do, I was just explaining why it didn't work. :)

If you don't want to script, just make two changes:


  1. Open the world configuration (Alt+Enter)
  2. Select Scripting -> Scripts
  3. Change "note colour" to (say) "Custom 9"
  4. Now select Appearance -> Custom Colour
  5. Change the colour selected above (say, 9) to the colour you want
  6. Close the configuration screen


Now your message will appear in the correct colour, no scripting needed. :)

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Quam   (3 posts)  [Biography] bio
Date Mon 08 Apr 2002 04:48 PM (UTC)  quote  ]
Message
and i dont like scripting :P
[Go to top] top

Posted by Quam   (3 posts)  [Biography] bio
Date Mon 08 Apr 2002 04:45 PM (UTC)  quote  ]
Message
i dont want the original message on the screen. nor do i want to change the color of the original message. i have removed the original message by doing the omit from output and then i'm sending *** ND ND ND ND ND *** to output

Im trying to take out Orc is near death all together and just see *** ND ND ND ND ***
[Go to top] top

Posted by Nick Gammon   Australia  (18,800 posts)  [Biography] bio   Forum Administrator
Date Fri 05 Apr 2002 09:13 PM (UTC)  quote  ]
Message
I have added the idea as suggestion #454 to do it the way you expected.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (18,800 posts)  [Biography] bio   Forum Administrator
Date Thu 04 Apr 2002 11:57 PM (UTC)  quote  ]

Amended on Fri 05 Apr 2002 06:01 AM (UTC) by Nick Gammon

Message
By setting "omit from output" you are omitting the coloured line.

The "send to output" sends using the "note colour" - see the Scripts configuration tab for that. The simplest thing is just to change the note colour to what you want.

However if you want to keep the note colour the same, you could always run a small script that changes the note colour for the one line, like this:



sub OnNearDeath (strName, strLine, aryWildcards) 
dim oldcolour
  oldcolour = world.notecolour  ' remember colour
  world.notecolour = 7  ' change to custom colour 7
  world.note "**** ND ND ND ND ND ****"
  world.notecolour = oldcolour   ' put colour back
end sub


You can also use notecolourRGB to set a foreground and background colour to whatever you want (eg. white on red).

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Quam   (3 posts)  [Biography] bio
Date Thu 04 Apr 2002 04:50 AM (UTC)  quote  ]
Message
i have a trigger to look for *is near death* and omit it from output and send **** ND ND ND ND ND **** to output. it works fine, but the color stays blue, no matter what i set for custom color :(
[Go to top] 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.


1,650 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]