• 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.

[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,863
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