Changing AI Scripts?

Post Reply
User avatar
thebrowncloud
Zerg Hydralisk Nail Stylist
Zerg Hydralisk Nail Stylist
Posts: 570
Joined: Sat Jul 04, 2009 11:17 am

Changing AI Scripts?

Post 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?
"Imagination is the beginning of creation. You imagine what you desire, you will what you imagine and at last you create what you will."
-George Bernard Shaw
tipereth
Zerg Hydralisk Nail Stylist
Zerg Hydralisk Nail Stylist
Posts: 597
Joined: Tue Sep 19, 2006 7:37 pm

Re: Changing AI Scripts?

Post by tipereth »

Could give the units to a different computer and then run the AI script, I think.
User avatar
thebrowncloud
Zerg Hydralisk Nail Stylist
Zerg Hydralisk Nail Stylist
Posts: 570
Joined: Sat Jul 04, 2009 11:17 am

Re: Changing AI Scripts?

Post 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!  :)
"Imagination is the beginning of creation. You imagine what you desire, you will what you imagine and at last you create what you will."
-George Bernard Shaw
User avatar
omega20
Zerg Ultralisk Waste Manager
Zerg Ultralisk Waste Manager
Posts: 692
Joined: Sun Apr 06, 2008 7:38 am

Re: Changing AI Scripts?

Post 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. ;)
[imgwh 400x120]http://www.sigrealm.com/freesigs/178_Starcraft2MultSig.jpg[/imgwh]
User avatar
IskatuMesk
Xel'naga World Shaper
Xel'naga World Shaper
Posts: 8332
Joined: Sat Feb 07, 2009 1:40 pm
Location: M͈̙̞͍͞ͅE̹H̨͇̰͈͕͇̫Ì̩̳CO̼̩̤͖͘ జ్ఞ‌ా
Contact:

Re: Changing AI Scripts?

Post 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.
Gameproc
Though we stand alone, stand we shall.
User avatar
GnaReffotsirk
Zerg Larva Herder
Zerg Larva Herder
Posts: 338
Joined: Sat Nov 15, 2008 4:54 am

Re: Changing AI Scripts?

Post 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.
Image
User avatar
thebrowncloud
Zerg Hydralisk Nail Stylist
Zerg Hydralisk Nail Stylist
Posts: 570
Joined: Sat Jul 04, 2009 11:17 am

Re: Changing AI Scripts?

Post 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!  :)
"Imagination is the beginning of creation. You imagine what you desire, you will what you imagine and at last you create what you will."
-George Bernard Shaw
Post Reply