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