- Joined
- Dec 11, 2014
- Messages
- 93
Hey everyone, I know I saw a guide on it once upon a time but I've looked everywhere for hours and for the life of me I can't find it again.
So I was wondering if someone could help me understand how to add heroes to your AI script (Mainly, how to make your Jass AI auto level abilities for your heroes.) I tried copying what the melee map AI's had but it didn't work (probably because it calls a different AI than CampaignAI.)
I know when you type call CampaignAI you can put in your heroes code next to the farms, but can you add more than 1 hero? And do you need to add in their skills in a separate function or thread? I'm not entirely sure how it works to be quite honest.
For my map, the AI starts with a Keeper as their first hero, and then I also gave them a Priestess of the Moon and a Warden (Who I trigger to die at the start, and who don't revive until after the AI tiers up.) But how do I set it up so each of these heroes assign their own abilities when they level without having to do it through triggers? (Because I plan to make undead, human, and orc also have heroes like this and that is soooo many triggers lol, plus I know you CAN get your hero skills selected in the Jass code, I just don't remember how )
EDIT: I managed to find the guide! Got it all worked out.
So I was wondering if someone could help me understand how to add heroes to your AI script (Mainly, how to make your Jass AI auto level abilities for your heroes.) I tried copying what the melee map AI's had but it didn't work (probably because it calls a different AI than CampaignAI.)
I know when you type call CampaignAI you can put in your heroes code next to the farms, but can you add more than 1 hero? And do you need to add in their skills in a separate function or thread? I'm not entirely sure how it works to be quite honest.
For my map, the AI starts with a Keeper as their first hero, and then I also gave them a Priestess of the Moon and a Warden (Who I trigger to die at the start, and who don't revive until after the AI tiers up.) But how do I set it up so each of these heroes assign their own abilities when they level without having to do it through triggers? (Because I plan to make undead, human, and orc also have heroes like this and that is soooo many triggers lol, plus I know you CAN get your hero skills selected in the Jass code, I just don't remember how )
EDIT: I managed to find the guide! Got it all worked out.
Last edited: