September 8, 2000, 14:18
|
#1
|
King
Local Time: 20:09
Local Date: October 30, 2010
Join Date: Dec 1969
Location: USA - EDT (GMT-5)
Posts: 2,051
|
How to make AIs fight the human player, and not each other?
I'm trying to create a "you against the world" type scenario, where all the AIs fight against the human player. By use of MAKEAGRESSION statements every turn and disabling negotiations between the human player and Anybody, I have the AIs mostly attacking the human player (although some of them are still cordial or receptive when I check with the cheat menu). I tried this first with the vendetta flag and the total war flag, but there seems to be no substitute for using the events file.
The big problem is that the AIs all want to fight each other. I've tried the same setup with and without the "total war" flag; it doesn't seem to matter, the AIs fight like cats and dogs. I don't really want the AIs trading techs and swapping units around, but I would like them to concentrate on the human player instead of wasting their firepower on each other.
Some rules.txt excerpts:
@IF
TURN
turn=every
@THEN
MAKEAGRESSION
who=Romans
whom=Apolytoners
@ENDIF
(repeated for each AI civ)
@IF
NEGOTIATION
talker=Anybody
talkertype=humanorcomputer
listener=Apolytoners
listenertype=humanorcomputer
@THEN
@ENDIF
@IF
NEGOTIATION
talker=Apolytoners
talkertype=humanorcomputer
listener=Anybody
listenertype=humanorcomputer
@THEN
@ENDIF
And, in an attempt to get AI attack units off their duffs:
@IF
TURNINTERVAL
interval=10
@THEN
MOVEUNIT
unit=Horsemen
owner=Romans
maprect
15,15, 83,15, 83,65, 15,65
moveto
55,47
numbertomove=ALL
@ENDIF
And similar constructs for each AI civ, for various units. I couldn't use Anyunit, because then the AI settlers wouldn't build new cities.
Things are mostly working: the AI units show up at my borders, and usually attack. The AIs never initiate conversation, and I can't talk to them. But when I go into cheat mode and look at the map, the AIs have large armies engaging each other. I'd prefer that those units were sent to harass the human player instead.
Any suggestions?
|
|
|
|
September 8, 2000, 17:25
|
#2
|
Emperor
Local Time: 02:09
Local Date: October 31, 2010
Join Date: Mar 2000
Posts: 8,278
|
Have you edited the AI civs if they are at war with eachother from the beginning or not? I mean, via the cheat menu. Select "edit king", then the civ, then "change treaty" (or so, I have the German version ) and set "peace" ON for every pair of AI civs, but select "war" between human and AI civs.
Hope it helps...
------------------
Civ2000
|
|
|
|
September 9, 2000, 22:39
|
#3
|
Prince
Local Time: 00:09
Local Date: October 31, 2010
Join Date: Dec 1969
Location: Red Front
Posts: 556
|
If the AIs can talk to eachother they will eventually go to war. You need basically to disable all talking between civs.
Do the negotiation statement but make it: anybody, humanorcomputer > anybody, humanorcomputer.
I have been successful in Second Front (My current project) in making 3 AI civs that coexist and have the same name and same colors which allows for some very interesting features like having some units confined to certain areas. For example one of the Civs is the airforce of the AI, making certain cities airbases AND only those cities.
In 100s of turn of playtesting I have never had the AIs go to war with eachother, even though their cities are completely intermingled.
|
|
|
|
September 10, 2000, 00:05
|
#4
|
Settler
Local Time: 01:09
Local Date: October 31, 2010
Join Date: Aug 2000
Location: Bari, Italy
Posts: 24
|
If you make AI civs allied with each other and prohibit negotiations w.e.o. they will be forced not to fight w.e.o. Changing their feelings toward you and/or your reputation can be the first step, and changing attack/expand/civilize parameters in rules.txt -> @LEADERS would make their attitude constantly hostile to you.
|
|
|
|
September 14, 2000, 07:43
|
#5
|
King
Local Time: 20:09
Local Date: October 30, 2010
Join Date: Dec 1969
Location: USA - EDT (GMT-5)
Posts: 2,051
|
Thanks, all, for your help. Disabling negotiations between the AIs does seem to keep them at peace.
|
|
|
|
September 15, 2000, 00:13
|
#6
|
Guest
|
Put all the AI players in "vendetta" against the human.
Cancel negotiations between computer players(?)
|
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
All times are GMT -4. The time now is 20:09.
|
|