CheckTitle » 历史记录 » 版本 5
yangdefeng, 2023-07-14 20:40
1 | 4 | yangdefeng | h4. _*%{color:green}checkTitle%*_ |
---|---|---|---|
2 | |||
3 | 1 | machenhe | 检测角色是否已获得指定称号 |
4 | |||
5 | 标签:命令定义|checkTitle |
||
6 | |||
7 | *格式* |
||
8 | |_.命令名 |_.参数1 | |
||
9 | |checkTitle|称号名称 | |
||
10 | |||
11 | *说明* |
||
12 | * 参数1: 道具表中定义的某个称号道具 |
||
13 | 以下表中,字段StdMode为70或71的道具 |
||
14 | 3 | yangdefeng | ..\Mud2\DB\StdItems.CSV |
15 | 1 | machenhe | |
16 | - |
||
17 | - |
||
18 | |||
19 | 4 | yangdefeng | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
20 | 1 | machenhe | |
21 | bq. [<notextile>@</notextile>main] |
||
22 | #say |
||
23 | <添加称号/<notextile>@</notextile>添加称号>\\ \\ |
||
24 | <删除称号/<notextile>@</notextile>删除称号>\\ \\ |
||
25 | <检查称号数量/<notextile>@</notextile>检查称号数量>\\ \\ |
||
26 | |
||
27 | [<notextile>@</notextile>添加称号] |
||
28 | #if |
||
29 | 5 | yangdefeng | not *{color:green}checkTitle* 狂暴之力 |
30 | 1 | machenhe | #act |
31 | 5 | yangdefeng | [[conferTitle]] 狂暴之力 |
32 | [[sendTipsMsg]] 特戒提示,获得了狂暴之力称号/scolor=222 |
||
33 | 1 | machenhe | #elseAct |
34 | 5 | yangdefeng | [[sendTipsMsg]] 特戒提示, 已经有了该称号/scolor=222 |
35 | 1 | machenhe | |
36 | [<notextile>@</notextile>删除称号] |
||
37 | #if |
||
38 | *%{color:green}checkTitle%* 狂暴之力 |
||
39 | #act |
||
40 | 5 | yangdefeng | [[depriveTitle]] 狂暴之力 |
41 | [[sendTipsMsg]] 特戒提示,删除了狂暴之力称号/scolor=222 |
||
42 | 1 | machenhe | #elseAct |
43 | 5 | yangdefeng | [[sendTipsMsg]] 特戒提示, 你没有该称号,不用删除/scolor=222 |
44 | 1 | machenhe | |
45 | [<notextile>@</notextile>检查称号数量] |
||
46 | #if |
||
47 | 5 | yangdefeng | [[checkFengHaoCount]] > 0 |
48 | 1 | machenhe | #act |
49 | 5 | yangdefeng | [[messageBox]] 你最少有1个称号 |
50 | 1 | machenhe | #elseAct |
51 | 5 | yangdefeng | [[messageBox]] 你1个称号也没有 |