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

AI melee map problem

Status
Not open for further replies.
Level 4
Joined
Jan 17, 2015
Messages
40
Can someone help, please. I recently made my version of Dalaran map (Stormguarde) and all worked fine at start. But then I added some changes for terrain etc. And now the AI (my allies and enemies) are building just some buildings and allies aren't training units.
Could someone test the map and help?
Thanks.
 

Attachments

  • Dalaran.w3x
    1.1 MB · Views: 51
Last edited by a moderator:
Level 25
Joined
May 11, 2007
Messages
4,650
In map Init, why do you run "Start melee script" for player 1 when player 1 is the player?

About "only made some changes to the terrain"..
You also did a couple of changes in the object editor, for example you replaced the Footman in the barracks with the swordsman.

The AI only knows to train the default units that are in the buildings, if you add or replace units it will NOT train those units.
So either you modify the units already in the buildings so the AI trains them, or you create a custom AI for the computers.



+ The AI's melee units can hit your sky fury towers near the bridges. :)
 
Level 4
Joined
Jan 17, 2015
Messages
40
In map Init, why do you run "Start melee script" for player 1 when player 1 is the player?

About "only made some changes to the terrain"..
You also did a couple of changes in the object editor, for example you replaced the Footman in the barracks with the swordsman.

The AI only knows to train the default units that are in the buildings, if you add or replace units it will NOT train those units.
So either you modify the units already in the buildings so the AI trains them, or you create a custom AI for the computers.



+ The AI's melee units can hit your sky fury towers near the bridges. :)


Yes I know that I changed the units. I will try to replace them with footman, but I don't think that's the problem. I read somewhere that removing all mercenary camps can cause such errors with AI. In fact I removed all mercenary camps and then I put them back. Maybe that's the problem.
And plus now the allies aren't building much buildings so I don't think this is because of unit replacement.
 
Level 25
Joined
May 11, 2007
Messages
4,650
No.. That is the problem.

The AI uses an AI script to determine which units it should train and how many of them.
It doesn't just randomly train units that it have in the barracks.

So what you need to do is to create a new AI script for your race. Like open the AI editor and open the GruntMaster.AI script and change it into your race.
 
Level 4
Joined
Jan 17, 2015
Messages
40
No.. That is the problem.

The AI uses an AI script to determine which units it should train and how many of them.
It doesn't just randomly train units that it have in the barracks.

So what you need to do is to create a new AI script for your race. Like open the AI editor and open the GruntMaster.AI script and change it into your race.

Thanks.
 
Last edited:
Status
Not open for further replies.
Top