|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Sat Aug 06, 2005 9:53 pm
#CW using the wrong colour |
I have a number of things coloured in the game I play. One of them is player names, coloured yellow(ish), using a trigger on {@whoList} to #CW $C08040.
Most of the time this works, but occasionally a player name will be coloured green, #CW $008000 (incidentally the colour I use for industries). I've exported all the settings to a text file and searched for every instance of #CW, and none colour a player name apart from the @whoList trigger. I've also checked through all the variables to be sure that none of the player names exist elsewhere that might be coloured.
Has anyone else seen this behaviour, or might know how to cure it? I've got the same mud file running for a number of characters and on two PCs, and they all seem to be doing the same. It's maybe 5% that gets coloured incorrectly, but it's a bit annoying, and very puzzling.
Edit: The same players are not always coloured incorrectly every time, even during the same session. So Guinn might be yellow 5 times, then green, then yellow again.
Guinn |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sat Aug 06, 2005 11:01 pm |
Could the string Guinn be found inside one of the patterns for the industries?
|
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Sat Aug 06, 2005 11:44 pm |
Thanks, but no luck, I'd checked that. The values appear only once, inside @whoList.
|
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Aug 07, 2005 2:02 am |
Sometimes it's not the actual value, but the trigger pattern used. In addition, it could also be an issue of two triggers firing on the same line; since all active triggers are compared to the output to test for matches, it's possible that two or more are firing and occasionally one will finish the other while mostly it's vice versa.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Sun Aug 07, 2005 8:33 am |
I can't see where that'd be though, there's only one trigger throughout my settings that colours words the colour that's firing. No #PCOL or anything either.
Code: |
#REGEX {\b(?:@whoList)\b} {#CW $C08040}
#REGEX {\b(?:@industries)\b} {#CW $008000}
#VAR whoList {Rit|Azar|Trind|Hrothgar|Aughum|Rigby|Pewter|Dakif|Volcom|Rainbow|Vallerie|Boruk|Malik|Juuhachi|Leonassan|Mutikab|Zalream|Morgak|Dinesen|Helena} {}
#VAR industries {bakers|bank|brewery|butchers|carpenters|charcoal burner|construction warehouse|fishmongers|furriers|glass blowers|greengrocers|greenhouse|guardtower|leatherworkers|library|mint|materials warehouse|meat warehouse|metals warehouse|metalsmiths|mine|ore refinery|plot|produce warehouse|quarry|sawmill|sugar refinery|spinning mill|water tank|weaving mill|well|windmill|yeast tank}
|
|
|
|
|
|
|