|
Lorette Beginner
Joined: 08 Sep 2004 Posts: 23
|
Posted: Mon Sep 13, 2004 8:48 am
Funny logging problem |
Hello everyone
As this is my first post, I'd like to start by saying how much I really love Zmud. Its made playing muds so much more fun. Its brilliant! Thanks Zugg, you're the best :)
Now to my problem, I have a Trigger that colours certain words from the mud, I used the handy trigger wizard provided and it works perfectly on screen, but when I open my logs to read how I died or whatever, all the words coloured by my trigger are black on black in the log. What am I doing wrong?
I have a list variable called People and my trigger is:
#TRIGGER {(@people)} {#CW "#FFFFFF,#000000"}
Can anyone help? |
|
_________________ Lorette |
|
|
|
Falan Wanderer
Joined: 17 Aug 2004 Posts: 98 Location: OK, USA
|
Posted: Mon Sep 13, 2004 9:34 am |
http://www.emobius.com/phpbb/viewtopic.php?t=17198
Vijilante wrote: |
You should be able to use the foreground,background syntax with #CW. The addition of some delimeters never hurts, the proper one in this case is braces.
#TR {some triggerable text} {#CW {aqua,antiquewhite}} |
#TR {(@people)} {#CW {$FFFFFF,$000000}} |
|
_________________ zMUD 7.05a |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Mon Sep 13, 2004 10:15 am |
The use $hex-number is reccommended over #hex-number only to save the syntax checker confusion. While braces are proper quotes work, and equally save the syntax checker confusion.
The problem is in the type of log your creating. You are using an ansi log, but the control codes inserted by #CW when hex values are used is an MXP extension. To properly log this you would have to use an HTML log. The only way to do that is with Charbal's HTML Logger plug-in. You can search the forums for it. Alternately you can convert the #CW into an ansi code by making it #CW {white,black}. Since white and black are in the ansi color names set the ansi system should be used and you current logging method would work. |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
Falan Wanderer
Joined: 17 Aug 2004 Posts: 98 Location: OK, USA
|
Posted: Mon Sep 13, 2004 10:34 am |
Help files state #CW supports "RGB values in hexadecimal format preceded by a $." Has this been changed?
|
|
_________________ zMUD 7.05a |
|
|
|
Lorette Beginner
Joined: 08 Sep 2004 Posts: 23
|
Posted: Mon Sep 13, 2004 10:53 am |
Thanks for the quick reply Falan,
I tried it and It didn't work, sorry. My log still shows the names in @people as black on black.
Ok, scratch that, I just used the words for the colours instead of the $fffff stuff and it works fine now, thanks Falan
Might be an idea to change the Trigger Wizard in the next version/update. |
|
_________________ Lorette |
|
|
|
Lorette Beginner
Joined: 08 Sep 2004 Posts: 23
|
Posted: Mon Sep 13, 2004 10:56 am |
Hi again,
Just read your post Vijilante, thanks. i've been sitting here for half an hour trying loads of different stuff, should have just come back to the forums :) |
|
_________________ Lorette |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Sep 13, 2004 4:11 pm |
#CW does support RGB values in hexadecimal format preceded by a $. These work perfectly well in the window issuing the #CW command. Nothing has changed.
|
|
_________________ LightBulb
Senior member
Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious. |
|
|
|
|
|