|
楼主 |
发表于 2014-1-6 23:24:16
|
显示全部楼层
name = "cjg6"
match="^[>\\s]*少林.*\\(Husi sengren\\).*"
cmd = "cjgsengbing('一') "
addmytriggerzz(name,match,cmd)
name = "cjg7"
match="^[>\\s]*(\\S+)位少林.*\\(Husi sengren\\).*"
cmd = "cjgsengbing('%1') "
addmytriggerzz(name,match,cmd)
name = "cjg8"
match="^[>\\s]*少林.*\\(Husi zhanglao\\).*"
cmd = "cjgzhanglao('一') "
addmytriggerzz(name,match,cmd)
name = "cjg9"
match="^[>\\s]*(\\S+)位少林.*\\(Husi zhanglao\\).*"
cmd = "cjgzhanglao('%1') "
addmytriggerzz(name,match,cmd)
----------以上四个是看到敌人的触发器。
还有一个是没看到敌人就知道有敌人的触发器:
name = "cjg10"
match="^[>\\s]*护寺僧人大叫一声,招来了附近的护寺僧众,向你猛攻过来!.*"
cmd = "cjgfindenemy()"
addmytriggerzz(name,match,cmd)
----------------------------------------------
第六个就是我们的指示触发器。
name = "cjg11"
match="^[>\\s]*设定环境变量:cjg = \"cjgwalk\".*"
cmd = "cjgwalkfinish() "
addmytriggerzz(name,match,cmd) |
|