Warcraft III resources & community, 2003–2006 · archived

Help with Buy-Skill Trigger

1 posts
#1

Help with Buy-Skill Trigger

Events-
Unit – a unit sells an item (form shop)


Conditions-
(item-type of (sold items)) equal to “Learn Bloodlust”


Actions-
Item – Remove (sold items)
If (all conditions are ture) then do (then actions) else do (else actions)

If – conditions
-*HeroType* [(player number of (owner of (buying units))] equal to melee

Then- actions
Set *BasicAbilityPicked*[(Player number of (triggering player))] =
*BasicAbilityPicked*[Player number of (owner of (buying unit))] +1)
Wait .10 seconds
Unit – add Bloodlust (neutral Hostile 1) to buying unit


Else – actions
Game – Display to (player group ((owner of (buying unit)))) for 10.00 seconds the Text: Ranged and Spell casters may not learn this skill
Player – add 1 to (owner of (buying unit)) current lumber


BasicAbilityPicked is a variable - Boolean Array (1) False (Default)
HeroType is a variable – String Array (1)



The problem is even if my hero is melee it still says that it is not and will not let me buy the skill