GetGroupCount » 历史记录 » 版本 1
tejie, 2024-07-02 17:56
| 1 | 1 | tejie | h4. _*{color:green}getGroupCount*_ |
|---|---|---|---|
| 2 | |||
| 3 | 获取队长边上指定范围内成员数量 |
||
| 4 | |||
| 5 | 格式: |
||
| 6 | |命令名|参数1|参数2| |
||
| 7 | |getGroupCount|返回变量|距队长范围| |
||
| 8 | |||
| 9 | 说明: |
||
| 10 | |参数1 |\2.返回变量| |
||
| 11 | |/2^.参数2|缺省或0|返回全部队员数量| |
||
| 12 | |不为0|返回队长距离内队员数量| |
||
| 13 | |||
| 14 | - |
||
| 15 | - |
||
| 16 | |||
| 17 | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
| 18 | |||
| 19 | bq. [@示例] |
||
| 20 | #if |
||
| 21 | [[checkGroupLeader]] |
||
| 22 | #act |
||
| 23 | *{color:green}getGroupCount* P1 |
||
| 24 | [[print]] <notextile>你当前组队的队友有<$STR(P1)>人</notextile> |
||
| 25 | <notextile></notextile> |
||
| 26 | *{color:green}getGroupCount* P1 5 |
||
| 27 | [[print]] <notextile>队长5格范围内当前组队的队友有<$STR(P1)>人</notextile> |