项目

一般

简介

GetGuildScale » 历史记录 » 版本 1

yangdefeng, 2022-05-09 13:56

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