• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

at least some blz natives doesn't work, patch 1.31.1

Status
Not open for further replies.
Level 3
Joined
Oct 9, 2012
Messages
28
Code:
private function learned2 takes nothing returns boolean
        local integer lvl = GetUnitAbilityLevel(GetTriggerUnit(), 'AEfk')
        local ability ab = BlzGetUnitAbility(GetTriggerUnit(), 'AEfk')
        local integer i = 0
        call BlzSetAbilityStringField(ab, ABILITY_SF_NAME, "test")
      
        if not did then
            loop
                exitwhen i == 10
                call BlzSetAbilityStringLevelField(ab, ABILITY_SLF_TOOLTIP_LEARN_EXTENDED, i, "ABILITY_SLF_TOOLTIP_LEARN_EXTENDED")
                call BlzSetAbilityStringLevelField(ab, ABILITY_SLF_TOOLTIP_LEARN, i, "ABILITY_SLF_TOOLTIP_LEARN")
                call BlzSetAbilityStringLevelField(ab, ABILITY_SLF_TOOLTIP_NORMAL, i, "ABILITY_SLF_TOOLTIP_NORMAL")
                call BlzSetAbilityStringLevelField(ab, ABILITY_SLF_TOOLTIP_NORMAL_EXTENDED, i, "ABILITY_SLF_TOOLTIP_NORMAL_EXTENDED")
              
                call BlzSetAbilityRealLevelField(ab, ABILITY_RLF_MAXIMUM_TOTAL_DAMAGE, i, 0.0)
                call BlzSetAbilityRealLevelField(ab, ABILITY_RLF_DAMAGE_PER_TARGET_EFK1, i, 100.0 * (i + 1))
                call BlzSetAbilityRealLevelField(ab, ABILITY_RLF_AREA_OF_EFFECT, i, 1000.0 * (i + 1))
                call BlzSetAbilityRealLevelField(ab, ABILITY_RLF_COOLDOWN, i, 10 / (i + 1))
                call BlzSetAbilityIntegerLevelField(ab, ABILITY_ILF_MANA_COST, i, 100 / (i + 1))

                set i = i + 1
            endloop
            set did = true
        endif

I tested the ability of "Fan of Knives" and demon hunter's "evade". BlzSetAbilityStringField and BlzSetAbilityStringLevelField doesn't work. BlzSetAbilityRealLevelField, BlzSetAbilityIntegerLevelField in the above case works.

Is it a bug?

// edit: the following works

call BlzSetAbilityTooltip('AEfk', "ability tooltip", i)
call BlzSetAbilityExtendedTooltip('AEfk', "ability extended tooltip", i)
call BlzSetAbilityResearchTooltip('AEfk', "ability research tooltip", i)
call BlzSetAbilityResearchExtendedTooltip('AEfk', "ability research extended tooltip", i)
 
Last edited:
Most of the new natives that I tried didn't end up working. I wanted to edit the Sentinel ability so I could have an ability with charges (the only ability I know of that uses charges) but unfortunately it didn't work. And I still have issues with the UI when using the set cooldown functions, sometimes the button doesn't play it's cooldown animation. Guess we just have to wait for them to sort it all out.
 
Most of the new natives that I tried didn't end up working. I wanted to edit the Sentinel ability so I could have an ability with charges (the only ability I know of that uses charges) but unfortunately it didn't work. And I still have issues with the UI when using the set cooldown functions, sometimes the button doesn't play it's cooldown animation. Guess we just have to wait for them to sort it all out.

sigh. Hope it works in some recent update.
 
Status
Not open for further replies.
Back
Top