• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Wider

Recruit
72 Badges
Jun 7, 2017
3
0
  • Stellaris
  • Europa Universalis IV: El Dorado
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Rule Britannia
  • Age of Wonders: Planetfall - Revelations
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Prison Architect
  • Cities: Skylines
  • Stellaris: Galaxy Edition
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Cradle of Civilization
  • BATTLETECH
  • Shadowrun: Hong Kong
  • Shadowrun Returns
  • Crusader Kings III
  • Age of Wonders: Planetfall Season pass
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • BATTLETECH - Digital Deluxe Edition
  • Age of Wonders: Planetfall Deluxe edition
  • Age of Wonders: Planetfall
  • Shadowrun: Dragonfall
  • Teleglitch: Die More Edition
  • Victoria 2
  • Age of Wonders: Planetfall Premium edition
  • Europa Universalis IV: Conquest of Paradise
  • Knights of Honor
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • A Game of Dwarves
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Art of War
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: Wealth of Nations
  • Sword of the Stars
  • Cities: Skylines Deluxe Edition
I'm thinking of creating a simple mod, such as adding some 'elite version' of vanilla troops.

If I have designated the base type of troops, such as base_type = pikeman, does the vanilla tactics affect the stats of this troop? Or should I find all the tactics that affect the pikeman unit's ability and put the new troop's stat change values if necessary?
 

redtide

Magister Ludi
57 Badges
Jun 19, 2010
479
71
  • Crusader Kings II: Charlemagne
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Heir to the Throne
  • Crusader Kings II
  • Europa Universalis III Complete
  • Europa Universalis III
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Victoria 3 Sign Up
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Cities: Skylines - Green Cities
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Cities: Skylines Industries
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Prison Architect
  • Cities: Skylines
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Semper Fi
  • Teleglitch: Die More Edition
  • Victoria 2
  • 500k Club
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Stellaris
  • Crusader Kings II: Reapers Due
I believe that your elite pikemen would...

(1) satisfy triggers of the form
Code:
pikemen = 0.01
i.e. tactics triggers would check the sum of vanilla pikemen and your elite pikemen.

(2) fail to satisfy modifiers of the form
Code:
heavy_troops = {
     who = pikemen
     value = 0.3
}
You might consider replacing such a modifier with one like this:
Code:
OR = {
     heavy_troops = {
          who = pikemen
          value = 0.3
     }
     heavy_troops = {
          who = elite_pikemen
          value = 0.3
     }
}
But that modifier would not be satisfied even when heavy troops are composed of at least 30% of some combination of vanilla pikemen and elite pikemen. I don't know if there's a way to check whether the sum of the two is at least a certain percentage of heavy troops.

(3) fail to receive bonuses imparted via
Code:
pikemen_offensive = 3
And, as you said, you would need to add e.g. elite_pikemen_offensive = 3 in order for them to receive the bonus.