CheckGuildMaster » 历史记录 » 版本 1
yangdefeng, 2022-05-09 12:14
1 | 1 | yangdefeng | _*%{color:green}checkGuildMaster%*_ |
---|---|---|---|
2 | 检测当前角色是否是指定行会的会长 |
||
3 | |||
4 | 标签:命令定义|checkGuildMaster |
||
5 | |||
6 | *格式* |
||
7 | |命令名 |参数1 | |
||
8 | |checkGuildMaster |字符串 | |
||
9 | |||
10 | *说明* |
||
11 | 参数1: 待比较的字符串 |
||
12 | |||
13 | - |
||
14 | - |
||
15 | |||
16 | *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
17 | |||
18 | |||
19 | bq. [<notextile>@</notextile>main] |
||
20 | #say |
||
21 | <创建/<notextile>@@</notextile>inputString1>\\ \\ |
||
22 | <检测是否指定行会会长/<notextile>@@</notextile>inputString2>\\ \\ |
||
23 | |
||
24 | [<notextile>@</notextile>inputString1] |
||
25 | #if |
||
26 | [[checkGuildName]] s1 |
||
27 | #act |
||
28 | [[sendMsg]] 6 该行会名称已被占用 |
||
29 | break |
||
30 | |
||
31 | #if |
||
32 | not [[haveGuild]] |
||
33 | #act |
||
34 | [[addGuild]] <$str(s1)> self |
||
35 | sendMsg 6 创建行会【<$guildName>】 |
||
36 | #elseAct |
||
37 | [[sendMsg]] 6 角色已在行会【<$guildName>】中 |
||
38 | |
||
39 | [<notextile>@</notextile>inputString2] |
||
40 | #if |
||
41 | *%{color:green}checkGuildMaster%* <$str(s2)> |
||
42 | #act |
||
43 | sendMsg 6 当前角色是【<$str(s2)>】行会会长 |
||
44 | #elseAct |
||
45 | sendMsg 6 当前角色不是【<$str(s2)>】行会会长 |