ConferTitle » 历史记录 » 修订 3
修订 2 (tejie, 2024-06-14 17:07) → 修订 3/5 (tejie, 2024-06-14 17:23)
_*%{color:green}conferTitle%*_
赋予角色指定称号
标签:命令定义|conferTitle>conferTitle
*格式*
|_.命令名 |_.参数1 |_.参数2 |
|conferTitle |称号名称 |是否激活 |
*说明*
* 参数1: 道具表中定义的某个称号道具
以下表中,字段StdMode为70或71的道具
..\Mud2\DB\StdItems.CSV ..\\Mud2\\DB\\StdItems.CSV
%{color:deepPink}给予称号时,请确认对应称号道具存在%
* 参数2 是否激活
|缺省或1|激活|
|不为1(比如0)|不激活|
-
-
*%{color:deepskyblue}特戒引擎脚本示例:%*
bq. [<notextile>@</notextile>main]
#say
<添加称号/<notextile>@</notextile>添加称号>\\ \\
<删除称号/<notextile>@</notextile>删除称号>\\ \\
<检查称号数量/<notextile>@</notextile>检查称号数量>\\ \\
[<notextile>@</notextile>添加称号]
#if
not [[checkTitle]] 狂暴之力
#act
*%{color:green}conferTitle%* 狂暴之力
[[sendTipsMsg]] 特戒提示,获得了狂暴之力称号/scolor=222
#elseAct
[[sendTipsMsg]] 特戒提示, 已经有了该称号/scolor=222
[<notextile>@</notextile>删除称号]
#if
[[checkTitle]] 狂暴之力
#act
[[depriveTitle]] 狂暴之力
[[sendTipsMsg]] 特戒提示,删除了狂暴之力称号/scolor=222
#elseAct
[[sendTipsMsg]] 特戒提示, 你没有该称号,不用删除/scolor=222
[<notextile>@</notextile>检查称号数量]
#if
[[checkFengHaoCount]] > 0
#act
[[messageBox]] 你最少有1个称号
#elseAct
[[messageBox]] 你1个称号也没有