Hi, i'm new to modding with sql, and I was wondering if it is possible to SET a yield with a variable that changes during the game ?
So let's say i want to change the Aztec's tlachtli to only a culture yield, based on bonus hapiness.
The only way i found related to a city bonus hapiness is with "LOC_HOF_GRAPH_CITY_POPULATION" (I'm not even sure this is really the city population of the building) and Entertainment.
My first thought was :
DELETE FROM Building_YieldChanges WHERE BuildingType='BUILDING_TLACHTLI' AND YieldType='YIELD_FAITH';
UPDATE Building_YieldChanges SET YieldChange=Entertainment-LOC_HOF_GRAPH_CITY_POPULATION//2 WHERE BuildingType='BUILDING_TLACHTLI';
I guess it doesn't work this way, and It should be more complicated. How would you do it ?
So let's say i want to change the Aztec's tlachtli to only a culture yield, based on bonus hapiness.
The only way i found related to a city bonus hapiness is with "LOC_HOF_GRAPH_CITY_POPULATION" (I'm not even sure this is really the city population of the building) and Entertainment.
My first thought was :
DELETE FROM Building_YieldChanges WHERE BuildingType='BUILDING_TLACHTLI' AND YieldType='YIELD_FAITH';
UPDATE Building_YieldChanges SET YieldChange=Entertainment-LOC_HOF_GRAPH_CITY_POPULATION//2 WHERE BuildingType='BUILDING_TLACHTLI';
I guess it doesn't work this way, and It should be more complicated. How would you do it ?