• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Ability only visible in learn

Status
Not open for further replies.
Level 2
Joined
Apr 6, 2012
Messages
12
I have an ability "Fire" that works as a sort of "level up" skill for the Summer Red and Illumination spells. When you level up Fire, both Summer Red and Illlumination are levelled up (Summer Red and Illlumination belong to different spell sets and only one of them is in the hero pallette at any given time). What I'm trying to do is to get Fire not visible in the hero pallette (and not usable either) and also to make it visible in the learn skill pallette. Any ideas how to do this without Libram 3.0?
 
Level 17
Joined
Jul 17, 2011
Messages
1,864
i think youre doing it wrong, if these abilities are damage spells they should damage the unit with something like
JASS:
function exfunc takes nothing returns nothing
    call UnitDamageTargetBJ( GetTriggerUnit(), GetTriggerUnit(), ( 100.00 * I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetTriggerUnit())) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
endfunction
where the " 100.00 * I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId() should automatically adjust when a hero levels up
 
Status
Not open for further replies.
Top