• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

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