Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Custom Hero AI

Discussion in 'Triggers & Scripts' started by Verb8im, Jul 18, 2015.

  1. Verb8im

    Verb8im

    Joined:
    Mar 29, 2015
    Messages:
    450
    Resources:
    0
    Resources:
    0
    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: Jul 19, 2015
  2. Ofel

    Ofel

    Joined:
    Mar 29, 2012
    Messages:
    431
    Resources:
    10
    Spells:
    10
    Resources:
    10
    Isn't the hero automatically have the AI of the player that owns it?
     

    Attached Files:

  3. Verb8im

    Verb8im

    Joined:
    Mar 29, 2015
    Messages:
    450
    Resources:
    0
    Resources:
    0
    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.