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

На главную


spellLib.GetDescription( SpellId )

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

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

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

-- параметры
id: SpellId - Id умения

-- возвращаемые значения
nil, если такого умения нет
table, если действие в слоте есть

-- поля возвращаемой таблицы
name: WString -- название
description: ValuedText or nil -- описание с подставленными текущими значениями параметров
sysName: string -- системное имя спелла
objectId: ObjectId or nil -- Id объекта умения в книге умений (action Id). В остальных случаях nil
debugName: string or nil -- системная информация для отладочной версии(путь к файлу), отсутствует в FinalRelease версии клиента

-- пример использования
local spellbook = avatar.GetSpellBook()
local spellDesc = spellLib.GetDescription( spellbook[1] )
common.LogInfo( spellDesc.name )

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

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


CategoryLuaApi CategoryFunction CategorySpellbook CategorySpellLib

На главную