Page 1 of 1

Quick question concerning leaders

Posted: Aug 10 2017
by Undecided
Where in the scenario file can I find the line(s) that dictate what leader names/portraits will be associated with a given country?

Re: Quick question concerning leaders

Posted: Aug 11 2017
by YoMomma
I only know for modern games. There is a file Leaders2020.csv in sandbox. You gotta find the region number and the portrait number. The portraits can be found in Graphics.

I had to fix Hillary, for some reason she is there to stay in my vanilla file, while Trump is president, but for my mod i had to fix it. Anyway prolly ignore that. But damn it was confusing and going through all the portraits. Prolly an easier way.

Re: Quick question concerning leaders

Posted: Aug 17 2017
by vahadar
All leaders are listed in the DEFAULT.PPLX file (in \Maps\DATA), this file is called in the .scenario file

You can add new line there, and even call them with events using event 20 in the .CSV file

exemple in the PPLX file :

With region num :

Code: Select all

//Mod Vietnam revolt
2024,2,Bao,Dai,,,,,,595,,,,,,,,2197,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
Here i'm creating a line with id 2024 (for SR1936), leader Bao Dai with pic num 595 for country id 2197 (which is Vietnam in the .cvp file)

Without region num :

Code: Select all

//Mod Vietnam revolt
3134,2,Duy,Tan,Emperor,,0,0,14,3022,,,,,,,,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
This is for a 14 years old Duy Tan, emperor in 1914, id line 3134, using picture num id 3022

Then back to our events in the The Great War - 1914.CSV file to specify the id of the line i added in the .PPLX file (here is 3134 for Duy Tan), making this emperor leader of Vietnam.

Code: Select all

//Setting Vietnam2197 leader Duy Tan3134 at game start
70040, 0, 0, 20, 10, 2197,-1 , 0, 0, 0, 1, 0,3134,,, , , , , ,
picnum ids of leader are found in \Graphics\People

Hope this helps

Re: Quick question concerning leaders

Posted: Aug 17 2017
by Buzzbrad
I'd also recommend taking a look at our wiki. It has a lot of modding info: https://supremeruler.gamepedia.com/Supreme_Ruler_Wiki