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

[AI] AI abilities on level 1

Status
Not open for further replies.
Level 4
Joined
Oct 5, 2012
Messages
52
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 4
Joined
Oct 5, 2012
Messages
52
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