Labs for minor countries

A forum to discuss custom scenarios, campaigns and modding in general.

Moderators: Slitherine Core, The Lordz

Post Reply
Kossatx
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 241
Joined: Wed Nov 27, 2013 3:27 pm

Labs for minor countries

Post by Kossatx »

Hi, someone knows how to allow artillery or naval labs for countries that haven't as Spain or Sweden?
DanielHerr
Senior Corporal - Destroyer
Senior Corporal - Destroyer
Posts: 117
Joined: Sun Jan 11, 2015 7:51 pm
Contact:

Re: Labs for minor countries

Post by DanielHerr »

This will be in my mod at viewtopic.php?f=218&t=55355

Haven't tested much yet, but adding this to the end of the files should work:

factions.lua:

Code: Select all

for a, nation in pairs(data.factions) do
 if nation.research.ground then
  nation.research = { ground = 1, artillery = 1, naval = 1, air = 1, armour = 1 }
 end
end
units.lua:

Code: Select all

for a, unit in pairs(data.units) do
 if table.getn(unit.factions) > 1 then
  unit.factions = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22)
 end
end
danielherr.github.io
Kossatx
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 241
Joined: Wed Nov 27, 2013 3:27 pm

Re: Labs for minor countries

Post by Kossatx »

One year later, thanks DanielHerr :D
Post Reply

Return to “Commander the Great War : Mods & Scenario Design”