sman1975
Emperor
Hello,
I'm trying to use SQL to make a change to the Policies database - IF Vox Populi is NOT enabled (i.e. in case of a normal, non-VP game).
Here is the syntax:
'COMMUNITY' is a table created by the VP mod, otherwise it does not exist in the normal Civ 5 tables.
I've used this subquery with EXISTS successfully in other parts of the mod.
There is a 'Reference' in my mod that ensures VP will load first, if it is enabled.
I've also tried to set the subquery even more restrictive:
Neither statement seems to work. I've looked through other mods and found several examples that look to be structured similarly to these.
What am I missing??? Thanks!
I'm trying to use SQL to make a change to the Policies database - IF Vox Populi is NOT enabled (i.e. in case of a normal, non-VP game).
Here is the syntax:
Code:
UPDATE Policies SET BuildingGoldMaintenanceMod = -33
WHERE Type='POLICY_TRADE_UNIONS' AND NOT EXISTS (SELECT * FROM COMMUNITY);
'COMMUNITY' is a table created by the VP mod, otherwise it does not exist in the normal Civ 5 tables.
I've used this subquery with EXISTS successfully in other parts of the mod.
There is a 'Reference' in my mod that ensures VP will load first, if it is enabled.
I've also tried to set the subquery even more restrictive:
Code:
UPDATE Policies SET BuildingGoldMaintenanceMod = -33
WHERE Type='POLICY_TRADE_UNIONS' AND NOT EXISTS (SELECT * FROM COMMUNITY WHERE Type='COMMUNITY_CORE_BALANCE_UNITS' AND Value = 1);
Neither statement seems to work. I've looked through other mods and found several examples that look to be structured similarly to these.
What am I missing??? Thanks!