|
本帖最后由 labaz 于 2012-1-22 11:52 PM 编辑
If "repeat on same line" is set for the trigger, the trigger regular expression is re-evaluated on the same line, with its starting column incremented past the last match. If further matches are made then the additional matching text is also coloured where applicable. This is for triggers that repeat on the same line, in case they need to colour words that might appear more than once.
Note: When matching with "repeat on same line" set, the "send" box is not used again, nor is the script routine called more than once. Also, the trigger count is only increment once for the line, not once per match on that line. The repeating is simply intended for colouring the same word (eg. the name of a friend) more than once if it appears multiple times on one line.
If you want to handle words individually on a line (eg. a "who" list, or a list of exits), then you need to make a trigger that matches the entire line, and break the line down further in a script.
北大侠客行MUD,中国最好的MUD |
|