找回密码
 立即注册
查看: 115|回复: 0

[技术资源] NPC支持自定义字符与数字功能

[复制链接]

0

威望

8500

元宝

1万

金币

VIP会员

积分
12647
逍遥MIR 发表于 2024-6-1 20:33:07 | 显示全部楼层 |阅读模式
介绍:
   @@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
本楼点评(0) 收起
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|小黑屋|逍遥版本库

GMT+8, 2024-9-19 09:53 , Processed in 0.055516 second(s), 30 queries .

Powered by XyBbk! X3.5

Copyright © 2001-2023, XyBbk Cloud.

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