HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How come this doesn't work?

01-11-2004, 01:33 PM#1
GreyArchon
I made a passive Hero ability off of Phoenix Fire I call Armageddon. Of course, once researched, it doesn't show up in the hero's skill list (things like phoenix fire, tornado wander etc. never do).

So to fix this, I made a dummy skill based off of Bash... and then did this trigger:

function Trig_Armageddon_lvl_1_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'A02K' ) ) then
return false
endif
return true
endfunction

function Trig_Armageddon_lvl_1_Actions takes nothing returns nothing
call UnitAddAbilityBJ( 'A03A', gg_unit_O000_0034 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction

//===========================================================================
function InitTrig_Armageddon_lvl_1 takes nothing returns nothing
set gg_trg_Armageddon_lvl_1 = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Armageddon_lvl_1, gg_unit_O000_0034, EVENT_UNIT_HERO_SKILL )
call TriggerAddCondition( gg_trg_Armageddon_lvl_1, Condition( function Trig_Armageddon_lvl_1_Conditions ) )
call TriggerAddAction( gg_trg_Armageddon_lvl_1, function Trig_Armageddon_lvl_1_Actions )
endfunction


Or look in the attachment for a more simple representation.


It doesn't seem to work. The dummy skill won't show up. What am I doing wrong?
01-11-2004, 01:44 PM#2
Bulletcatcher
Is the dummy skill a hero ability? If so, I believe 'Add Ability' simply tells the hero to learn it if he has it learnable and has a free skill point. What you want to do is to have the ability he learns be the dummy ability, and give him different 'real' abilities that aren't hero abilities for each level of the dummy ability.