北大侠客行MUD论坛

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

高手帮我看看都府任务自动识别目标地点的trigger有什么问题。

[复制链接]
发表于 2021-1-24 16:07:19 | 显示全部楼层 |阅读模式
针对更新后的都府任务,我自己写了一点trigger来自动识别密码中的目标地址,如下所示。
很奇怪,当输入chakan命令,系统出现密码是,下述trigger并不能正确识别,但是当我把密码全部复制并再次从命令行中输入,下述trigger就能够正确的识别地址。
已多次测试,都是如此。哪位高手帮我看看是什么问题。Zmud7.22
谢谢了。

孟之经~(meng zhijing~)告诉你:第一个字在:第(??)行,第(??)列。第二个字在:第(??)行,第(??)列。对照~(duizhao~)这页,你就知道你要刺杀的人在哪了。
#var DufuLocationy1 %1
#var DufuLocationx1 %2
#var DufuLocationy2 %3
#var DufuLocationx2 %4

^??║(*)║
#var DufuString %1
#if (%begins( @DufuString, @DufuLocationy1)) {
  #if (@DufuLocationx1==子) {#var DufuLocation1 %rightback( %left( @DufuString, 4), 2)}
  #if (@DufuLocationx1==丑) {#var DufuLocation1 %rightback( %left( @DufuString, 6), 2)}
  #if (@DufuLocationx1==寅) {#var DufuLocation1 %rightback( %left( @DufuString, 8), 2)}
  #if (@DufuLocationx1==卯) {#var DufuLocation1 %rightback( %left( @DufuString, 10), 2)}
  #if (@DufuLocationx1==辰) {#var DufuLocation1 %rightback( %left( @DufuString, 12), 2)}
  #if (@DufuLocationx1==巳) {#var DufuLocation1 %rightback( %left( @DufuString, 14), 2)}
  #if (@DufuLocationx1==午) {#var DufuLocation1 %rightback( %left( @DufuString, 16), 2)}
  #if (@DufuLocationx1==未) {#var DufuLocation1 %rightback( %left( @DufuString, 18), 2)}
  #if (@DufuLocationx1==申) {#var DufuLocation1 %rightback( %left( @DufuString, 20), 2)}
  #if (@DufuLocationx1==酉) {#var DufuLocation1 %rightback( %left( @DufuString, 22), 2)}
  #if (@DufuLocationx1==戌) {#var DufuLocation1 %rightback( %left( @DufuString, 24), 2)}
  #if (@DufuLocationx1==亥) {#var DufuLocation1 %rightback( %left( @DufuString, 26), 2)}
  }
#if (%begins( @DufuString, @DufuLocationy2)) {
  #if (@DufuLocationx2==子) {#var DufuLocation2 %rightback( %left( @DufuString, 4), 2)}
  #if (@DufuLocationx2==丑) {#var DufuLocation2 %rightback( %left( @DufuString, 6), 2)}
  #if (@DufuLocationx2==寅) {#var DufuLocation2 %rightback( %left( @DufuString, 8), 2)}
  #if (@DufuLocationx2==卯) {#var DufuLocation2 %rightback( %left( @DufuString, 10), 2)}
  #if (@DufuLocationx2==辰) {#var DufuLocation2 %rightback( %left( @DufuString, 12), 2)}
  #if (@DufuLocationx2==巳) {#var DufuLocation2 %rightback( %left( @DufuString, 14), 2)}
  #if (@DufuLocationx2==午) {#var DufuLocation2 %rightback( %left( @DufuString, 16), 2)}
  #if (@DufuLocationx2==未) {#var DufuLocation2 %rightback( %left( @DufuString, 18), 2)}
  #if (@DufuLocationx2==申) {#var DufuLocation2 %rightback( %left( @DufuString, 20), 2)}
  #if (@DufuLocationx2==酉) {#var DufuLocation2 %rightback( %left( @DufuString, 22), 2)}
  #if (@DufuLocationx2==戌) {#var DufuLocation2 %rightback( %left( @DufuString, 24), 2)}
  #if (@DufuLocationx2==亥) {#var DufuLocation2 %rightback( %left( @DufuString, 26), 2)}
  }
#mess {@DufuLocation1 @DufuLocation2}
北大侠客行Mud(pkuxkx.com),最好的中文Mud游戏!
发表于 2021-2-10 11:33:24 | 显示全部楼层
不会用Zmud。
但你管他子丑寅卯干嘛,直接按位置,0,0就是菱形,其他对数就行了。
北大侠客行Mud(pkuxkx.com),最好的中文Mud游戏!
发表于 2021-2-19 16:53:13 | 显示全部楼层
这个问题你可以问问小白。他zmud玩的6
北大侠客行Mud(pkuxkx.com),最好的中文Mud游戏!
发表于 2021-3-3 19:53:02 | 显示全部楼层
本帖最后由 feishu 于 2021-3-3 07:58 PM 编辑

孟之经~(meng zhijing~)告诉你:第一个字在:第(??)行,第(??)列。第二个字在:第(??)行,第(??)列。对照~(duizhao~)这页,你就知道你要刺杀的人在哪了。
是不是有乱码?
“?”是匹配一个字符,你把“?”都改成%x试试把匹配变量写成
#var %trim(DufuLocationy1 %1)
…………
北大侠客行Mud(pkuxkx.com),最好的中文Mud游戏!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-24 12:06 PM , Processed in 0.010094 second(s), 14 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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