City Resistance?

Discussion in 'Civ5 - Creation & Customization' started by TheOneHitPupper, Jan 2, 2022.

  1. TheOneHitPupper

    TheOneHitPupper Chieftain

    Joined:
    Jun 15, 2017
    Messages:
    97
    How would I go about coding Resistance in a city in lua? I have pCity defined, but can't find the proper lua method to implement city resistance there.

    I am also using the Community Patch DLL, if that helps.

    The only relevant information I've found are these two links:
    unhappiness revolt questions and Gedemon's Github page for his Civ5-RED-DLL-BNW-Build
     
    Last edited: Jan 2, 2022
  2. whoward69

    whoward69 DLL Minion

    Joined:
    May 30, 2011
    Messages:
    8,590
    Location:
    Near Portsmouth, UK
    pCity:ChangeResistanceTurns(iTurns) should do it
     
    TheOneHitPupper likes this.
  3. TheOneHitPupper

    TheOneHitPupper Chieftain

    Joined:
    Jun 15, 2017
    Messages:
    97
    Beautiful. Thank you whoward :thumbsup:
     
  4. whoward69

    whoward69 DLL Minion

    Joined:
    May 30, 2011
    Messages:
    8,590
    Location:
    Near Portsmouth, UK

Share This Page