Thread Tools Display Modes
04/22/24, 12:42 PM   #1
Lykeion
 
Lykeion's Avatar
AddOn Author - Click to view addons
Join Date: May 2022
Posts: 26
Originally Posted by ZOS_DanBatson View Post
Code:
if IsScribableScriptCombinationForCraftedAbility(craftedAbilityId, primaryScriptId, secondaryScriptId, tertiaryScriptId) then
    SetCraftedAbilityScriptSelectionOverride(craftedAbilityId, primaryScriptId, secondaryScriptId, tertiaryScriptId)
    local abilityId = GetCraftedAbilityRepresentativeAbilityId(craftedAbilityId)
    -- Ask whatever questions about the ability you want to ask
    ResetCraftedAbilityScriptSelectionOverride()
end
Keep in mind though that just having the abilityId doesn't mean it's everything you need to know. There can be dozens of combinations of scripts that use the same abilityId. All the GetAbility* functions (e.g.: GetAbilityDuration, GetAbilityRange, etc) can return drastically different values depending on the scripts even for the same abilityId. And how they're calculated is to look at the override scripts (if applicable) or look at what you've got currently scribed. This is why all our tooltips set the override first and foremost.
Appreciate the demonstration of the use of override, it's fantastic! Thanks for the detailed explanation

Last edited by Lykeion : 04/22/24 at 12:46 PM.
  Reply With Quote

ESOUI » Developer Discussions » Wish List » Add GetAbilityId() with parameters craftedAbilityId & 3*scriptId's


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off