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

На главную


avatar.GetSpellBook()

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

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

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

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

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

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

Search: "CategoryLuaApi" "CategorySpellbook"

AbilityId
ActionGroupId
EnumSubElement
EventAbilitiesElementAdded
EventDefaultSpellChanged
EventDefaultSpellEffect
EventSpellbookChanged
EventSpellbookElementAdded
EventSpellbookElementChanged
EventSpellbookElementEffect
FunctionAvatarGetAbilities
FunctionAvatarGetAbilityInfo
FunctionAvatarGetAbilityReplacementSpell
FunctionAvatarGetAbilityReplacementSpells
FunctionAvatarGetActionGroupSpells
FunctionAvatarGetActionGroupStatBonus
FunctionAvatarGetSpellBook
FunctionAvatarIsBuffDisease
FunctionAvatarIsBuffMagic
FunctionAvatarIsBuffPoison
FunctionAvatarRunAESpell
FunctionAvatarRunSpell
FunctionItemLibGetActionGroupsInfo
FunctionSpellLibBuffsCanDispel
FunctionSpellLibCanRunAvatar
FunctionSpellLibCanRunAvatarEx
FunctionSpellLibGetActionGroups
FunctionSpellLibGetAESectorProps
FunctionSpellLibGetCooldown
FunctionSpellLibGetCurrentValues
FunctionSpellLibGetDescription
FunctionSpellLibGetDurationBuff
FunctionSpellLibGetGroups
FunctionSpellLibGetGroupsDescriptions
FunctionSpellLibGetIcon
FunctionSpellLibGetObjectSpell
FunctionSpellLibGetProperties
FunctionSpellLibGetRequiredBuffs
FunctionSpellLibGetRequiredResources
FunctionSpellLibGetRequirements
FunctionSpellLibGetState
FunctionSpellLibHasDurationBuff
SpellId


CategoryLuaApi CategoryFunction CategorySpellbook CategoryAvatar

На главную