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

На главную


avatar.GetSpellBook()

Возвращает список Id умений и заклинаний аватара. пассивные умения можно получить, используя avatar.GetAbilities().

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

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

-- параметры
нет

-- возвращаемые значения
table of SpellId - список SpellId умений и заклинаний (индексация с 1)

-- пример использования
local spellbook = avatar.GetSpellBook()
for i, id in ipairs( spellbook ) do
  local spellInfo = spellLib.GetDescription( id )
  common.LogInfo( tostring( spellInfo.name ) )
end

Search: "CategoryLuaApi" "CategorySpellbook"

AbilityId
ActionGroupId
EnumSubElement
EventAbilitiesElementAdded
EventDefaultSpellChanged
EventDefaultSpellEffect
EventGlobalCooldown
EventSpellbookChanged
EventSpellbookElementAdded
EventSpellbookElementChanged
EventSpellbookElementEffect
FunctionAvatarDropSpell
FunctionAvatarGetAbilities
FunctionAvatarGetAbilityInfo
FunctionAvatarGetAbilityReplacementSpell
FunctionAvatarGetAbilityReplacementSpells
FunctionAvatarGetActionGroupSpells
FunctionAvatarGetActionGroupStatBonus
FunctionAvatarGetSpellBook
FunctionAvatarHasSpell
FunctionAvatarPrepareSpell
FunctionAvatarRunAESpell
FunctionAvatarRunSpell
FunctionItemLibGetActionGroupsInfo
FunctionSpellLibCanRunAvatar
FunctionSpellLibCanRunAvatarEx
FunctionSpellLibGetActionGroups
FunctionSpellLibGetActionGroupsDescriptions
FunctionSpellLibGetAESectorProps
FunctionSpellLibGetCooldown
FunctionSpellLibGetCurrentValues
FunctionSpellLibGetDescription
FunctionSpellLibGetDescriptionParams
FunctionSpellLibGetDurationBuff
FunctionSpellLibGetIcon
FunctionSpellLibGetObjectSpell
FunctionSpellLibGetProperties
FunctionSpellLibGetRequiredBuffs
FunctionSpellLibGetRequiredResources
FunctionSpellLibGetRequirements
FunctionSpellLibGetState
FunctionSpellLibHasDurationBuff
SpellId


CategoryLuaApi CategoryFunction CategorySpellbook CategoryAvatar

На главную