Lua接口/客户端函数索引/TargetPet:修订间差异

来自天龙知识库
跳到导航跳到搜索
雪舞留言 | 贡献
新建客户端 Lua 接口页:全局函数、对象方法、窗口操作与客户端事件
Waylee留言 | 贡献
新建客户端 Lua 接口页:全局函数、对象方法、窗口操作与客户端事件
 
(未显示1个用户的3个中间版本)
第1行: 第1行:
__NOTOC__
__NOTOC__
<div class="lua-reference" style="max-width:1200px;margin:0 auto;line-height:1.8;color:#29343a;font-family:Arial,'Microsoft YaHei','PingFang SC',sans-serif;letter-spacing:0;overflow-wrap:anywhere;">
<div class="lua-reference">
[[首页|首页]] · [[Lua接口/客户端函数索引|客户端接口]] · [[Lua接口/客户端函数索引/TargetPet|TargetPet]] · [[Lua接口/客户端窗口操作|窗口操作]] · [[Lua接口/客户端事件|客户端事件]]
[[首页|首页]] · [[Lua接口/客户端函数索引|客户端接口]] · [[Lua接口/客户端函数索引/TargetPet|TargetPet]] · [[Lua接口/客户端窗口操作|窗口操作]] · [[Lua接口/客户端事件|客户端事件]]


<div style="padding:14px 0;border-top:3px solid #287568;">
<div class="lua-lead">
<div role="heading" aria-level="2" style="font-size:22px;font-weight:bold;color:#193d37;">TargetPet 对象方法</div>
<div role="heading" aria-level="2" class="lua-h1">TargetPet 对象方法</div>
<div style="margin-top:6px;color:#657078;">实现类 <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet</code> · 48 个方法</div>
<div class="lua-sub">实现类 <code>TargetPet</code> · 48 个方法</div>
</div>
</div>
<div style="margin:10px 0;padding:10px 12px;border-left:3px solid #9a7940;background:#faf7f0;font-size:13px;color:#5f5136;">本页信息由客户端 C++ 绑定源码与 230 个界面脚本自动整理:参数取实现体的 <code>args[n]</code> 取值点(对象方法已扣除 <code>self</code> 占用的栈位),调用示例取脚本中的真实调用,<b>未经运行验证</b>;用途摘要按实现体归纳,仅供参考。</div>
== 调用方式 ==
== 调用方式 ==
对象方法以 <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:方法名(参数)</code> 形式调用,例如 <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:IsPresent()</code>。各方法的参数见下表,点方法名进入独立页。
对象方法以 <code>TargetPet:方法名(参数)</code> 形式调用,例如 <code>TargetPet:IsPresent()</code>。各方法的参数见下表,点方法名进入独立页。
对象名 <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet</code> 是全局对象,可直接使用。
对象名 <code>TargetPet</code> 是全局对象,可直接使用。


== 方法列表 ==
== 方法列表 ==
{| class="wikitable" style="width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px;"
{| class="wikitable"
! scope="col" style="text-align:left;background:#edf3f2;padding:8px;width:34%;" | 方法
! scope="col" class="lua-w46" | 方法
! scope="col" style="text-align:left;background:#edf3f2;padding:8px;" | 说明
! scope="col" | 说明
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:CopyMyPet(number)</code><br /><small style="color:#657078;">无返回值</small>
| <code>[[Lua接口/客户端/TargetPet/CopyMyPet|TargetPet:CopyMyPet]](number)</code><br /><small class="lua-muted">无返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetAIType()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetAIType|TargetPet:GetAIType]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetAttackTrait()</code><br /><small style="color:#657078;">2 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetAttackTrait|TargetPet:GetAttackTrait]]()</code><br /><small class="lua-muted">2 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetBasic()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetBasic|TargetPet:GetBasic]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetConsort()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetConsort|TargetPet:GetConsort]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetCriticalAttack()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetCriticalAttack|TargetPet:GetCriticalAttack]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetCriticalDefence()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetCriticalDefence|TargetPet:GetCriticalDefence]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetDeathWarrant()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetDeathWarrant|TargetPet:GetDeathWarrant]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetDex()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetDex|TargetPet:GetDex]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetDexAptitude()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetDexAptitude|TargetPet:GetDexAptitude]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetExp()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetExp|TargetPet:GetExp]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetFoodType()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetFoodType|TargetPet:GetFoodType]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetGrowRate()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetGrowRate|TargetPet:GetGrowRate]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetHappy()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetHappy|TargetPet:GetHappy]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetHP()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetHP|TargetPet:GetHP]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetID()</code><br /><small style="color:#657078;">3 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetID|TargetPet:GetID]]()</code><br /><small class="lua-muted">3 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetInt()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetInt|TargetPet:GetInt]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetIntAptitude()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetIntAptitude|TargetPet:GetIntAptitude]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetIsFighting()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetIsFighting|TargetPet:GetIsFighting]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetLevel()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetLevel|TargetPet:GetLevel]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetLoyalgGade()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetLoyalgGade|TargetPet:GetLoyalgGade]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetMagicAttack()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetMagicAttack|TargetPet:GetMagicAttack]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetMagicRecovery()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetMagicRecovery|TargetPet:GetMagicRecovery]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetMaxHP()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetMaxHP|TargetPet:GetMaxHP]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetMaxLife()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetMaxLife|TargetPet:GetMaxLife]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 实现体未体现明确的外部效果<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 实现体未体现明确的外部效果<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetMaxMP()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetMaxMP|TargetPet:GetMaxMP]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetMiss()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetMiss|TargetPet:GetMiss]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetMP()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetMP|TargetPet:GetMP]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetName()</code><br /><small style="color:#657078;">2 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetName|TargetPet:GetName]]()</code><br /><small class="lua-muted">2 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetNaturalLife()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetNaturalLife|TargetPet:GetNaturalLife]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetPetGrowLevel(number)</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetPetGrowLevel|TargetPet:GetPetGrowLevel]](number)</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetPetTypeName()</code><br /><small style="color:#657078;">2 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetPetTypeName|TargetPet:GetPetTypeName]]()</code><br /><small class="lua-muted">2 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetPF()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetPF|TargetPet:GetPF]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetPFAptitude()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetPFAptitude|TargetPet:GetPFAptitude]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetPhysicsAttack()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetPhysicsAttack|TargetPet:GetPhysicsAttack]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetPhysicsRecovery()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetPhysicsRecovery|TargetPet:GetPhysicsRecovery]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetPotential()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetPotential|TargetPet:GetPotential]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetSavvy()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetSavvy|TargetPet:GetSavvy]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetSex()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetSex|TargetPet:GetSex]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetShootProbability()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetShootProbability|TargetPet:GetShootProbability]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetSta()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetSta|TargetPet:GetSta]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetStaAptitude()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetStaAptitude|TargetPet:GetStaAptitude]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetStr()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetStr|TargetPet:GetStr]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetStrAptitude()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetStrAptitude|TargetPet:GetStrAptitude]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetTakeLevel()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetTakeLevel|TargetPet:GetTakeLevel]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetType()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/GetType|TargetPet:GetType]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:IsPresent()</code><br /><small style="color:#657078;">1 个返回值</small>
| <code>[[Lua接口/客户端/TargetPet/IsPresent|TargetPet:IsPresent]]()</code><br /><small class="lua-muted">1 个返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|-
|-
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:SetModel()</code><br /><small style="color:#657078;">无返回值</small>
| <code>[[Lua接口/客户端/TargetPet/SetModel|TargetPet:SetModel]]()</code><br /><small class="lua-muted">无返回值</small>
| style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | 读取客户端本地数据<br /><small style="color:#657078;">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
| 读取客户端本地数据<br /><small class="lua-muted">Game/Interface/GMGameInterface_Script_TargetPet.cpp</small>
|}
|}


