Elgar2006-01-19 22:51:01
I have made the below script to automaticly color cityenemies and citizens. Now it all works ok, except that REGEX coloring doesn't work untill I reload (by opening the settings screen, closing it again, then open again). Is there any way to get the colors to work without reloading?
#CLASS {alignment tracker}
#VAR sysenemies {Ildryn|Kotai|(bigcutout)Voron|Altor}
#VAR syscelest {Elgar|(cutout)|Vesar|Shamarah}
#REGEX {\\b(?:@sysenemies)\\b} {#CW purple}
#REGEX {\\b(?:@syscelest)\\b} {#CW blue}
#TRIGGER {%d*/%d/* - (%w) stepped out of the Portal of Fate as a citizen.} {#ADDITEM syscelest %1}
#TRIGGER {%d*/%d/* - (%w) quit the city.} {#DELITEM syscelest %1}
#TRIGGER {%d*/%d/* - (%w) declared (%w) to be a formal enemy. *} {#ADDITEM sysenemies %2}
(other triggers similar to track unenemy, being kicked out of the city)
#CLASS 0
CODE
#CLASS {alignment tracker}
#VAR sysenemies {Ildryn|Kotai|(bigcutout)Voron|Altor}
#VAR syscelest {Elgar|(cutout)|Vesar|Shamarah}
#REGEX {\\b(?:@sysenemies)\\b} {#CW purple}
#REGEX {\\b(?:@syscelest)\\b} {#CW blue}
#TRIGGER {%d*/%d/* - (%w) stepped out of the Portal of Fate as a citizen.} {#ADDITEM syscelest %1}
#TRIGGER {%d*/%d/* - (%w) quit the city.} {#DELITEM syscelest %1}
#TRIGGER {%d*/%d/* - (%w) declared (%w) to be a formal enemy. *} {#ADDITEM sysenemies %2}
(other triggers similar to track unenemy, being kicked out of the city)
#CLASS 0
Unknown2006-01-19 23:41:11
That should work, no idea why it doesnt...
Out of curiosity, why do you have Kotai there? He hasn't played for a damn long time (the things you learn with a boring math class...)
Out of curiosity, why do you have Kotai there? He hasn't played for a damn long time (the things you learn with a boring math class...)
Elgar2006-01-20 00:10:09
QUOTE(Dyr @ Jan 20 2006, 01:41 AM)
That should work, no idea why it doesnt...
Out of curiosity, why do you have Kotai there? He hasn't played for a damn long time (the things you learn with a boring math class...)
Out of curiosity, why do you have Kotai there? He hasn't played for a damn long time (the things you learn with a boring math class...)
248362
I added all celest enemies in the cityenemies list, allows me to keep a nice track on them on who and when they enter my demesne they get automaticly enemied.