ConferTitle » 历史记录 » 修订 2
修订 1 (machenhe, 2022-05-06 13:48) → 修订 2/5 (tejie, 2024-06-14 17:07)
_*%{color:green}conferTitle%*_
赋予角色指定称号
标签:命令定义|conferTitle>conferTitle 标签:命令定义|conferTitle
*格式*
|_.命令名 |_.参数1 |_.参数2 |
|conferTitle |称号名称 |是否激活 |
*说明*
* 参数1: 道具表中定义的某个称号道具
以下表中,字段StdMode为70或71的道具
..\\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]] checkTitle 狂暴之力
#act
*%{color:green}conferTitle%* 狂暴之力
[[sendTipsMsg]] sendTipsMsg 特戒提示,获得了狂暴之力称号/scolor=222
#elseAct
[[sendTipsMsg]] sendTipsMsg 特戒提示, 已经有了该称号/scolor=222
[<notextile>@</notextile>删除称号]
#if
[[checkTitle]] checkTitle 狂暴之力
#act
[[depriveTitle]] depriveTitle 狂暴之力
[[sendTipsMsg]] sendTipsMsg 特戒提示,删除了狂暴之力称号/scolor=222
#elseAct
[[sendTipsMsg]] sendTipsMsg 特戒提示, 你没有该称号,不用删除/scolor=222
[<notextile>@</notextile>检查称号数量]
#if
[[checkFengHaoCount]] checkFengHaoCount > 0
#act
[[messageBox]] messageBox 你最少有1个称号
#elseAct
[[messageBox]] messageBox 你1个称号也没有