项目

一般

简介

ConferTitle » 历史记录 » 版本 5

tejie, 2025-08-14 18:25

1 4 tejie
h4. _*{color:green}conferTitle*_
2
3 1 machenhe
赋予角色指定称号
4
5 5 tejie
标签:命令定义^conferTitle
6 1 machenhe
7
*格式*
8 2 tejie
|_.命令名    |_.参数1  |_.参数2  |
9
|conferTitle |称号名称 |是否激活 |
10 1 machenhe
11
*说明*
12 5 tejie
|^.参数1|道具表中定义的某个称号道具
13 3 tejie
以下表中,字段StdMode为70或71的道具
14 1 machenhe
..\Mud2\DB\StdItems.CSV
15 5 tejie
%{color:deepPink}给予称号时,请确认对应称号道具存在%|
16
|^.参数2|是否激活称号
17
缺省或1  激活称号(会在角色模型名称下方显示)
18
不为1(比如0)不激活|
19 2 tejie
20 1 machenhe
-
21
-
22
23 4 tejie
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
24 1 machenhe
25
bq. [<notextile>@</notextile>main]
26
#say
27
<添加称号/<notextile>@</notextile>添加称号>\\ \\
28
<删除称号/<notextile>@</notextile>删除称号>\\ \\
29
<检查称号数量/<notextile>@</notextile>检查称号数量>\\ \\
30
&nbsp;
31
[<notextile>@</notextile>添加称号]
32
#if
33 2 tejie
not [[checkTitle]] 狂暴之力
34 1 machenhe
#act
35
*%{color:green}conferTitle%* 狂暴之力
36 2 tejie
[[sendTipsMsg]] 特戒提示,获得了狂暴之力称号/scolor=222
37 1 machenhe
#elseAct
38 2 tejie
[[sendTipsMsg]] 特戒提示, 已经有了该称号/scolor=222
39 1 machenhe
&nbsp;
40
[<notextile>@</notextile>删除称号]
41
#if
42 2 tejie
[[checkTitle]] 狂暴之力
43 1 machenhe
#act
44 2 tejie
[[depriveTitle]] 狂暴之力
45
[[sendTipsMsg]] 特戒提示,删除了狂暴之力称号/scolor=222
46 1 machenhe
#elseAct
47 2 tejie
[[sendTipsMsg]] 特戒提示, 你没有该称号,不用删除/scolor=222
48 1 machenhe
&nbsp;
49
[<notextile>@</notextile>检查称号数量]
50
#if
51 2 tejie
[[checkFengHaoCount]] > 0
52 1 machenhe
#act
53 2 tejie
[[messageBox]] 你最少有1个称号
54 1 machenhe
#elseAct
55 2 tejie
[[messageBox]] 你1个称号也没有