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

[AI] AI abilities on level 1

Status
Not open for further replies.
Level 5
Joined
Oct 5, 2012
Messages
67
My AI is able to learn abilities each time it levels up (I use a "If a unit reaches level x, learn ability x" trigger). But it doesn't work for level 1 (so if the unit just entered the game). How could I make my bots learn a ability on level 1?
 
Level 18
Joined
May 11, 2012
Messages
2,103
use this trigger on startup

  • AI Learning First Skills
    • Events
    • Conditions
    • Actions
      • Hero - Learn skill for (Your Hero): Thunder Bolt
      • Hero - Learn skill for (Your Hero 2): Tremor
Do those actions for every AI Hero you have. This is how I do for my AI's
 
Level 5
Joined
Oct 5, 2012
Messages
67
yeah. but i don't know how to make a right condition. it triggers always when the unit reaches a new level. But not on level 1 and thats my problem.
 
Level 16
Joined
Mar 3, 2006
Messages
1,564
yeah. but i don't know how to make a right condition. it triggers always when the unit reaches a new level. But not on level 1 and thats my problem.

On Initialization for level 1. The rest will be ok, I guess.

  • AI Learning First Skills
    • Events
      • Map Initialization
    • Conditions
    • Actions
      • Hero - Learn skill for (Your Hero): Thunder Bolt
      • Hero - Learn skill for (Your Hero 2): Tremor
 
Status
Not open for further replies.
Top