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