mud_sanc 板


LINE

  #alias 在zMUD中一个比较不被发觉的功能之一,就是在下达 指令时,zMUD会检查指令有没有夹带变数,一般多会在无意中使 用到它,但不会发现,藉由这个功能,可以简化 #alias 的数量, 特别是游戏中一些系列型指令,如:spiriten trading blarket。   #alias 的指令格式为: name %1 %2.... 即後方每一个单词都会当成一个变数来用,如果有空格的词, 就会被当成数个变数,因而让这个好用的功能变得不太实用,但是 依然有方法来处理这个问题: %1 %2:代表一个单词一个变数。 %-1 %-2:代表第n个单词後方的所有单词为一个变数。 基於上方的设定,只要将可能将数个单词设为单一变数的部份,放 到最後即能解决这个问题。以下是系列型指令spiriten trading blarket的设定范例: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- spiriten(灵力武器): Name:spn Commands: #case %ismember(%1,t|c|n) {spiriten -clone %2} {spiriten -copy %2} {spiriten -name %-2} {spiriten -remove} 输出格式: spn t sword >> spiriten -clone sword spn c 玩家 >> spiriten -clone 玩家 spn n 名字 >> spiriten -name 名字 spn >> spiriten -remove 说明: 以 spn t sword 为例:%1为t,%2为sword,t代入commands里的函数ismember去比对, 决定要执行哪个指令,所得结果为第一道指令spiriten -clone %2,%2为sword,所以 输出指令为spiriten -clone sword。 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- blarket(黑市拍卖)Name:blk Commands: #case %ismember(%1,b|n|l|f|m|r) {blarket -bet %2} {blarket -abort} {blarket -view %-2} {blarket -floor %2} {blarket -mod%2} {blarket -remark %-3 blarket -mod1 blarket -floor %2} {#say commands error} #abort B:下标 N:弃标 L:看拍卖品 F:设定起标价 M:设定拍卖模式 R:标记商品 输出格式: blarket b 金额  >> blarket -bet 金额 blarket n >> blarket -abort blarket l 商品 >> blarket -view 商品 blarket f 金额 >> blarket -floor 金额 blarket m 1 or 2 >> blarket -mod1 or blarket -mod2 blarket r 金额 商品 >> blarket -remark 商品 blarket -mod1 blarket -floor 金额 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- trading(交易): Name:tra Commands: #case %ismember(%1,b|s|a|n) {trading %3 int to %2 with %-4 trading -agree %2} {trading %-4 to %2 with %3 trading -agree %2} {trading -agree %2} {trading -repulse %2} {#say error} 输出格式: tra b 玩家 价金 物品 >> trading 价金 int to 玩家 with 物品 trading -agree 玩家 tra s 玩家 价金 物品 >> trading 物品 to 玩家 with 价金 int trading -agree 玩家 tra a 玩家 >> trading -agree 玩家 tra n 玩家 >> trading -repulse 玩家 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- --



※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.132.196.45







like.gif 您可能会有兴趣的文章
icon.png[问题/行为] 猫晚上进房间会不会有憋尿问题
icon.pngRe: [闲聊] 选了错误的女孩成为魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一张
icon.png[心得] EMS高领长版毛衣.墨小楼MC1002
icon.png[分享] 丹龙隔热纸GE55+33+22
icon.png[问题] 清洗洗衣机
icon.png[寻物] 窗台下的空间
icon.png[闲聊] 双极の女神1 木魔爵
icon.png[售车] 新竹 1997 march 1297cc 白色 四门
icon.png[讨论] 能从照片感受到摄影者心情吗
icon.png[狂贺] 贺贺贺贺 贺!岛村卯月!总选举NO.1
icon.png[难过] 羡慕白皮肤的女生
icon.png阅读文章
icon.png[黑特]
icon.png[问题] SBK S1安装於安全帽位置
icon.png[分享] 旧woo100绝版开箱!!
icon.pngRe: [无言] 关於小包卫生纸
icon.png[开箱] E5-2683V3 RX480Strix 快睿C1 简单测试
icon.png[心得] 苍の海贼龙 地狱 执行者16PT
icon.png[售车] 1999年Virage iO 1.8EXi
icon.png[心得] 挑战33 LV10 狮子座pt solo
icon.png[闲聊] 手把手教你不被桶之新手主购教学
icon.png[分享] Civic Type R 量产版官方照无预警流出
icon.png[售车] Golf 4 2.0 银色 自排
icon.png[出售] Graco提篮汽座(有底座)2000元诚可议
icon.png[问题] 请问补牙材质掉了还能再补吗?(台中半年内
icon.png[问题] 44th 单曲 生写竟然都给重复的啊啊!
icon.png[心得] 华南红卡/icash 核卡
icon.png[问题] 拔牙矫正这样正常吗
icon.png[赠送] 老莫高业 初业 102年版
icon.png[情报] 三大行动支付 本季掀战火
icon.png[宝宝] 博客来Amos水蜡笔5/1特价五折
icon.pngRe: [心得] 新鲜人一些面试分享
icon.png[心得] 苍の海贼龙 地狱 麒麟25PT
icon.pngRe: [闲聊] (君の名は。雷慎入) 君名二创漫画翻译
icon.pngRe: [闲聊] OGN中场影片:失踪人口局 (英文字幕)
icon.png[问题] 台湾大哥大4G讯号差
icon.png[出售] [全国]全新千寻侘草LED灯, 水草

请输入看板名称,例如:iOS站内搜寻

TOP