Insta Razing Cities on capture

Gaia_

Chieftain
Joined
Mar 30, 2016
Messages
17
I'd like to instantly raze/remove a City on capture ... just like in Civ V when you had OCC ticked.

Does anyone have an idea on whether/how this can be accomplished in Civ BERT?
 
Might want to try City.Kill(), not sure if it works though.

If not, you can work around it by setting a city's population to 0 with City.SetPopulation() and it will be automatically removed at the beginning of the next turn.
That workaround isn't very "elegant" of course.
 
Might want to try City.Kill(), not sure if it works though.

If not, you can work around it by setting a city's population to 0 with City.SetPopulation() and it will be automatically removed at the beginning of the next turn.
That workaround isn't very "elegant" of course.

Sometimes I get annoyed with the fact that I cannot Raze a races Capital City, do you know if SetPopulation() to 0 would work on a Capital City? Ive always done my Mods in xml so ill have to brush up on lua to try this.
 
Yeah, that should work, too.

But if you just want more freedom with razing, then maybe just playing around with PuppetCityPopup.lua may be the better solution.

Haven't tested it, but removing the bolded lines from this part for example...

-- Initialize 'Raze' button.
local bRaze = activePlayer:CanRaze(newCity);
if (bRaze) then
local OnRazeClicked = function()
Network.SendDoTask(cityID, TaskTypes.TASK_RAZE, -1, -1, false, false, false, false);
end

buttonText = Locale.ConvertTextKey("TXT_KEY_POPUP_RAZE_CAPTURED_CITY");
strToolTip = Locale.ConvertTextKey("TXT_KEY_POPUP_CITY_CAPTURE_INFO_RAZE", iUnhealthForAnnexing);
AddButton(buttonText, OnRazeClicked, strToolTip);
end

-- CITY SCREEN CLOSED - uh oh, original comment: "Don't look, Marc"
local CityScreenClosed = function()
UIManager:DequeuePopup(Controls.EmptyPopup);
if ( CityScreenClosed ~= nil ) then
Events.SerialEventExitCityScreen.Remove(CityScreenClosed);
end
end
...should allow you to raze all cities that show the dialog, including capitals, and possibly cities that are your puppets.
 
Back
Top Bottom