Page 1 of 1
Changing AI Scripts?
Posted: Wed Sep 02, 2009 1:56 pm
by thebrowncloud
Alright, so I looked through the forum a bit and didn't find anything about this. Is it possible to have a comp player switch AI scripts after a certain point during a mission? I want to switch a player from an area town script to custom campaign insane, but it doesn't seem to be working.... Thoughts?
Re: Changing AI Scripts?
Posted: Wed Sep 02, 2009 2:00 pm
by tipereth
Could give the units to a different computer and then run the AI script, I think.
Re: Changing AI Scripts?
Posted: Wed Sep 02, 2009 2:04 pm
by thebrowncloud
tipereth wrote:
Could give the units to a different computer and then run the AI script, I think.
Oh, that's actually a really good idea! And I could make both computer players the same color so no one would notice the difference. Thanks, man!

Re: Changing AI Scripts?
Posted: Wed Sep 02, 2009 3:36 pm
by omega20
thebrowncloud wrote:
tipereth wrote:
Could give the units to a different computer and then run the AI script, I think.
Oh, that's actually a really good idea! And I could make both computer players the same color so no one would notice the difference. Thanks, man!
That's an option. Another option would be to run the 'Clear Previous Combat Data' AI Script once you want to switch AI scripts. Then, run the insane AI Script.

Re: Changing AI Scripts?
Posted: Wed Sep 02, 2009 4:04 pm
by IskatuMesk
omega20 wrote:
thebrowncloud wrote:
tipereth wrote:
Could give the units to a different computer and then run the AI script, I think.
Oh, that's actually a really good idea! And I could make both computer players the same color so no one would notice the difference. Thanks, man!
That's an option. Another option would be to run the 'Clear Previous Combat Data' AI Script once you want to switch AI scripts. Then, run the insane AI Script.
The only thing clear combat data does is reset the target of the AI's attack protocols. It's used in AO and RD to make the AI change targets; it should have no bearing at all on any other function of the AI.
Re: Changing AI Scripts?
Posted: Thu Sep 03, 2009 3:36 am
by GnaReffotsirk
That is correct. When the AI is given a Start Town command through script, there's no going back. It's all stacking from there. Stack more and without proper timing, the AI gets stuck or become weaker than it is.
One solution is to give all units to another computer slot, then run another script.
At least that's how it has been in my experience and through the methods I've been taking.
Re: Changing AI Scripts?
Posted: Thu Sep 03, 2009 12:54 pm
by thebrowncloud
GnaReffotsirk wrote:
That is correct. When the AI is given a Start Town command through script, there's no going back. It's all stacking from there. Stack more and without proper timing, the AI gets stuck or become weaker than it is.
One solution is to give all units to another computer slot, then run another script.
At least that's how it has been in my experience and through the methods I've been taking.
Yeah, that looks like what I'm gonna do. Thanks Gna and tipereth!
