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

Spells

Status
Not open for further replies.
Level 24
Joined
Jul 9, 2009
Messages
4,097
How do I create a unit that starts with all hero spells after you've bought it at a hero tavern?
 
Level 12
Joined
Jan 30, 2009
Messages
1,067
Your question was answered in the last thread you created for that... -.-
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Untitled Trigger 007
    • Events
      • Unit - A unit Sells a unit
    • Conditions
    • Actions
      • Hero - Modify unspent skill points of (Sold unit): Add 9 points
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Sold unit)) Equal to Archmage
        • Then - Actions
          • For each (Integer A) from 1 to 3, do (Actions)
            • Loop - Actions
              • Hero - Learn skill for (Sold unit): Human Archmage - Blizzard
              • Hero - Learn skill for (Sold unit): Human Archmage - Summon Water Elemental
              • Hero - Learn skill for (Sold unit): Human Archmage - Brilliance Aura
          • Hero - Learn skill for (Sold unit): Human Archmage - Brilliance Aura
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Sold unit)) Equal to Paladin
            • Then - Actions
              • For each (Integer A) from 1 to 3, do (Actions)
                • Loop - Actions
                  • Hero - Learn skill for (Sold unit): Human Paladin - Divine Shield
                  • Hero - Learn skill for (Sold unit): Human Paladin - Devotion Aura
                  • Hero - Learn skill for (Sold unit): Human Paladin - Holy Light
              • Hero - Learn skill for (Sold unit): Human Paladin - Resurrection
            • Else - Actions

Abilities have unit level requirements, remember that.

You can also set the units to variables and use looping to detect the unit.
 
Status
Not open for further replies.
Top