GetGuildMaster » 历史记录 » 版本 1
yangdefeng, 2022-05-09 11:41
1 | 1 | yangdefeng | _*%{color:green}getGuildMaster%*_ |
---|---|---|---|
2 | 获得指定行会会长名称 |
||
3 | |||
4 | 标签:命令定义|getGuildMaster |
||
5 | |||
6 | *格式* |
||
7 | |命令名 |参数1 |参数2 | |
||
8 | |getGuildMaster |待查询行会名 |返回变量 | |
||
9 | |||
10 | *说明* |
||
11 | 参数1: 待查询行会名字符串 |
||
12 | |||
13 | 参数2: 返回存储会长名称的变量 |
||
14 | |||
15 | - |
||
16 | - |
||
17 | |||
18 | *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
19 | |||
20 | bq. [<notextile>@</notextile>main] |
||
21 | #say |
||
22 | <创建行会/<notextile>@@</notextile>inputString0>\\ \\ |
||
23 | <解散行会/<notextile>@</notextile>解散行会>\\ \\ |
||
24 | <查询指定行会会长/<notextile>@@</notextile>inputString1>\\ \\ |
||
25 | |
||
26 | [<notextile>@</notextile>inputString0] |
||
27 | #if |
||
28 | [[checkGuildName]] s0 |
||
29 | #act |
||
30 | [[sendMsg]] 6 该行会名称已被占用 |
||
31 | break |
||
32 | |
||
33 | #if |
||
34 | not [[haveGuild]] |
||
35 | #act |
||
36 | [[addGuild]] <$str(s0)> self |
||
37 | sendMsg 6 创建行会【<$guildName>】 |
||
38 | #elseAct |
||
39 | sendMsg 6 角色已在行会【<$guildName>】中 |
||
40 | |
||
41 | [<notextile>@</notextile>解散行会] |
||
42 | #if |
||
43 | not [[isGuildMaster]] |
||
44 | #act |
||
45 | sendMsg 6 角色不是行会会长 |
||
46 | break |
||
47 | |
||
48 | #if |
||
49 | #act |
||
50 | mov s$行会名称 <$guildName> |
||
51 | disband |
||
52 | sendMsg 6 解散了行会【<$str(s$行会名称)>】 |
||
53 | |
||
54 | [<notextile>@</notextile>inputString1] |
||
55 | #if |
||
56 | not [[checkOfGuild]] <$str(s1)> |
||
57 | #act |
||
58 | sendMsg 6 没有这个行会 |
||
59 | break |
||
60 | |
||
61 | #if |
||
62 | #act |
||
63 | *%{color:green}getGuildMaster%* <$str(s1)> s$行会会长 |
||
64 | sendMsg 6 【<$str(s1)>】行会会长是:<$str(s$行会会长)> |