您当前的位置:首页 > 传奇技术

NPC支持自定义字符与数字功能

本文出处:网游动力作者:本站发布时间:2010-07-31阅读次数:

介绍:
   @@InPutInteger(X) 针对个人数字变量M操作 (X)取值范围:数字(0~99)
   @@InPutString(X) 针对个人字符变量S操作 (X)取值范围:数字(0~99)
   @@InPutString 若输入字符包含于过滤列表(GuildRankNameFilter.txt)中.则跳到@IsInFilterList执行

注意:
    执行时必须加DelayGoto,DelayGoto能有效过滤多重操作,比如网络延迟时连续点NPC可以不断执行同一个节

示例:

;==========================================
(@@InPutInteger, @@InPutString)
[@Main]
<输入数字/@@InPutInteger5>
<输入字符/@@InPutString5>
<关闭/@Exit>
[@@InPutInteger5]
#If
CheckLevelEx > 0
#Act
DelayGoto 1 ~InPutInteger5
[~InPutInteger5]
#If
CheckLevelEX > 0
#Say
你输入的数字是:<$STR(M5)>
[@@InPutString5]
#If
CheckLevelEx > 0
#Act
DelayGoto 1 ~InPutString5
[~InPutString5]
#If
CheckLevelEX > 0
#Say
你输入的字符是:<$STR(S5)>
;示例脚本.仅简单表达意思.!
[@IsInFilterList]
#If
CheckLevelEx > 0
#Act
MessageBox 输入数据中包含了非法字符.请重新编辑
Goto @Main
Break