• 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.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

[JASS] ( SOLVED ) How to put include heroes in CampaignAI Jass Code

Status
Not open for further replies.
Level 6
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.
 
Last edited:
Status
Not open for further replies.
Top