GetGuildMaster » 历史记录 » 修订 2
修订 1 (yangdefeng, 2022-05-09 11:41) → 修订 2/5 (tejie, 2025-07-03 15:15)
h4. _*%{color:green}getGuildMaster%*_ 获得指定行会会长名称 标签:命令定义^getGuildMaster 标签:命令定义|getGuildMaster *格式* |命令名 |参数1 |参数2 | |getGuildMaster |待查询行会名 |返回变量 | *说明* |参数1|待查询行会名字符串| |参数2|返回存储会长名称的变量| 参数1: 待查询行会名字符串 参数2: 返回存储会长名称的变量 - - *%{color:deepskyblue}特戒引擎脚本示例:%* bq. [<notextile>@</notextile>main] #say <创建行会/<notextile>@@</notextile>inputString0>\\ \\ <解散行会/<notextile>@</notextile>解散行会>\\ \\ <查询指定行会会长/<notextile>@@</notextile>inputString1>\\ \\ [<notextile>@</notextile>inputString0] #if [[checkGuildName]] s0 #act [[sendMsg]] 6 该行会名称已被占用 break #if not [[haveGuild]] #act [[addGuild]] <$str(s0)> self sendMsg 6 创建行会【<$guildName>】 #elseAct sendMsg 6 角色已在行会【<$guildName>】中 [<notextile>@</notextile>解散行会] #if not [[isGuildMaster]] #act sendMsg 6 角色不是行会会长 break #if #act mov s$行会名称 <$guildName> disband sendMsg 6 解散了行会【<$str(s$行会名称)>】 [<notextile>@</notextile>inputString1] #if not [[checkOfGuild]] <$str(s1)> #act sendMsg 6 没有这个行会 break #if #act *%{color:green}getGuildMaster%* <$str(s1)> s$行会会长 sendMsg 6 【<$str(s1)>】行会会长是:<$str(s$行会会长)>