Need help with a custom trait

Toussaint10326

Chieftain
Joined
Jul 28, 2017
Messages
84
Location
United States
So I'm working on a Portugal mod and I want my Civilization trait to grant a free scout for every scout produced. The problem is I have no idea where to start. If anyone could help that'd be great. BTW my mod is in a SQL format, so I have a GameDefines.sql where the trait would be listed.
 
take a look at scythias civilization ability (you'll find that in civilizations.xml, one of the modifiers is called TRAIT_EXTRALIGHTCAVALRY)
you will need a new modifier of the same type (MODIFIER_PLAYER_UNITS_ADJUST_EXTRA_UNIT_COPY_TAG)
and arguments: Tag = CLASS_RECON

if you dont know how modifiers work, i can recomend reading this: https://nycholusv.com/guides/using-modifiers/
 
Back
Top Bottom