Lua接口/服务端/TIsMissionRoundable:修订间差异
来自雪舞天龙知识库
跳到导航跳到搜索
整理当前服务端 Lua 接口:注册名称、参数、返回值与调用说明 |
维护服务端 Lua 接口:核对参数、返回值、边界条件与调用示例 |
||
| (未显示2个用户的5个中间版本) | |||
| 第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">返回任务是否允许循环完成;进入区域和护送任务固定返回 0。</div> | ||
== Lua 调用 == | == Lua 调用 == | ||
<pre | <pre>TIsMissionRoundable(missionIndex)</pre> | ||
服务端脚本中共出现 9 处调用,实参个数出现过:1 个(9 处)。 | |||
实现位于 <code>LuaFnTbl_MissionTable.h</code>。 | |||
== 参数 == | == 参数 == | ||
{| class="wikitable | {| class="wikitable" | ||
! scope="col" | ! scope="col" class="lua-w11" | 序号 | ||
! scope="col" | ! scope="col" class="lua-w36" | 参数 / 类型 | ||
! scope="col | ! scope="col" | 说明 | ||
|- | |- | ||
| 1 | |||
| <code>missionIndex</code><br /><span class="lua-muted"><code>number</code></span> | |||
| | | 任务条目索引。<br /><span class="lua-muted">脚本中的实参:<code>missionIndex</code>(9 处)</span> | ||
|} | |} | ||
== 返回值 == | == 返回值 == | ||
返回 1 个值。返回类型包括 <code | 返回 1 个值。返回类型包括 <code>number</code>。明确的固定返回组合包括 <code>-1</code>。 | ||
< | == 调用示例 == | ||
以下取自随包服务端脚本的真实调用,可对照上方参数表确认参数顺序: | |||
<pre>-- event/EventScript/event_lootitem.lua | |||
TIsMissionRoundable(missionIndex)</pre> | |||
</div> | </div> | ||
2026年10月27日 (二) 12:31的最新版本
返回任务是否允许循环完成;进入区域和护送任务固定返回 0。
Lua 调用
TIsMissionRoundable(missionIndex)
服务端脚本中共出现 9 处调用,实参个数出现过:1 个(9 处)。
实现位于 LuaFnTbl_MissionTable.h。
参数
| 序号 | 参数 / 类型 | 说明 |
|---|---|---|
| 1 | missionIndexnumber
|
任务条目索引。 脚本中的实参: missionIndex(9 处)
|
返回值
返回 1 个值。返回类型包括 number。明确的固定返回组合包括 -1。
调用示例
以下取自随包服务端脚本的真实调用,可对照上方参数表确认参数顺序:
-- event/EventScript/event_lootitem.lua TIsMissionRoundable(missionIndex)