• 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.
  • Vote for the theme of Hive's HD Modeling Contest #7! Click here to vote! - Please only vote if you plan on participating❗️

AI Question

Status
Not open for further replies.
Level 2
Joined
Oct 28, 2010
Messages
14
Okay, so, in my map, there is a region surrounding certain areas near gold mines. I've dealt with the issue of allowing Town Halls and Great Halls to be built closer to a gold mine on my own, but this is a completely different thing altogether.

Basically, I'm using the MELEE AI for this map. However, I want it so that, if they decide to expand and build their respective "primary structure" (meaning building a Town Hall if Human, Great Hall if Orc, etc.), they only build in the center of the region, showcased here, and nowhere else in that grassy spot:
yOihTDP.png


Is it possible to do that? Again, to reiterate:

1. If the AI melee player decides to expand, they can only build their respective "primary structure" in the center of that colored region.
2. Aside from their primary structure, the AI can build whatever else that fits in the grassy area.
 
Level 23
Joined
Feb 6, 2014
Messages
2,466
From the looks of it, the AI would most lilely build their town hall there. Have you tested it and saw where they build it?

If they didn't build it there, the workarounds I can think of are:
1. When a townhall enters the region there, instantly move that townhall to your desired location.
2. I'm not sure abojt this but if you can detect when an AI is ordered to build a townhall within that region, replace the order by a build a town hall in the center.
3. Trigger it, when an ai controlled worker enters that region and there is no townhall yet in the center, order that worker to build a townhall
 
Status
Not open for further replies.
Top