|
coldcut Beginner
Joined: 09 Apr 2003 Posts: 17 Location: USA
|
Posted: Tue Nov 11, 2003 8:15 am
Avatar color script-prompt variable bug |
I have a script that will capture the text after my prompt and highlight it. However the symols ! @ $ # may appear before my prompt in no certain order to notify me if I have certain effects on me. When these symbols are in place before my prompt the color trigger stops working.
Here is the trigger that colors the text:
#trigger {(%d)[/ ](%d)hp(%s)(%d)[/ ](%d)mana(%s)(%d)[/ ](%d)mv (%*)} {#var prompttext {%9}; #cw @prompttext high,green}
Here is what my prompt normally looks like, 'Dwarven Trade Route' highligted green by the color script:
352/352hp 161/161mana 437/480mv Dwarven Trade Route
However if the effect symbols are active the trigger stops working.
!@#$352/352hp 161/161mana 437/480mv Dwarven Trade Route
How can I correct my script to account for these symbols?
Thank you. When I get this corrected I can change it and a few other things on my posted color script. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Nov 11, 2003 10:09 am |
#TR {(%d)[/ ](%d)hp(%s)(%d)[/ ](%d)mana(%s)(%d)[/ ](%d)mv (*)} {#PCOL high,green %x9}
However, your original trigger worked with both sample lines (as expected). |
|
|
|
coldcut Beginner
Joined: 09 Apr 2003 Posts: 17 Location: USA
|
Posted: Tue Nov 11, 2003 8:32 pm |
That might work on a test but it does not work in the game...neither does the fix you posted :(
I could find no help file for the command pcol so I have no idea what it is supposed to do. |
|
|
|
coldcut Beginner
Joined: 09 Apr 2003 Posts: 17 Location: USA
|
Posted: Tue Nov 11, 2003 9:10 pm |
Yup I tested it...works just fine in the offline tester ...ZMud recognizes the pattern even with the symobls at the front..but it only activates the color trigger in game without the symbols.
|
|
|
|
|
|