• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

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

__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"))
 
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.
 
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.
 
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.

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
 
Back
Top Bottom