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

[JASS] Hero Gets Blink ability at lvl 10 in Reign of Chaos

Status
Not open for further replies.
Level 5
Joined
Apr 21, 2006
Messages
82
JASS:
function Trig_Blink_Conditions takes nothing returns boolean
    if ( not ( GetHeroLevel(GetLevelingUnit()) == 10 ) ) then
        return false
    endif
    return true
endfunction

function Trig_Blink_Actions takes nothing returns nothing
    call UnitAddAbilityBJ( 'AEbl', GetLevelingUnit() )
endfunction

//===========================================================================
function InitTrig_Blink takes nothing returns nothing
    set gg_trg_Blink = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Blink, EVENT_PLAYER_HERO_LEVEL )
    call TriggerAddCondition( gg_trg_Blink, Condition( function Trig_Blink_Conditions ) )
    call TriggerAddAction( gg_trg_Blink, function Trig_Blink_Actions )
endfunction

That is JASS Script what i have found, but i could make that so it would get ur hero a blink ability when the hero gets lvl 10? You choose hero from "Altar".
 
Level 5
Joined
May 22, 2006
Messages
150
A long time it is ago, when I last played "Reign of Chaos" but still I suppose to know that the spell "blink" does not exist before "Frozen Throne".
 
Status
Not open for further replies.
Top