I'm completely confused about what you are trying to do here. First, the regexp:
^(add trigger(s|)|addtrigger(s|))$
For one optional letter, just put a question mark, eg.
That makes the space optional and the "s" optional.
And then inside the addtrigger alias you do this:
addtriggerex ""&getvariable ("asv1")&"3", ""&getvariable ("asv4")&"",
"enabletrigger ""&getvariable("asv1")&"1", 1", 1, -1, 0, "", "", 12, 100
addtriggerex ""&getvariable ("asv1")&"2", ""&getvariable ("asv3")&"",
addtriggerex ""&getvariable ("asv1")&"1", "^You flex your muscles proudly\!$", "send
"c "&getvariable("asv2")&""", 1, -1, 0, "", "", 12, 100
addtriggerex ""&getvariable ("asv1")&"4", ""&getvariable ("asv5")&"", "send
"c "&getvariable("asv2")&""", 1, -1, 0, "", "", 12, 100
exportxml (0, ""&getvariable ("asv1")&"1")
exportxml (0, ""&getvariable ("asv1")&"2")
exportxml (0, ""&getvariable ("asv1")&"3")
exportxml (0, ""&getvariable ("asv1")&"4")
enabletrigger ""&getvariable("asv1")&"1", 1", 1, -1, 0, "", "", 12, 100
enabletrigger "cancel", 0
Whatever it is you are trying to achieve, this is not the way to do it. Honestly.
Perhaps if you explain what the real problem is - not "trying to add a heap of triggers".
Twisol said:
... there's no easy way to look at the list of triggers in a plugin like that ...
Load the "summary" plugin. Type "summary". That shows, amongst other things, your plugins. Next to each plugin is a link like [
Tr] which, if you click on it will list that plugin's triggers. Then you can look at individual triggers.