• 🏆 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!

[AI] Let AI buy lumber, hire mercenaries and buy Shredders

Status
Not open for further replies.
Level 26
Joined
Feb 2, 2006
Messages
1,698
Hello there,
I am working on an AI script to for freelancers in my custom map: https://raw.githubusercontent.com/tdauth/wowr/master/ai/Freelancer.ai
Freelancers are basically heroes only with only one main building who cannot collect gold or lumber and cannot train units.
However, I want them to hire mercenaries all over the map. Their main building produces some food and some shops sell lumber as well.
I was wondering if there are some flags I could set or do I really need custom triggers?

I could give the AI some lumber every X seconds if they are not able to buy mercenaries and in the end I will probably auto summon some mercenaries and add them somehow to the attack group but it would be much cooler to have some native functions like PurchaseZeppelin. It would look much better to see AI going to buy lumber and to hire mercenaries from camps.

Here is another thread with no answers: [AI] - Need help with making my AI to buy units. Can you help ?

Another thing I would like to add to the Warlord AI scripts who build bases is that they buy Shredders.
 
Last edited:
Status
Not open for further replies.
Top