If you need to do trigger modifications on a massive scale, the easiest solution is definitely
Farlap.
To use on triggers, turn on Manual Refresh and Use Regex. Then paste your triggers into the "Input" box.
In the "Find" box, put the specific triggers or some part of a trigger you want to replace. You need to put a \ before every ( and ). You can quickly do this in Wordpad or any equivalent, replacing "(" with "\(" and ")" with "\)".
It's now formatted for regex, and you can use special characters in it. These are the most useful ones:
. = Any single character.
.* = A string containing any characters.
() = This "saves" whatever is inside the parentheses, to be recalled using the next symbol.
$1 = This is replaced with whatever was saved using parentheses. The number indicates which saved string to use (so $2 would be replaced with whatever was inside the second instance of parentheses).
The $1, $2, $3, etc, can be used in the Replace box.
For example, if you wanted to swap every Bring condition with the condition underneath it, you could put into the Find box:
(Bring.*);
(.*);
And in the Replace box:
$2;
$1;
There is an example picture at the top of the Farlap thread linked to as well.
This can be used to make major changes to, and even completely restructure, all of your triggers at once.
Post has been edited 2 time(s), last time on Nov 19 2012, 6:10 pm by Azrael.