GetGuildPower » 历史记录 » 版本 1
yangdefeng, 2022-05-09 13:55
1 | 1 | yangdefeng | _*%{color:green}getGuildPower%*_ |
---|---|---|---|
2 | 获得指定行会当前总战力 |
||
3 | |||
4 | 标签:命令定义|getGuildPower |
||
5 | |||
6 | *格式* |
||
7 | |命令名 |参数1 |参数2 | |
||
8 | |getGuildPower |行会名字符串 |返回变量 | |
||
9 | |||
10 | *说明* |
||
11 | 参数1: 待查询行会名字符串 |
||
12 | |||
13 | 参数2: 返回变量存储当前行会总战力 |
||
14 | |||
15 | - |
||
16 | - |
||
17 | |||
18 | *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
19 | |||
20 | |||
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}getGuildPower%* <$guildName> n$行会总战力 |
||
63 | sendMsg 6 【<$guildName>】行会总战力:<$str(n$行会总战力)> |
||
64 | #elseAct |
||
65 | sendMsg 6 请先加入或创建一个行会 |