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

Issue train order from any Altar of Kings

Status
Not open for further replies.
Level 2
Joined
Aug 24, 2008
Messages
4
Hi, I am currently working on my very first AI, it is going to be very basic, and right now I am trying to make a trigger that orders a specific hero to be trained from an Altar.

However at the ''Issue Train/Upgrade Order'' action, I cannot pick a unit-type, but only a specific unit on the map.

I want the AI to train the custom unit from wherever it might build the Altar. How do I select Altar of Kings as the unit-type that has to follow the order?

Sorry for the broken English.
 
Level 13
Joined
Oct 12, 2016
Messages
769
You'll have to make a unit group, then filter out the altar as "picked unit."

However, since this is an AI, have you tried using the AI editor?
You can automatically make the computer player use any custom hero with an AI script, which is much easier to do.
If you want to look into this, this is the best AI editor tutorial I know:
Competitive AI Step by Step with AI Editor - Wc3C.net

You could always open the "GruntMaster" AI script made by Blizzard, too, to get a good feel for its setup and order.
 
Status
Not open for further replies.
Top