GetGuildScale » 历史记录 » 版本 2
tejie, 2025-07-03 14:14
1 | 1 | yangdefeng | _*%{color:green}getGuildScale%*_ |
---|---|---|---|
2 | 获得指定行会当前总人数 |
||
3 | |||
4 | 2 | tejie | 标签:命令定义^getGuildScale |
5 | 1 | yangdefeng | |
6 | *格式* |
||
7 | |命令名 |参数1 |参数2 | |
||
8 | |getGuildScale |行会名字符串 |返回变量 | |
||
9 | |||
10 | *说明* |
||
11 | 2 | tejie | |参数1|待查询行会名字符串| |
12 | |参数2|返回变量存储当前行会人数| |
||
13 | 1 | yangdefeng | |
14 | - |
||
15 | - |
||
16 | |||
17 | *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
18 | |||
19 | |||
20 | bq. [<notextile>@</notextile>main] |
||
21 | #say |
||
22 | <创建行会/<notextile>@@</notextile>inputString0>\\ \\ |
||
23 | <加入行会/<notextile>@@</notextile>inputString1>\\ \\ |
||
24 | <查询行会人数/<notextile>@</notextile>行会人数查询>\\ \\ |
||
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>inputString1] |
||
42 | #if |
||
43 | not checkGuildName s1 |
||
44 | #act |
||
45 | sendMsg 6 没有这个行会 |
||
46 | break |
||
47 | |
||
48 | #if |
||
49 | not haveGuild |
||
50 | #act |
||
51 | [[addGuildMember]] <$str(s1)> <$userName> |
||
52 | sendMsg 6 加入行会【<$guildName>】 |
||
53 | #elseAct |
||
54 | sendMsg 6 角色已有行会,请先退出 |
||
55 | |
||
56 | [<notextile>@</notextile>行会人数查询] |
||
57 | #if |
||
58 | haveGuild |
||
59 | #act |
||
60 | *%{color:green}getGuildScale%* <$guildName> n$行会人数 |
||
61 | sendMsg 6 【<$guildName>】行会人数:<$str(n$行会人数)> |
||
62 | #elseAct |
||
63 | sendMsg 6 请先加入或创建一个行会 |