HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

AI team order bugged

06-08-2014, 09:52 PM#1
testermelee
Hi,I have a pesky problem that's very hard to fix or solve.For example,I set player "Teal" to use "air force ai" Prototype 2,Blue for "ground force(cyborg ai)"Prototype,and last purple is "Advance ground force ai(Cyborg 2 ai)Prototype 3.I set FFA for 3 computer ai to play is fine,but when I set team with some ai,then the problem comes.

-Player with air force ai,the air force ai change into "ground force ai(Defualt ai).
-Player with advance gground force ai,advance ground force ai change into (Default ai) again.
-No problem with player with (default ai).

So,what am I did wrong?A little support will be appreciated.Thanks.

Screenshot






06-20-2014, 01:03 PM#2
MasterofSickness
Hi!

Never worked with AI scripts so far, but I know that functions that are executed while initialization can cause troubles. So if you experience any problems with your trigger & the trigger event is a map initialization event, try debugging by using a pause:
Trigger:
Initialization
Collapse Events
Map initialization
Conditions
Collapse Actions
Wait 2.00 seconds
Player - Set Player 1 (Red) Current Gold to 750
...
Be aware that this is still not such a secure solution. As far as I know, safest way for functions that should run at map initialization is to use timers (with 1 second or alike) for those functions, so that they get executed slightly after actual map initialization.
If this doesnt solve your problem Im sorry, but thats the only advise I can give you, perhaps someone else already worked with AI scripts...