HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Basic question: Difference between Start Campaign and Melee AI?

01-05-2004, 10:35 AM#1
Tommi
I've been wondering a while what is the difference between starting an AI as a melee AI and a campaign AI. I presume they have different native behaviors, but what are they?

Cheers,

Tommi
01-05-2004, 11:01 AM#2
Vidstige
I can't tell you the answer, but my first thought is to compare the trigger running on map initialization on a melee map with the one running on a (blizzard made) campaign map. Look up the parts regarding ai script start-up and convert them to code. If this doesn't tell you what you want, you probably have to go and check what the code actually does in common.ai, or maybe common.j.
01-05-2004, 11:48 AM#3
Tommi
Ah, thanks. Stupid me. I'll check that. :)
01-05-2004, 12:04 PM#4
AIAndy
The problem is that there is actually not necessarily much code difference. There are actually 2 such points where you can set a difference between Campaign and Melee AI. One is the native that starts the script. There is one for starting a campaign AI and one for a melee AI. And then you can also do such a setting in the AI itself. There are 2 natives again. One to make it a melee AI and one to make it a Campaign AI.
I don't think there are many differences in between these. My guess is that it mainly influences if the AI helps an allied computer or not.
Well, I guess the best thing is to set up a simple AI and then test all the 4 different combinations to look what is different.