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

[GS] [XML/SQL] Simple one city challenge tick box option

Discussion in 'Mod Creation Help' started by __jack__, Jan 3, 2020.

  1. __jack__

    __jack__ Warlord

    Joined:
    Dec 29, 2009
    Messages:
    141
    Hi,

    I have created a simple game.configuration tickbox in the FrontEnd with XML.

    I want to execute at simple sql code:
    UPDATE Units SET PrereqPopulation = '99' WHERE UnitType = 'UNIT_SETTLER'; to prevent players from building settler if this is ticked.

    How can I affect the gameplay data through SQL using my FrontEnd tickbox ?
    (I am thinking criteria in *.modinfo but how can I tie it to a specific tickbox?)

    (All the rest I can do it with the lua by simply checking the Game.Configuration:GetValue("tickbox"))
     
  2. frutiemax

    frutiemax Chieftain

    Joined:
    Jan 19, 2015
    Messages:
    94
    I think it would be easier for you to go with the PrereqBuilding thing. If you are in one city mode, with the lua script you remove the dummy building from all cities.
     
  3. LeeS

    LeeS Imperator Supporter

    Joined:
    Jul 23, 2013
    Messages:
    7,205
    Location:
    Illinois, USA
    I don't think anyone has been able to solve the issue with getting a tickbox being turned on in the FrontEnd to execute a criteria in the modinfo file. Rulesets are known to work, as are the ExpansionInUse type of modinfo criteria. It would actually be far easier to just issue a stand-alone mod that creates the InGame effects desired. Players then just turn on or off the entire mod.
     
    frutiemax likes this.
  4. __jack__

    __jack__ Warlord

    Joined:
    Dec 29, 2009
    Messages:
    141
    Problem is that it was more of a side show option on the BBS mod.
    I have tried to access the Dev through the CivPlayer League channel - if they are coming back to me with an answer I ll paste it there
     

Share This Page