HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Melee AI Running For All But 1 Comp

07-20-2004, 07:09 AM#1
Dark_Uber
I'm not sure if this question should go in triggers or AI, but I think it fits better here. In a map I'm working on I wish to have all but one computer player run Melee AI. I tryed using "Melee Game - Run AI", but this function runs it for all the players. Does anyone know how I can have this run for all computer players except Player (12)? Thanks for any help I recive...
07-20-2004, 08:18 AM#2
AIAndy
AI - Start Melee AI Script
07-20-2004, 08:25 AM#3
Dark_Uber
When I use "AI - Start Melee AI Script" map.ai all the computer did was send workers to the gold mine, and for undead it did nothing. Is there any way to turn off AI for a player?
07-20-2004, 02:50 PM#4
Rafael Br
I am not sure, but you should not use map.ai but use the default melle ai names (human.ai, orc.ai).
07-20-2004, 03:52 PM#5
Dark_Uber
I tryed using map.ai, nightelf.ai, human.ai, undead.ai, and orc.ai but they all had the same effect. There was mimimal movement like sending peons to lumber or gold. The only way I have found to make AI accually work is "Run Melee AI Scripts for (Computer Players). But that always messes up the non-melee things that brown is ordered to do. But like I said before I want the computer players to have AI except brown.

It would work good If I could start Melee AI Scripts for (Computer Players) then turn off for brown. I'm really can't find a trigger for this though...

Also, someone tell me if I need to use a different "????.ai"
07-20-2004, 09:38 PM#6
AIAndy
The nightelf script is elf.ai, the rest is correct and it should work.
07-21-2004, 01:05 AM#7
Dark_Uber
Ok, thanks for the help. This trigger has the job done EXCEPT for undead. Is the AI for undead not undead.ai? If not, please tell me what it is.

Player Group - Pick every player in (All players matching (((Matching player) controller) Equal to Computer)) and do (Player Group - Add (Picked player) to Computer_Players)

Player Group - Remove Player 12 (Brown) from Computer_Players

Player Group - Pick every player in (All players matching ((Race of (Matching player)) Equal to Human)) and do (If (((Picked Player) is in Computer_Players) Equal to True) then do (AI - Start melee AI script for (Picked Player): human.ai) else do (Do nothing))

Player Group - Pick every player in (All players matching ((Race of (Matching player)) Equal to Orc)) and do (If (((Picked Player) is in Computer_Players) Equal to True) then do (AI - Start melee AI script for (Picked Player): orc.ai) else do (Do nothing))

Player Group - Pick every player in (All players matching ((Race of (Matching player)) Equal to Undead)) and do (If (((Picked Player) is in Computer_Players) Equal to True) then do (AI - Start melee AI script for (Picked Player): undead.ai) else do (Do nothing))

Player Group - Pick every player in (All players matching ((Race of (Matching player)) Equal to Night Elf)) and do (If (((Picked Player) is in Computer_Players) Equal to True) then do (AI - Start melee AI script for (Picked Player): elf.ai) else do (Do nothing))


Edit: Problem Solved, I just had a typo in a string for undead. Thanks for the help guys! :D