• 🏆 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!

Spells

Status
Not open for further replies.
Level 24
Joined
Jul 9, 2009
Messages
4,097
How do I make so that a hero learn all spells instant so that a level 1 hero learns all spells from the start. And I want to use hero abilitys and not unit abilitys.
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
I guess this would be it.

  • Untitled Trigger 003
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)
        • Loop - Actions
          • Set u1 = (Picked unit)
          • Hero - Modify unspent skill points of u1: Add 9 points
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of u1) Equal to Paladin
            • Then - Actions
              • For each (Integer i) from 1 to 3, do (Actions)
                • Loop - Actions
                  • Hero - Learn skill for u1: Human Paladin - Divine Shield
                  • Hero - Learn skill for u1: Human Paladin - Holy Light
                  • Hero - Learn skill for u1: Human Paladin - Devotion Aura
                  • Hero - Learn skill for u1: Human Paladin - Resurrection
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Unit-type of u1) Equal to Archmage
                • Then - Actions
                  • For each (Integer i) from 1 to 3, do (Actions)
                    • Loop - Actions
                      • Hero - Learn skill for u1: Human Archmage - Blizzard
                      • Hero - Learn skill for u1: Human Archmage - Summon Water Elemental
                      • Hero - Learn skill for u1: Human Archmage - Brilliance Aura
                      • Hero - Learn skill for u1: Human Archmage - Mass Teleport
                • Else - Actions
 
Level 12
Joined
Jan 30, 2009
Messages
1,067
No, it wouldn't. I think you'd have to use a different event. Perhaps "Unit Enters (Playable Map Area)" for instance. Something along those lines, in order for it to work for spawning out of a tavern.
 
Status
Not open for further replies.
Top