== 多返回值方法 ==
== 多返回值方法 ==
* <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetAttackTrait</code> → 2 个返回值
* <code>TargetPet:GetAttackTrait</code> → 2 个返回值
* <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetID</code> → 3 个返回值
* <code>TargetPet:GetID</code> → 3 个返回值
* <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetName</code> → 2 个返回值
* <code>TargetPet:GetName</code> → 2 个返回值
* <code style="white-space:normal;overflow-wrap:anywhere;">TargetPet:GetPetTypeName</code> → 2 个返回值
* <code>TargetPet:GetPetTypeName</code> → 2 个返回值




== 脚本中的调用 ==
== 脚本中的调用 ==
以下是该对象在客户端界面脚本里的调用点(整理为注释,便于检索):
以下是该对象在客户端界面脚本里的调用点(整理为注释,便于检索):
<pre style="white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7;padding:12px;background:#f5f7f8;border:1px solid #dbe3e6;">-- TargetPet/TargetPet.lua
<pre>-- TargetPet/TargetPet.lua
-- TargetPet/TargetPet.lua
-- TargetPet/TargetPet.lua
-- TargetPet/TargetPet.lua
-- TargetPet/TargetPet.lua

2026年9月19日 (六) 17:00的最新版本

首页 · 客户端接口 · TargetPet · 窗口操作 · 客户端事件

TargetPet 对象方法
实现类 TargetPet · 48 个方法

调用方式

对象方法以 TargetPet:方法名(参数) 形式调用,例如 TargetPet:IsPresent()。各方法的参数见下表,点方法名进入独立页。 对象名 TargetPet 是全局对象,可直接使用。

方法列表

方法 说明
TargetPet:CopyMyPet(number)
无返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetAIType()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetAttackTrait()
2 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetBasic()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetConsort()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetCriticalAttack()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetCriticalDefence()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetDeathWarrant()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetDex()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetDexAptitude()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetExp()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetFoodType()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetGrowRate()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetHappy()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetHP()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetID()
3 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetInt()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetIntAptitude()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetIsFighting()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetLevel()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetLoyalgGade()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetMagicAttack()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetMagicRecovery()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetMaxHP()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetMaxLife()
1 个返回值
实现体未体现明确的外部效果
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetMaxMP()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetMiss()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetMP()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetName()
2 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetNaturalLife()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetPetGrowLevel(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetPetTypeName()
2 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetPF()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetPFAptitude()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetPhysicsAttack()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetPhysicsRecovery()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetPotential()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetSavvy()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetSex()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetShootProbability()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetSta()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetStaAptitude()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetStr()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetStrAptitude()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetTakeLevel()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:GetType()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:IsPresent()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp
TargetPet:SetModel()
无返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp

多返回值方法

  • TargetPet:GetAttackTrait → 2 个返回值
  • TargetPet:GetID → 3 个返回值
  • TargetPet:GetName → 2 个返回值
  • TargetPet:GetPetTypeName → 2 个返回值


脚本中的调用

以下是该对象在客户端界面脚本里的调用点(整理为注释,便于检索):

-- TargetPet/TargetPet.lua
-- TargetPet/TargetPet.lua
-- TargetPet/TargetPet.lua
-- TargetPet/TargetPet.lua