View Full Version : AI Script Question
ghostwarrior07
01-11-2007, 10:24 PM
If i modify the techtree in any way, does that require a new ai script? Also, if i make one unit a harvester and another a builder will the ai work?
Well, I would expect you'd have to change it or the Computer will just build the normal units they would use for harvesting and stuff. Its better just to change the graphics and stuff for the reg ones then make new harvesters and builders. Well, in my opinion yea but, whatever you wanna do.
MaxedOutBC
01-11-2007, 11:19 PM
Not neccesary if you only ADDED a couple of units, but if you want the comp to use them, then you'll need new ai script. But if you did a change that you feel the AI must adapt to, then use SCAI Edit 3.1, which you can get here (http://www.staredit.net/index.php?download=3105).
Remember that you can ONLY modify MACRO of the new ai with SCAI Edit 3.1, and not the micro. For new workers, the computer should do fine as long as you tell the AI which to build and when, and you only use other workers (another unit will have a different harcoded micro than workers).
Need a tut? Here is one (http://www.entropyzero.org/broodwar_scripting_index.html).
matefkr
01-15-2007, 6:14 PM
I think you may have some complication with this job: in ai script we use an opcode to "build" workers and another one to "train" fighters and another units. We also use build command to create overlords. I will make a hack for check some features of ai handling.
More over, there are some automatic things in the ai. Sometimes it makes me very annoyed..
If you just started ai script-ing, take an advise from me: try to use multi threads such small numbers, as it is possible. If you use too many threads, the game will crash in a dot (so it will have closed automatically). And it seems like there is a mistake in the ai script handling: can you see any comp zergs with more then one level of ground upgrades?
The notowns_jump command looks for a building (or may be unit) in the unit list (which is in the memory), which "tell" that what type of building and where is this on the map (may be there is a statistic list too, with the standing buildings/units and it's numbers).
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.