CheckGuildName » 历史记录 » 版本 1
yangdefeng, 2022-05-09 13:45
1 | 1 | yangdefeng | _*%{color:green}checkGuildName%*_ |
---|---|---|---|
2 | 检测指定字符串是否已创建过行会名称 |
||
3 | |||
4 | 标签:命令定义|checkGuildName |
||
5 | |||
6 | *格式* |
||
7 | |命令名 |参数1 | |
||
8 | |checkGuildName |字符串 | |
||
9 | |||
10 | *说明* |
||
11 | 参数1: 待检测的字符串 |
||
12 | |||
13 | - |
||
14 | - |
||
15 | |||
16 | *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
17 | |||
18 | bq. [@main] |
||
19 | #say |
||
20 | <创建行会/<notextile>@@</notextile>inputString1>\\ \\ |
||
21 | |
||
22 | [<notextile>@</notextile>inputString1] |
||
23 | #if |
||
24 | *%{color:green}checkGuildName%* s1 |
||
25 | #act |
||
26 | [[sendMsg]] 6 该行会名称已被占用 |
||
27 | break |
||
28 | |
||
29 | #if |
||
30 | not [[haveGuild]] |
||
31 | #act |
||
32 | [[addGuild]] <$str(s1)> self |
||
33 | sendMsg 6 创建行会【<$guildName>】 |
||
34 | #elseAct |
||
35 | sendMsg 6 角色已在行会【<$guildName>】中 |