[Vanilla] Add yield to plot.

fb2017

Chieftain
Joined
Oct 8, 2017
Messages
53
Is it possible to add yields to a plot if the player has a specific trait?

For example add +1 food and +1 production to desert tiles.
 
Last edited:
Code:
INSERT INTO Terrain_YieldChanges (TerrainType, YieldType, YieldChange)
VALUES ('TERRAIN_DESERT','YIELD_PRODUCTION','1'), ('TERRAIN_DESERT','YIELD_FOOD','1');

Should do what you want.
 
Code:
INSERT INTO Terrain_YieldChanges (TerrainType, YieldType, YieldChange)
VALUES ('TERRAIN_DESERT','YIELD_PRODUCTION','1'), ('TERRAIN_DESERT','YIELD_FOOD','1');

Should do what you want.

Thanks! I'm kind of new to SQL, so how could you make a trait that does this?
 
I would look at Peter's (Russia) Trait and go from there. I could do it for you, but give it a try and learn :)

Where are the SQL files located? I can only find the .xml files and not any "code". Can you find the trait in the game files or do you have to download something from the internet?
 
The game data is coded in XML. SQL is the (mainly) recommended way to edit it.

Look for my intro to modding with SQLite Studio tutorial in the tutorials section. It's a little outdated on some specifics of creating the base mod files (written before ModBuddy) but covers how SQL works at a very basic level.
 
The game data is coded in XML. SQL is the (mainly) recommended way to edit it.

Look for my intro to modding with SQLite Studio tutorial in the tutorials section. It's a little outdated on some specifics of creating the base mod files (written before ModBuddy) but covers how SQL works at a very basic level.
Ok, thx
 
Back
Top Bottom