|
发表于 2011-8-9 23:18:16
|
显示全部楼层
建一个lua脚本来生成这个触发器和相应的函数
function Do_FunctionForTriggerName1(name, line, wildcards)
gua = wildcards[1]
SetVariable ("i", "1")
SetVariable ("biangu", "0")
Execute ("l tu")
end
AddTriggerEx ("tr_TriggerName1",
"陆乘风说道:「面带桃花,我为你占得一卦\:\(\\W+\)。」\\n陆乘风用手指了指墙上的八卦图。",
"",
trigger_flag.Enabled + trigger_flag.RegularExpression + trigger_flag.Replace + trigger_flag.Temporary + trigger_flag.KeepEvaluating,
custom_colour.NoChange,
0,
"",
"Do_FunctionForTriggerName1",
0,
100)
SetTriggerOption("tr_TriggerName1", "multi_line", "y");
SetTriggerOption("tr_TriggerName1", "lines_to_match", "2"); |
|