北大侠客行MUD论坛

 找回密码
 注册
搜索
热搜: 新手 wiki 升级
查看: 3841|回复: 6

才发现mush不支持同行反复触发,它里面的所谓反复触发是坑爹的。。。

[复制链接]
发表于 2012-1-22 23:51:23 | 显示全部楼层 |阅读模式
本帖最后由 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
北大侠客行Mud(pkuxkx.com),最好的中文Mud游戏!
发表于 2012-1-23 08:39:34 | 显示全部楼层
同行反复触发??
把一行复制N遍,保持有效性哪个???
北大侠客行Mud(pkuxkx.com),最好的中文Mud游戏!
 楼主| 发表于 2012-1-23 08:56:25 | 显示全部楼层
本帖最后由 labaz 于 2012-1-23 09:18 AM 编辑

回复 3# linjpen


你说的是会触发同一行的几个trigger,我说的是一个trigger会在一行被反复满足条件触发
北大侠客行Mud(pkuxkx.com),最好的中文Mud游戏!
发表于 2012-1-24 10:24:07 | 显示全部楼层
回复 4# labaz


    你要做什么触发?条条道路通罗马,换个思路再搞啊!
北大侠客行Mud(pkuxkx.com),最好的中文Mud游戏!
 楼主| 发表于 2012-1-24 11:24:12 | 显示全部楼层
比武见人就杀里的某个触发,现在通过别的方法临时先规避了。
北大侠客行Mud(pkuxkx.com),最好的中文Mud游戏!
发表于 2012-2-23 23:00:41 | 显示全部楼层
高端呀
北大侠客行Mud(pkuxkx.com),最好的中文Mud游戏!
发表于 2012-2-27 20:26:14 | 显示全部楼层
努力学习机器人制作中,准备手动遍历一下技术园地。
北大侠客行Mud(pkuxkx.com),最好的中文Mud游戏!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|北大侠客行MUD ( 京ICP备16065414号-1 )

GMT+8, 2024-11-1 07:29 PM , Processed in 0.010996 second(s), 14 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表