Hi,
Greetings to all. I had done some skimming/browsing/searching how would the AI learn skills. Of course I know how but it's a lengthy one considering I'm making a lot of heroes (A dota-like game)
This is the sample code
Greetings to all. I had done some skimming/browsing/searching how would the AI learn skills. Of course I know how but it's a lengthy one considering I'm making a lot of heroes (A dota-like game)
This is the sample code
-
general learn
-
Events
- Unit - A unit Gains a level
-
Conditions
- (Owner of (Leveling Hero)) Equal to computer_controlled
-
Actions
- Hero - Learn skill for (Leveling Hero): (Learned Hero Skill)
- Hero - Learn skill for (Leveling Hero): (Learned Hero Skill)
- Hero - Learn skill for (Leveling Hero): Night Elf Demon Hunter - Immolation
- Hero - Learn skill for (Leveling Hero): Night Elf Demon Hunter - Evasion
- Hero - Learn skill for (Leveling Hero): Night Elf Demon Hunter - Immolation
- Hero - Learn skill for (Leveling Hero): Night Elf Demon Hunter - Metamorphosis
- Hero - Learn skill for (Leveling Hero): Human Archmage - Blizzard
- Hero - Learn skill for (Leveling Hero): Human Archmage - Summon Water Elemental
- Hero - Learn skill for (Leveling Hero): Human Archmage - Brilliance Aura
- Hero - Learn skill for (Leveling Hero): Human Archmage - Mass Teleport
- Hero - Learn skill for (Leveling Hero): Human Mountain King - Storm Bolt
- Hero - Learn skill for (Leveling Hero): Human Mountain King - Thunder Clap
- Hero - Learn skill for (Leveling Hero): Human Mountain King - Bash
- Hero - Learn skill for (Leveling Hero): Human Mountain King - Avatar
- Hero - Learn skill for (Leveling Hero): Human Paladin - Divine Shield
- Hero - Learn skill for (Leveling Hero): Human Paladin - Holy Light
- Hero - Learn skill for (Leveling Hero): Human Paladin - Devotion Aura
- Hero - Learn skill for (Leveling Hero): Human Paladin - Resurrection
- Hero - Learn skill for (Leveling Hero): Orc Blademaster - Wind Walk
- Hero - Learn skill for (Leveling Hero): Orc Blademaster - Mirror Image
- Hero - Learn skill for (Leveling Hero): Orc Blademaster - Critical Strike
- Hero - Learn skill for (Leveling Hero): Orc Blademaster - Bladestorm
- Hero - Learn skill for (Leveling Hero): Orc Far Seer - Chain Lightning
- Hero - Learn skill for (Leveling Hero): Orc Far Seer - Far Sight
- Hero - Learn skill for (Leveling Hero): Orc Far Seer - Feral Spirit
- Hero - Learn skill for (Leveling Hero): Orc Far Seer - Earthquake
- Hero - Learn skill for (Leveling Hero): Orc Tauren Chieftain - Shockwave
- Hero - Learn skill for (Leveling Hero): Orc Tauren Chieftain - War Stomp
- Hero - Learn skill for (Leveling Hero): Orc Tauren Chieftain - Endurance Aura
- Hero - Learn skill for (Leveling Hero): Orc Tauren Chieftain - Reincarnation
- Hero - Learn skill for (Leveling Hero): Undead Death Knight - Death Coil
- Hero - Learn skill for (Leveling Hero): Undead Death Knight - Death Pact
- Hero - Learn skill for (Leveling Hero): Undead Death Knight - Unholy Aura
- Hero - Learn skill for (Leveling Hero): Undead Death Knight - Animate Dead
- Hero - Learn skill for (Leveling Hero): Undead Dreadlord - Carrion Swarm
- Hero - Learn skill for (Leveling Hero): Undead Dreadlord - Sleep
- Hero - Learn skill for (Leveling Hero): Undead Dreadlord - Vampiric Aura
- Hero - Learn skill for (Leveling Hero): Undead Dreadlord - Inferno
- Hero - Learn skill for (Leveling Hero): Undead Lich - Frost Nova
- Hero - Learn skill for (Leveling Hero): Undead Lich - Frost Armor
- Hero - Learn skill for (Leveling Hero): Undead Lich - Dark Ritual
- Hero - Learn skill for (Leveling Hero): Undead Lich - Death And Decay
- Hero - Learn skill for (Leveling Hero): Night Elf Keeper Of The Grove - Entangling Roots
- Hero - Learn skill for (Leveling Hero): Night Elf Keeper Of The Grove - Force Of Nature
- Hero - Learn skill for (Leveling Hero): Night Elf Keeper Of The Grove - Thorns Aura
- Hero - Learn skill for (Leveling Hero): Night Elf Keeper Of The Grove - Tranquility
- Hero - Learn skill for (Leveling Hero): Night Elf Priestess Of The Moon - Scout
- Hero - Learn skill for (Leveling Hero): Night Elf Priestess Of The Moon - Searing Arrows
- Hero - Learn skill for (Leveling Hero): Night Elf Priestess Of The Moon - Trueshot Aura
- Hero - Learn skill for (Leveling Hero): Night Elf Priestess Of The Moon - Starfall
- Hero - Learn skill for (Leveling Hero): Special Archimonde - Dark Portal
- Hero - Learn skill for (Leveling Hero): Special Archimonde - Rain Of Chaos
- Hero - Learn skill for (Leveling Hero): Special Archimonde - Bash
- Hero - Learn skill for (Leveling Hero): Special Archimonde - Finger Of Death
- Hero - Learn skill for (Leveling Hero): Special Illidan - Metamorphosis
- Hero - Learn skill for (Leveling Hero): Special Malganis - Dark Conversion
- Hero - Learn skill for (Leveling Hero): Special Malganis - Soul Preservation
- Hero - Learn skill for (Leveling Hero): Special Mannoroth - Reincarnation
- Hero - Learn skill for (Leveling Hero): Special Sylvanas Windrunner - Cold Arrows
- Hero - Learn skill for (Leveling Hero): Special Tichondrius - Inferno
- Hero - Learn skill for (Leveling Hero): Special Warlock - Summon Infernal
- Hero - Learn skill for (Leveling Hero): Special - Dark Conversion (Fast)
- Hero - Learn skill for (Leveling Hero): Special - Dark Summoning
- Hero - Learn skill for (Leveling Hero): Human Blood Mage - Flame Strike
- Hero - Learn skill for (Leveling Hero): Human Blood Mage - Banish
- Hero - Learn skill for (Leveling Hero): Human Blood Mage - Siphon Mana
- Hero - Learn skill for (Leveling Hero): Human Blood Mage - Phoenix
- Hero - Learn skill for (Leveling Hero): Orc Shadow Hunter - Healing Wave
- Hero - Learn skill for (Leveling Hero): Orc Shadow Hunter - Hex
- Hero - Learn skill for (Leveling Hero): Orc Shadow Hunter - Serpent Ward
- Hero - Learn skill for (Leveling Hero): Orc Shadow Hunter - Big Bad Voodoo
- Hero - Learn skill for (Leveling Hero): Undead Crypt Lord - Impale
- Hero - Learn skill for (Leveling Hero): Undead Crypt Lord - Spiked Carapace
- Hero - Learn skill for (Leveling Hero): Undead Crypt Lord - Carrion Beetles
- Hero - Learn skill for (Leveling Hero): Undead Crypt Lord - Locust Swarm
- Hero - Learn skill for (Leveling Hero): Night Elf Warden - Fan Of Knives
- Hero - Learn skill for (Leveling Hero): Night Elf Warden - Blink
- Hero - Learn skill for (Leveling Hero): Night Elf Warden - Shadow Strike
- Hero - Learn skill for (Leveling Hero): Night Elf Warden - Vengeance
- Hero - Learn skill for (Leveling Hero): Neutral Beastmaster - Summon Bear
- Hero - Learn skill for (Leveling Hero): Neutral Beastmaster - Summon Quilbeast
- Hero - Learn skill for (Leveling Hero): Neutral Beastmaster - Summon Hawk
- Hero - Learn skill for (Leveling Hero): Neutral Beastmaster - Stampede
- Hero - Learn skill for (Leveling Hero): Neutral Dark Ranger - Silence
- Hero - Learn skill for (Leveling Hero): Neutral Dark Ranger - Black Arrow
- Hero - Learn skill for (Leveling Hero): Neutral Dark Ranger - Life Drain
- Hero - Learn skill for (Leveling Hero): Neutral Dark Ranger - Charm
- Hero - Learn skill for (Leveling Hero): Neutral Naga Sea Witch - Forked Lightning
- Hero - Learn skill for (Leveling Hero): Neutral Naga Sea Witch - Frost Arrows
- Hero - Learn skill for (Leveling Hero): Neutral Naga Sea Witch - Mana Shield
- Hero - Learn skill for (Leveling Hero): Neutral Naga Sea Witch - Tornado
- Hero - Learn skill for (Leveling Hero): Neutral Pandaren Brewmaster - Breath Of Fire
- Hero - Learn skill for (Leveling Hero): Neutral Pandaren Brewmaster - Drunken Haze
- Hero - Learn skill for (Leveling Hero): Neutral Pandaren Brewmaster - Drunken Brawler
- Hero - Learn skill for (Leveling Hero): Neutral Pandaren Brewmaster - Storm, Earth, And Fire
- Hero - Learn skill for (Leveling Hero): Neutral Pit Lord - Rain Of Fire
- Hero - Learn skill for (Leveling Hero): Neutral Pit Lord - Howl Of Terror
- Hero - Learn skill for (Leveling Hero): Neutral Pit Lord - Cleaving Attack
- Hero - Learn skill for (Leveling Hero): Neutral Pit Lord - Doom
- -------- Custom --------
- Hero - Learn skill for (Leveling Hero): Auto Blitz
- Hero - Learn skill for (Leveling Hero): Detecting
- Hero - Learn skill for (Leveling Hero): Cold Bolt (one target)
-
Events
Last edited: