项目

一般

简介

GetGuildList » 历史记录 » 版本 4

tejie, 2025-07-24 12:11

1 2 tejie
h4. _*%{color:green}getGuildList%*_
2 1 yangdefeng
3 2 tejie
获取当前服务器的全部行会列表,返回以","分隔的字符串
4 1 yangdefeng
5 2 tejie
标签:命令定义^getGuildList
6
7 1 yangdefeng
*格式*
8
|命令名		|参数1   |
9
|getGuildList	|返回变量|
10
11
*说明*
12 4 tejie
|参数1|返回行会名称列表变量
13
*变量类型为s$时*
14
返回以","分隔的行会名称字符串
15
*变量类型为L$时*
16
返回[[多元数组元素变量|数组列表]]|
17 1 yangdefeng
18
-
19
-
20
21
*%{color:deepskyblue}特戒引擎脚本示例:%*
22
23
bq. [<notextile>@</notextile>main]
24
#say
25
<创建行会/<notextile>@</notextile>创建>\\ \\
26
<解散行会/<notextile>@</notextile>解散>\\ \\
27
<打开行会界面/<notextile>@</notextile>行会界面>\\ \\
28
<全服行会列表/<notextile>@</notextile>行会列表>\\ \\
29
&nbsp;
30
[<notextile>@</notextile>创建]
31
#if
32
not [[haveGuild]]
33
#act
34
%{color:lightGrey};创建行会,以玩家角色名为行会名称%
35
[[addGuild]] <$userName> self
36
[[sendTipsMsg]] 行会创建成功/fcolor=222
37
#elseAct
38
sendTipsMsg 你有组织,不能创建/fcolor=222
39
&nbsp;
40
[<notextile>@</notextile>解散]
41
#if
42
[[isGuildMaster]]
43
#act
44
[[disband]]
45
sendTipsMsg 你解散了行会/fcolor=222
46
#elseAct
47
sendTipsMsg 你不是会长/fcolor=222
48
&nbsp;
49
[<notextile>@</notextile>行会界面]
50
#if
51
#act
52
[[openSysUi]] 3
53
&nbsp;
54
[<notextile>@</notextile>行会列表]
55
#act
56
*%{color:green}getGuildList%* s$行会列表
57
print <$str(s$行会列表)>
58
sendTipsMsg 请在控制台查看/fcolor=222