I'm currently trying to write a plugin for the Discworld Mud that takes the output of:
And adds those names to a trigger which then shows them in a highlighted colour on the output. I already have 6 client side triggers but I have to manually update each one with new names everytime a new person goes PK, for 6 different guilds, and this gets time consuming and annoying. I have written most of the plugin out, and it is converting the above into
And will add new names without making duplicates everytime I run it. The only problem is converting it into a trigger, as I can do that from
but it only highlights one name per line, so if my output reads "Akeelah, Beale and Chosig are standing here." only Akeelah will be highlighed. To solve this in the client side triggers the trigger looks like:
But I can't get the AddTriggerEx or SetTriggerOption functions to work with those bits of text, and was wondering if anyone has any suggestions/advice or knows why this is and can tell me what would work so that all occuring names on one line will highlight?
Thanks in advance
There are six assassin player killers logged in:
Akeelah, Beale, Chosig, Effaxe, Haassasin and OxygeneAnd adds those names to a trigger which then shows them in a highlighted colour on the output. I already have 6 client side triggers but I have to manually update each one with new names everytime a new person goes PK, for 6 different guilds, and this gets time consuming and annoying. I have written most of the plugin out, and it is converting the above into
assassinslist = akeelah|beale|chosig|effaxe|hassassin|oxygeneAnd will add new names without making duplicates everytime I run it. The only problem is converting it into a trigger, as I can do that from
AddTriggerEx("assassintrigger", assassinlist, "", 57, 16, 0, "", "", 12, 100)but it only highlights one name per line, so if my output reads "Akeelah, Beale and Chosig are standing here." only Akeelah will be highlighed. To solve this in the client side triggers the trigger looks like:
((?<=^|\s|[)(akeelah|beale|chosig|effaxe|hassassin|oxygene)(?!\w))But I can't get the AddTriggerEx or SetTriggerOption functions to work with those bits of text, and was wondering if anyone has any suggestions/advice or knows why this is and can tell me what would work so that all occuring names on one line will highlight?
Thanks in advance