• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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