• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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