项目

一般

简介

GetGuildScale » 历史记录 » 修订 2

修订 1 (yangdefeng, 2022-05-09 13:56) → 修订 2/3 (tejie, 2025-07-03 14:14)

_*%{color:green}getGuildScale%*_ 
 获得指定行会当前总人数 

 标签:命令定义^getGuildScale 标签:命令定义|getGuildScale 

 *格式* 
 |命令名 		 |参数1 		 |参数2 		 | 
 |getGuildScale 	 |行会名字符串 	 |返回变量 	 | 

 *说明* 
 |参数1|待查询行会名字符串| 
 |参数2|返回变量存储当前行会人数| 参数1: 待查询行会名字符串 

 参数2: 返回变量存储当前行会人数 

 - 
 - 

 *%{color:deepskyblue}特戒引擎脚本示例:%* 


 bq. [<notextile>@</notextile>main] 
 #say 
 <创建行会/<notextile>@@</notextile>inputString0>\\ \\ 
 <加入行会/<notextile>@@</notextile>inputString1>\\ \\ 
 <查询行会人数/<notextile>@</notextile>行会人数查询>\\ \\ 
 &nbsp; 
 [<notextile>@</notextile>inputString0] 
 #if 
 [[checkGuildName]] s0 
 #act 
 [[sendMsg]] 6 该行会名称已被占用 
 break 
 &nbsp; 
 #if 
 not [[haveGuild]] 
 #act 
 [[addGuild]] <$str(s0)> self 
 sendMsg 6 创建行会【<$guildName>】 
 #elseAct 
 sendMsg 6 角色已在行会【<$guildName>】中 
 &nbsp; 
 [<notextile>@</notextile>inputString1] 
 #if 
 not checkGuildName s1 
 #act 
 sendMsg 6 没有这个行会 
 break 
 &nbsp; 
 #if 
 not haveGuild 
 #act 
 [[addGuildMember]] <$str(s1)> <$userName> 
 sendMsg 6 加入行会【<$guildName>】 
 #elseAct 
 sendMsg 6 角色已有行会,请先退出 
 &nbsp; 
 [<notextile>@</notextile>行会人数查询] 
 #if 
 haveGuild 
 #act 
 *%{color:green}getGuildScale%* <$guildName> n$行会人数 
 sendMsg 6 【<$guildName>】行会人数:<$str(n$行会人数)> 
 #elseAct 
 sendMsg 6 请先加入或创建一个行会