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

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

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

LifeAbility 对象方法
实现类 LifeAbility · 61 个方法
本页信息由客户端 C++ 绑定源码与 230 个界面脚本自动整理:参数取实现体的 args[n] 取值点(对象方法已扣除 self 占用的栈位),调用示例取脚本中的真实调用,未经运行验证;用途摘要按实现体归纳,仅供参考。

调用方式

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

方法列表

方法 说明
LifeAbility:Can_Combine(number, number)
1 个返回值
触发客户端事件 GE_NEW_DEBUGMESSAGE;读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Can_Enchase(number, number)
1 个返回值
触发客户端事件 GE_NEW_DEBUGMESSAGE;读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:ClearComposeItems()
无返回值
实现体未体现明确的外部效果
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:ClearSlotFour()
无返回值
实现体未体现明确的外部效果
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:CloseReIdentifyMsgBox()
无返回值
触发客户端事件 GE_CLOSE_RE_IDENTIFY_MSGBOX;读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:CloseStrengthMsgBox()
无返回值
触发客户端事件 GE_CLOSE_STRENGTH_MSGBOX;读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Compound_Preparation(number)
1 个返回值
触发客户端事件 GE_NEW_DEBUGMESSAGE;读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Do_Combine(number, number, number, number, number, number)
无返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Do_Enchase(number, number, number, number)
无返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Do_Enchase_Four(number, number, number, number)
无返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Do_SeparateGem(number, number, number)
无返回值
触发客户端事件 GE_NEW_DEBUGMESSAGE;操作客户端界面;读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Enchase_CloseMsgBox()
无返回值
触发客户端事件 GE_ENCHASE_CLOSE_MSGBOX;读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Enchase_Confirm(number, number, number, number)
无返回值
触发客户端事件 GE_ENCHASE_CONFIRM;读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Enchase_Four_Confirm(number, number, number, number)
无返回值
触发客户端事件 GE_ENCHASE_FOUR_CONFIRM;读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Enchase_Preparation(number, number)
1 个返回值
触发客户端事件 GE_NEW_DEBUGMESSAGE;读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Get_Enhance_Cost(number, number)
1 个返回值
实现体未体现明确的外部效果
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Get_Equip_CurStrengthLevel(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Get_Equip_Exterior(number, number)
1 个返回值
触发客户端事件 GE_NEW_DEBUGMESSAGE;操作客户端界面;读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Get_Equip_Level(number)
1 个返回值
触发客户端事件 GE_NEW_DEBUGMESSAGE;操作客户端界面;读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Get_Equip_Point(number)
1 个返回值
触发客户端事件 GE_NEW_DEBUGMESSAGE;操作客户端界面;读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Get_Equip_StrengthLevel(number)
2 个返回值
触发客户端事件 GE_NEW_DEBUGMESSAGE;操作客户端界面;读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Get_Equip_VisualID(number)
1 个返回值
触发客户端事件 GE_NEW_DEBUGMESSAGE;操作客户端界面;读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Get_Gem_Level(number, number)
1 个返回值
触发客户端事件 GE_NEW_DEBUGMESSAGE;操作客户端界面;读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Get_OtherPlayerEquip_VisualID(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Get_Test_Prescr_Item(number, number)
2 个返回值
实现体未体现明确的外部效果
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Get_UserEquip_Current_Durability(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Get_UserEquip_Maximum_Durability(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Get_UserEquip_VisualID(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:GetEquip_Gem(number, number)
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:GetEquip_GemCount(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:GetEquip_GemLevel(number, number)
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:GetEquip_HoleCount(number)
1 个返回值
触发客户端事件 GE_NEW_DEBUGMESSAGE;操作客户端界面;读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:GetItem_Class(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:GetLifeAbility_LimitExp(number, number)
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:GetLifeAbility_Number(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:GetNpcId()
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:GetPrescr_Consume_ContriAttr(number)
1 个返回值
实现体未体现明确的外部效果
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:GetPrescr_Consume_Vigor_Energy(number)
2 个返回值
实现体未体现明确的外部效果
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:GetPrescr_Explain(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:GetPrescr_Item_IsNeedSpecial(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:GetPrescr_Item_Maximum(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:GetPrescr_Material(number)
2 个返回值
实现体未体现明确的外部效果
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:GetPrescr_Material_Consume(number)
1 个返回值
实现体未体现明确的外部效果
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:GetPrescr_Material_Hold_Count(number, number)
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:GetPrescr_Material_Number(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:GetPrescr_Material_Tooltip(number)
3 个返回值
实现体未体现明确的外部效果
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:GetPrescription_Kind(number)
1 个返回值
实现体未体现明确的外部效果
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:GetPrescrList_Item_FromNum(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:GetQuestUI_Demand(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:GetQuestUI_Reward(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:GetSplitGem_Gem(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:GetSplitGem_GemEx(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Is_SlotFour(number, number, number)
1 个返回值
触发客户端事件 GE_GAMELOGIN_SYSTEM_INFO_OK;操作客户端界面;读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Lock_Packet_Item(number, number)
无返回值
触发客户端事件 GE_PACKAGE_ITEM_CHANGED;读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Open_Compose_Gem_Page(number)
无返回值
触发客户端事件 GE_OPEN_COMPOSE_GEM;操作客户端界面;读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:ShowSuperToolTip(number, boolean, number, number, number, number)
1 个返回值
触发客户端事件 GE_SUPERTOOLTIP;读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:SplitGem_Update(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Stiletto_Preparation(number, number)
4 个返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Update_Equip_VisualID()
无返回值
读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Update_Synthesize(number)
无返回值
触发客户端事件 GE_UPDATE_COMPOSE_ITEM;读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp
LifeAbility:Wear_Equip_VisualID(number, number)
无返回值
触发客户端事件 GE_NEW_DEBUGMESSAGE;操作客户端界面;读取客户端本地数据
Game/Interface/GMGameInterface_Script_LifeAbility.cpp

多返回值方法

  • LifeAbility:Get_Equip_StrengthLevel → 2 个返回值
  • LifeAbility:Get_Test_Prescr_Item → 2 个返回值
  • LifeAbility:GetPrescr_Consume_Vigor_Energy → 2 个返回值
  • LifeAbility:GetPrescr_Material → 2 个返回值
  • LifeAbility:GetPrescr_Material_Tooltip → 3 个返回值
  • LifeAbility:Stiletto_Preparation → 4 个返回值


脚本中的调用

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

-- Materalcompose/MaterialCompound.lua
-- Stiletto_Four/Stiletto_Four.lua
-- Identify/Identify.lua
-- CoupleQuestion/CoupleQuestion.lua