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

Need help: AI training custom units.

Status
Not open for further replies.
Level 4
Joined
Aug 26, 2015
Messages
71
I have some problems.

·I need the AI to train custom units in my Jass script. How do I set the AI to train my custom units on the Jass script?

·Also, I want, when a unit owned by Pink Player dies, train my custom unit "High Elf Archer". I created a barracks which trains them, but, on this trigger, I tested it and it doesn't do anything!

  • If you attack train Archer
    • Events
      • Unit - A unit owned by Jugador 8 (rosa) Muere
    • Conditions
    • Actions
      • Unit - Order Barracks 0035 <gen> to train/upgrade to a Archer
      • Unit - Set Rally-Point for (Trained unit) to (Center of Rally Point <gen>)
It would be good if you answer my 2 questions because I also want to create an AI Jass Script. Thanks :)
 
Last edited:
Status
Not open for further replies.
Top