How can I make permanent war between two civs (without map editor!)

CivWarGamer

Warlord
Joined
Oct 16, 2011
Messages
130
Is there some XML code or something I can edit to create a state of permanent war between two civs without the use of the map editor?
 
damn, doesn't look like there is. Dumb. Also doesn't appear to be a way to adjust civ-to-civ relationship parameters. Dumb!
 
with lua, an example to set a permanent war between player 0 (the human in single player) and player 1 :

Code:
local player = Players[ 0 ]
local player2 = Players[ 1 ]
local team = Teams[ player:GetTeam() ]
local team2 = Teams[ player2:GetTeam() ]
team:DeclareWar( player2:GetTeam() )
team:SetPermanentWarPeace( player2:GetTeam(), true)
team2:SetPermanentWarPeace( player:GetTeam(), true)

if you want to do it for human vs city states, then you may have to remove the "make peace" button from the CS menu, that's a bit more complicated, but can be done, there's an example in my WWII mod in RedDiplomacy.lua (search "HideMinorWarButton") for reference
 
Lua, eesh. bummer, but thanks.
 
Back
Top Bottom