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