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

[General] AI Triggers: Learning Hero Abilities

Status
Not open for further replies.
Level 8
Joined
Oct 19, 2008
Messages
168
What do you guys think is the best way to get custom AI heros to individually learn their abilities?

It's going to be for more than 20 heros so manually putting in each ability at each level will take too long.

My attempt:
HeroType(1) = Mage
AbilityStrong(1) = Blizzard
AbilityMedium(1) = Aura
etc..

Then
Event: hero levels up
For each integerA 1-However many heros I have
Increase lvl of AbilityStrong(IntegerA)

But i guess that increase lvl trigger works for units, not heros.
And I can't use the Hero Learn Skill because it doesn't let me use preset variables

Fixes or new ideas would be much appreciated
Thanks!
 
Level 1
Joined
Jun 13, 2008
Messages
132
Instead of what are you doing, just add the ability via trigger and then level up when it is supposed to be leveled up, so it would look like if it was learned but it wasn't. But that is what you want, also if you have, share a map to take a look.
 
Level 8
Joined
Oct 19, 2008
Messages
168
Perfect thanks so much, it works.

There's no trigger for a hero to learn skill - custom ability but using the trigger (add ability) then using the level up ability works perfectly

great idea
 
Level 8
Joined
Oct 19, 2008
Messages
168
Are you gonna make only 1 skill-build for each AI-controlled Hero ?

No i got it, it's gonna use one trigger to level up the abilities for as many heros as i like, which randomizes based on whether players select hard, medium, or normal mode, and then if two ai heros are the same on the same mode, they will also be randomized.
 
Status
Not open for further replies.
Top