HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need help from someone who knows everything about .AI files

07-29-2003, 04:06 AM#1
Sardius
What does the line

"call SetReplacements(2,2,3"

do?

and how does Call defenders work??
For example I placed 1 kodo beast on my map in their base, which should be unaffected by the ai script I believe?

Then I set them to have like 1,1,1 Kodobeast, easy,normal,hard...
as a defender.

How is it they would always have 3 kodo beasts in their base as defensive units? They would build 2 extra for defenders instead of 1 it seems. I don't seem to understand how it works.
07-29-2003, 10:45 AM#2
AIAndy
SetReplacements is a function that calls SetReplacementCount with the first value on easy with the second on normal and with the third on hard. I am not sure what exactly SetReplacementCount does but I guess it causes the AI to always build and rebuild that many of all units they have at the beginning and that those don't count to the numbers ordered in the .ai script.
I have never tested it so that might be completely wrong.