Help needed - Making mountains provide + 1 culture as part of a trait

Kritzo

Chieftain
Joined
Jan 20, 2014
Messages
13
Hi all. Of part of a trait to a civ I want mountains to provide + 1 culture. (It's going to be for a scenario so it will make sense ;) ) Looking at a guide for adding custom traits, and looking at how the celts have defined their trait, I've made this:

sql:
Spoiler :

Code:
INSERT INTO Trait_TerrainYieldChanges (TraitType, TerrainType, YieldType, Yield)
SELECT 'TRAIT_HIGH', Type, 'YIELD_CULTURE', 1
FROM Terrains WHERE Type IN (
	'TERRAIN_MOUNTAIN',
);


xml:
Spoiler :

Code:
<Table name="Trait_TerrainYieldChanges">
		<Column name="TraitType" type="text" reference="Traits(Type)"/>
		<Column name="TerrainType" type="text" reference="Terrains(Type)"/>
		<Column name="YieldType" type="integer" reference="Yields(Type)"/>
		<Column name="Yield" type="integer"/>
</Table>


I originally tried to copy the celts "Trait_UnimprovedFeatureYieldChanges" but it obviously doesn't work as a mountain is a terrain type and not a feature type. So I tried to "make my own" I havn't been able to find guides on this part, so I don't know if I'm doing it right.

Help will be very appreciated! Thanks
 
I used the method described in this thread for one of my own civilizations, and it worked. It depends on using Lua to put a terrain feature identical to a Mountain on each mountain hex.

I know LastSword mentioned having a somewhat different method to do it now, but that one's worked for me, at least.
 
Thanks alot! :) Made it work with a combo of my old, and the new :)

Also thanks to LastSword for indirectly helping me again
 
Code:
	<Features>
		[COLOR="Red"]<InsertOrAbort>[/COLOR]
			<Type>FEATURE_TIBET_MOUNTAIN</Type>
			<Description>Mountain</Description>
			<Civilopedia>Mountain</Civilopedia>
			<Help>Mountain</Help>
			<ArtDefineTag></ArtDefineTag>
			<Movement>1</Movement>
			<PortraitIndex>8</PortraitIndex>
			<IconAtlas>NW_ATLAS</IconAtlas>
		[COLOR="Red"]</InsertOrAbort>[/COLOR]
	</Features>
Take in mind, that plot can have only one feature.
To maxilimize compatibility, I would recommend use FEATURE_TIBET_MOUNTAIN as type and "InsertOrAbort" instead of "Row".
 
Take in mind, that plot can have only one feature.
Does the game consider hills to be a terrain or feature type? Because if feature, then couldn't a plot have two features - hills and forest?
Nope, apparently hills are a terrain type. But then how does the game manage to get two types of terrain onto one plot? :think:
 
Nope, apparently hills are a terrain type. But then how does the game manage to get two types of terrain onto one plot? :think:

Because hills aren't a terrain type but a plot type

Plot: Ocean, Flat, Hills, Mountain
Terrain: Plains, Grass, Desert, etc
Feature: Forrest, Ice, Oasis, Atolls, Natural Wonders, etc
Resource: Cows, Iron, Dyes, etc
Improvement: Farm, Fallout, Good Hut, etc

A hex/tile can have ONLY one from each group
 
Top Bottom