About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
coldcut
Beginner


Joined: 09 Apr 2003
Posts: 17
Location: USA

PostPosted: 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.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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).
Reply with quote
coldcut
Beginner


Joined: 09 Apr 2003
Posts: 17
Location: USA

PostPosted: 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.
Reply with quote
coldcut
Beginner


Joined: 09 Apr 2003
Posts: 17
Location: USA

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net