HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

AI that does nothing

02-20-2004, 06:16 AM#1
neenja
How can I make an AI for my map that just has the comps do nothing?

The idea is to have a comp who is sharing his units with 2 players, so they both control him, but i dont want the comp to do anything..

...no help? did i post in the wrong forum for this?
02-21-2004, 07:14 PM#2
Quezacotl
no this is ai relavent.

okay, set it so at the beggining that melee init-actions-
Set AI for all melee comps.

then do whatever you need to make the comps control him

now make a blank ai that does nothing.

have a trigger give the comp who you dont want to do anything your blank ai.


or, you could make the player neutral or rescuable, or something else.

im not so sure though either, since ive never thought of the idea
02-21-2004, 07:27 PM#3
neenja
the main problem is that, i can get the comp not to do anything EXCEPT one problem..

When a peasant/peon/acolyte ect is built, a order is sent to (it seems) ALL peons owned by that player, to go and mine 1 round of gold.. It's very odd I have no idea how to stop it.
02-22-2004, 07:11 PM#4
Tommi
How about removing Melee Game - start melee AI scripts for all computer players?

If you don't start an AI script, computers won't do anything, not even mine.
02-22-2004, 07:17 PM#5
neenja
did it, they are hard coded it seems to mine gold, try it its weird
02-23-2004, 01:45 PM#6
Vidstige
How about ordering all created builders to stop directly after being created?
02-23-2004, 02:16 PM#7
neenja
wouldnt that again interrupt orders that i DO want to happen based on rally points or just previous commands?
02-23-2004, 02:28 PM#8
Vidstige
Maybe you only stop newly created units which has recieved the harvest gold order... I'll see if I can find something out.
02-25-2004, 01:20 AM#9
neenja
what is the "harvest gold" order though? thanks for helping me, last step in my map hehe
02-25-2004, 03:31 AM#10
Vidstige
It is possible to order a peasant to harvest either gold or lumber, it is also possible to check which order a unit is currently following.

Because your peasants starts to collect gold immidiatly, they somehow must have recieved a harvest gold order, they question is just by whom and why... When I create peasants, they also starts harvesting wheter I like it or not...
02-25-2004, 04:05 AM#11
neenja
So you see the problem I mean now?
02-28-2004, 05:43 PM#12
neenja
No?
02-28-2004, 07:40 PM#13
Vidstige
Eh... yes I do. But what are the units supposed to do? Which orders are they going to follow, and how will they get them?
02-28-2004, 08:41 PM#14
neenja
I want the units to do NOTHING, because im having 2 players have shared control of a 3rd computer player, so its a shared bases type thing...

They control him, and that all works, but for some reason the peons mine gold whenever a new building is made or peon is created...
02-29-2004, 05:20 AM#15
Vidstige
What's wrong with them mining anyway?
What is really the problem? :bgrun:
Will everything mess up if a peon moves? :////