Lua接口/客户端函数索引/TargetPet

来自天龙知识库
雪舞留言 | 贡献2026年9月19日 (六) 07:51的版本 (新建客户端 Lua 接口页:全局函数、对象方法、窗口操作与客户端事件)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航跳到搜索

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

TargetPet 对象方法
实现类 TargetPet · 48 个方法 · 脚本使用 131 处
本页参数与返回值由客户端 C++ 绑定源码自动推断(参数取自 args[n]lua_is* 的实际取值点,返回项数取自 return n),未经运行验证;用途摘要按实现体归纳,仅供参考。

调用方式

调用形式:TargetPet:CopyMyPet(number) 对象名 TargetPet 是全局对象,可直接使用。

方法列表

方法 说明
TargetPet:CopyMyPet(number)
number · 无返回值 · 脚本使用 1 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L629
TargetPet:GetAIType()
无参数 · 1 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L863
TargetPet:GetAttackTrait()
无参数 · 2 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L918
TargetPet:GetBasic()
无参数 · 1 个返回值 · 脚本使用 6 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L491
TargetPet:GetConsort()
无参数 · 1 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L157
TargetPet:GetCriticalAttack()
无参数 · 1 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L649
TargetPet:GetCriticalDefence()
无参数 · 1 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L661
TargetPet:GetDeathWarrant()
无参数 · 1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L849
TargetPet:GetDex()
无参数 · 1 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L450
TargetPet:GetDexAptitude()
无参数 · 1 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L381
TargetPet:GetExp()
无参数 · 1 个返回值 · 脚本使用 4 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L518
TargetPet:GetFoodType()
无参数 · 1 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L876
TargetPet:GetGrowRate()
无参数 · 1 个返回值 · 脚本使用 4 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L956
TargetPet:GetHappy()
无参数 · 1 个返回值 · 脚本使用 3 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L233
TargetPet:GetHP()
无参数 · 1 个返回值 · 脚本使用 4 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L297
TargetPet:GetID()
无参数 · 3 个返回值 · 脚本使用 6 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L193
TargetPet:GetInt()
无参数 · 1 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L437
TargetPet:GetIntAptitude()
无参数 · 1 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L395
TargetPet:GetIsFighting()
无参数 · 1 个返回值 · 脚本使用 6 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L828
TargetPet:GetLevel()
无参数 · 1 个返回值 · 脚本使用 4 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L219
TargetPet:GetLoyalgGade()
无参数 · 1 个返回值 · 脚本使用 1 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L283
TargetPet:GetMagicAttack()
无参数 · 1 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L545
TargetPet:GetMagicRecovery()
无参数 · 1 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L573
TargetPet:GetMaxHP()
无参数 · 1 个返回值 · 脚本使用 4 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L325
TargetPet:GetMaxLife()
无参数 · 1 个返回值 · 脚本使用 2 处
实现体未体现明确的外部效果
Game/Interface/GMGameInterface_Script_TargetPet.cpp L275
TargetPet:GetMaxMP()
无参数 · 1 个返回值 · 脚本使用 1 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L339
TargetPet:GetMiss()
无参数 · 1 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L601
TargetPet:GetMP()
无参数 · 1 个返回值 · 脚本使用 1 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L311
TargetPet:GetName()
无参数 · 2 个返回值 · 脚本使用 6 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L131
TargetPet:GetNaturalLife()
无参数 · 1 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L261
TargetPet:GetPetGrowLevel(number)
number · 1 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L969
TargetPet:GetPetTypeName()
无参数 · 2 个返回值 · 脚本使用 3 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L69
TargetPet:GetPF()
无参数 · 1 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L463
TargetPet:GetPFAptitude()
无参数 · 1 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L367
TargetPet:GetPhysicsAttack()
无参数 · 1 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L532
TargetPet:GetPhysicsRecovery()
无参数 · 1 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L559
TargetPet:GetPotential()
无参数 · 1 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L505
TargetPet:GetSavvy()
无参数 · 1 个返回值 · 脚本使用 6 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L943
TargetPet:GetSex()
无参数 · 1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L178
TargetPet:GetShootProbability()
无参数 · 1 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L587
TargetPet:GetSta()
无参数 · 1 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L477
TargetPet:GetStaAptitude()
无参数 · 1 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L409
TargetPet:GetStr()
无参数 · 1 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L423
TargetPet:GetStrAptitude()
无参数 · 1 个返回值 · 脚本使用 2 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L353
TargetPet:GetTakeLevel()
无参数 · 1 个返回值 · 脚本使用 6 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L901
TargetPet:GetType()
无参数 · 1 个返回值 · 脚本使用 1 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L247
TargetPet:IsPresent()
无参数 · 1 个返回值 · 脚本使用 6 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L41
TargetPet:SetModel()
无参数 · 无返回值 · 脚本使用 6 处
读取客户端本地数据
Game/Interface/GMGameInterface_Script_TargetPet.cpp L615

多返回值方法

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


脚本中的调用

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

-- TargetPet:CopyMyPet  ← TargetPet/TargetPet.lua
-- Pet:GetAIType  ← Pet/Pet.lua
-- Pet:GetAttackTrait  ← Pet/Pet.lua
-- Pet:GetBasic  ← Pet/Pet.lua