1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Insta Razing Cities on capture

Discussion in 'CivBE - Modding Help & Mod Creation' started by Gaia_, Apr 21, 2017.

  1. Gaia_

    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?
     
  2. Ryika

    Ryika Lazy Wannabe Artista

    Joined:
    Aug 30, 2013
    Messages:
    9,396
    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.
     
  3. roadmaster

    roadmaster Chieftain

    Joined:
    Apr 28, 2015
    Messages:
    20
    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.
     
  4. Ryika

    Ryika Lazy Wannabe Artista

    Joined:
    Aug 30, 2013
    Messages:
    9,396
    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...

    ...should allow you to raze all cities that show the dialog, including capitals, and possibly cities that are your puppets.
     

Share This Page