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

Help with Buy-Skill Trigger

Status
Not open for further replies.
Level 3
Joined
Jul 17, 2005
Messages
36
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
 
Status
Not open for further replies.
Top