Пользовательские дополнения

На главную


spellLib.GetObjectSpell( objectId )

Возвращает SpellId умения по идентификатору объекта умения, имеющегося в спеллбуке.

Такое умение можно использовать, a не только получить описание. Для исползуемых умений назначается Id объекта умения. Этот же Id - action Id.

-- библиотека
spellLib

-- объявление:
function GetObjectSpell( objectId )

-- параметры
objectId: ObjectId - Id объекта умения.

-- возвращаемые значения
spellId: SpellId - Id умения.

-- пример использования
local spellId = spellLib.GetObjectSpell( actionId )
common.LogInfo( spellLib.GetDescription( spellId ).name )

Связанные страницы: "CategoryLuaApi" "CategorySpellLib"

CategorySpellLib
EnumSpellbookPage
FunctionAvatarGetBuildSwitchSpell
FunctionGuildHallLibGetTeleportSpell
FunctionHangarGetLendShipSpellId
FunctionHangarGetReturnLendedShipSpellId
FunctionSpellLibBuffsCanDispel
FunctionSpellLibCanRunAvatar
FunctionSpellLibCanRunAvatarEx
FunctionSpellLibGetActionGroups
FunctionSpellLibGetAESectorProps
FunctionSpellLibGetCooldown
FunctionSpellLibGetCurrentValues
FunctionSpellLibGetDescription
FunctionSpellLibGetDurationBuff
FunctionSpellLibGetGroups
FunctionSpellLibGetGroupsDescriptions
FunctionSpellLibGetIcon
FunctionSpellLibGetObjectSpell
FunctionSpellLibGetProperties
FunctionSpellLibGetRequiredBuffs
FunctionSpellLibGetRequiredResources
FunctionSpellLibGetRequirements
FunctionSpellLibGetState
FunctionSpellLibGetValuedObject
FunctionSpellLibHasDurationBuff


CategoryLuaApi CategoryFunction CategorySpellbook CategorySpellLib

На главную