才发现mush不支持同行反复触发,它里面的所谓反复触发是坑爹的。。。
本帖最后由 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 同行反复触发??
把一行复制N遍,保持有效性哪个??? 本帖最后由 labaz 于 2012-1-23 09:18 AM 编辑
回复 3# linjpen
你说的是会触发同一行的几个trigger,我说的是一个trigger会在一行被反复满足条件触发 回复 4# labaz
你要做什么触发?条条道路通罗马,换个思路再搞啊! 比武见人就杀里的某个触发,现在通过别的方法临时先规避了。 高端呀 努力学习机器人制作中,准备手动遍历一下技术园地。
页:
[1]