Hi
I have a simple two-trigger plugin that I made exporting the triggers from world file where it works fine. The only thing I changed was re-arranging the "keywords" in the trigger header (enable, group, match,...)
Here it is
The first triger works fine. It fills the variable q_name. But the second doesn't work. I removed the plugin and recreated the triggers back to world file and it works fain again. But not in the plugin. Where is the difference?
Thanks for explaining
Mahony
[EDIT] Layed out triggers more readably. - Nick Gammon
I have a simple two-trigger plugin that I made exporting the triggers from world file where it works fine. The only thing I changed was re-arranging the "keywords" in the trigger header (enable, group, match,...)
Here it is
<triggers>
<trigger
custom_colour="17"
enabled="y"
expand_variables="y"
group="qcolor"
ignore_case="y"
keep_evaluating="y"
match="@q_name"
regexp="y"
sequence="100"
other_text_colour="saddlebrown"
other_back_colour="yellow"
>
</trigger>
<trigger
enabled="y"
group="qcolor"
match="Seek (.*?) out somewhere in the vicinity\'$"
regexp="y"
send_to="9"
sequence="100"
variable="q_name"
>
<send>%1
</send>
</trigger>
</triggers>
The first triger works fine. It fills the variable q_name. But the second doesn't work. I removed the plugin and recreated the triggers back to world file and it works fain again. But not in the plugin. Where is the difference?
Thanks for explaining
Mahony
[EDIT] Layed out triggers more readably. - Nick Gammon