Lua接口/服务端/ReleaseMonsterGroup:修订间差异
来自天龙知识库
跳到导航跳到搜索
维护服务端 Lua 接口:核对参数、返回值、边界条件与调用示例 |
维护服务端 Lua 接口:核对参数、返回值、边界条件与调用示例 |
||
| 第1行: | 第1行: | ||
__NOTOC__ | __NOTOC__ | ||
<div class="lua-reference | <div class="lua-reference"> | ||
[[首页|首页]] · [[Lua接口/服务端函数索引|服务端接口]] · [[Lua接口/服务端函数索引/怪物与掉落|怪物与掉落]] · [[Lua接口/服务端调用约定|调用约定]] | [[首页|首页]] · [[Lua接口/服务端函数索引|服务端接口]] · [[Lua接口/服务端函数索引/怪物与掉落|怪物与掉落]] · [[Lua接口/服务端调用约定|调用约定]] | ||
<div | <div class="lua-lead lua-rule">释放指定的怪物编组。</div> | ||
== Lua 调用 == | == Lua 调用 == | ||
<pre | <pre>ReleaseMonsterGroup(sceneId, groupId)</pre> | ||
服务端脚本中共出现 3 处调用,实参个数出现过:2 个(3 处)。 | 服务端脚本中共出现 3 处调用,实参个数出现过:2 个(3 处)。 | ||
实现位于 <code | 实现位于 <code>LuaFnTbl_Monster.h</code> 第 1320 行,注册表第 113 行。 | ||
== 参数 == | == 参数 == | ||
{| class="wikitable | {| class="wikitable" | ||
! scope="col" | ! scope="col" class="lua-w11" | 序号 | ||
! scope="col" | ! scope="col" class="lua-w36" | 参数 / 类型 | ||
! scope="col | ! scope="col" | 说明 | ||
|- | |- | ||
| 1 | |||
| <code>sceneId</code><br /><span class="lua-muted"><code>number</code></span> | |||
| 当前调用所在的场景 ID。<br /><span class="lua-muted">脚本中的实参:<code>sceneId</code>(3 处)</span> | |||
|- | |- | ||
| 2 | |||
| <code>groupId</code><br /><span class="lua-muted"><code>number</code></span> | |||
| 分组编号。<br /><span class="lua-muted">脚本中的实参:<code>x113007_g_GroupId</code>、<code>x200005_g_Groupid</code>、<code>x200022_g_GroupId</code></span> | |||
|} | |} | ||
== 返回值 == | == 返回值 == | ||
返回 1 个值。返回类型包括 <code | 返回 1 个值。返回类型包括 <code>number</code>。明确的固定返回组合包括 <code>-1</code>。 | ||
== 脚本中的调用 == | == 脚本中的调用 == | ||
以下是服务端脚本里的真实调用点,按实参形态去重后列出 3 条。这些调用取自随包发布的脚本,可用于确认参数顺序与实际传入的值;它们不代表该写法在当前版本仍然有效。 | 以下是服务端脚本里的真实调用点,按实参形态去重后列出 3 条。这些调用取自随包发布的脚本,可用于确认参数顺序与实际传入的值;它们不代表该写法在当前版本仍然有效。 | ||
<pre | <pre>-- event/juqing/juxianzhuang_03.lua | ||
ReleaseMonsterGroup(sceneId, x200022_g_GroupId) | ReleaseMonsterGroup(sceneId, x200022_g_GroupId) | ||
2026年9月19日 (六) 16:54的版本
释放指定的怪物编组。
Lua 调用
ReleaseMonsterGroup(sceneId, groupId)
服务端脚本中共出现 3 处调用,实参个数出现过:2 个(3 处)。
实现位于 LuaFnTbl_Monster.h 第 1320 行,注册表第 113 行。
参数
| 序号 | 参数 / 类型 | 说明 |
|---|---|---|
| 1 | sceneIdnumber
|
当前调用所在的场景 ID。 脚本中的实参: sceneId(3 处)
|
| 2 | groupIdnumber
|
分组编号。 脚本中的实参: x113007_g_GroupId、x200005_g_Groupid、x200022_g_GroupId
|
返回值
返回 1 个值。返回类型包括 number。明确的固定返回组合包括 -1。
脚本中的调用
以下是服务端脚本里的真实调用点,按实参形态去重后列出 3 条。这些调用取自随包发布的脚本,可用于确认参数顺序与实际传入的值;它们不代表该写法在当前版本仍然有效。
-- event/juqing/juxianzhuang_03.lua ReleaseMonsterGroup(sceneId, x200022_g_GroupId) -- event/juqing/wanjiegu_05.lua ReleaseMonsterGroup(sceneId, x200005_g_Groupid) -- obj/juqing_05/luoyang_area.lua ReleaseMonsterGroup(sceneId, x113007_g_GroupId)