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

Custom Hero AI

Status
Not open for further replies.
Level 10
Joined
Mar 29, 2015
Messages
487
I already posted this in world editor zone, but I wanted to post it here as well, in case someone might be able to help.

I'm adding a hero to the allied/enemy teams. How do I get that custom hero to have the normal AI of that team? For example, I'm working on the Orc Mission 3, Cry of the Warsong, and I added a hero to the Warsong Clan team. How do I make that hero have the same AI as the rest of the team?

Edit: These are the triggers I'm trying to use. I know it's wrong, I'm just testing out stuff to see if anything works.

  • Warsong Commander Attack
    • Events
      • Unit - A unit leaves FailsafeTowerGrom2 <gen>
    • Conditions
      • (Triggering unit) Equal to Grom
    • Actions
      • Unit Group - Pick every unit in (Units owned by Player 4 (Purple)) and do (Actions)
        • Loop - Actions
          • Unit - Order Commander 0177 <gen> to Attack-Move To (Center of PingBlue <gen>)
          • Unit - Order Commander 0177 <gen> to Attack-Move To (Center of PingGray <gen>)
          • Unit - Order Commander 0177 <gen> to Attack-Move To (Center of PingGreen <gen>)
          • Unit - Order Commander 0177 <gen> to Attack-Move To (Center of PingLightBlue <gen>)
Edit: Also, the first time the hero attacks the human bases, after he dies and revives, he doesn't go out again. Even though I'm pretty sure I set it as a loop, the custom hero doesn't go out to attack anything when Grom leaves.
 
Last edited:
Level 10
Joined
Mar 29, 2015
Messages
487
Isn't the hero automatically have the AI of the player that owns it?

Not really. Unless the base is attacked, he'll just stand there. And if he's killed, he stands at the altar after he's revived and doesn't move. I'm trying to have him go with Grom in an attack group, or get one of his own, or something.
 
Status
Not open for further replies.
Top