• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Doubt in AI script

Status
Not open for further replies.
Level 4
Joined
Jul 30, 2010
Messages
57
I would like to know if is possible to make some AI script where the workers have two build list with an ability to change then. What i mean is, if the script order the worker to build an altar (for example) but the altar is in the other list, is it possible to issue the worker to change the list and to build the altar after?
 
Its possible. If you can have many workers you just get the AI to have atleast 1 of each and use each as a separate pool of workers.

If you only have 1 worker, you just need to create a system which handles build piority and changes based on needs. For example if it must have an alter at a certain step, it changes to the alter form and makes it. After the alter it may need a stable, so it changes back to make it.

If you are very lazy, just order the AI to change very 15 seconds if it is not doing anything and only has 1 worker. For multiple workers the lazy approach would be just to make sure the AI has both types of worker available at any given time.
 
go to AI EDITOR >>> BUILDING tab...but be sure to import everything via IMPORT in the GENERAL tab if you are building custom units, otherwise AI wont do what you want them to do...

I am talking about the trigger i must use for the AI. Which trigger i should use to check when the AI should build something in the other list.
I know how to change the building list with triggers i just don't know how to check when it's time to do it :/
 
I am talking about the trigger i must use for the AI. Which trigger i should use to check when the AI should build something in the other list.
I know how to change the building list with triggers i just don't know how to check when it's time to do it :/

actually, if you are using AI editor, you cant ask the AI to build another OUTSIDE the building priority, coz they will just cancel them or leave that building INCOMPLETE...

if you use triggers, use an index system for that, but believe me its very complicated...AI editor is the best for building units using AI...
 
actually, if you are using AI editor, you cant ask the AI to build another OUTSIDE the building priority, coz they will just cancel them or leave that building INCOMPLETE...

if you use triggers, use an index system for that, but believe me its very complicated...AI editor is the best for building units using AI...

Ok Ok i will try that idea of change every 5 minutes
Thanks anyway. :D
 
Status
Not open for further replies.
Back
Top