[GS] Best way to remove a leader

IgorS

Your ad could be here!
Joined
Sep 28, 2008
Messages
2,297
Location
Rishon
Hi. I have donwloaded a mod that makes Ludwig the leader of a separate Bavarian civ. This mod retains him as a leader for Germany as well though. My question is: what is the best way to remove Ludwig as leader of Germany?
 
There might be complications, but the simplest way is to remove an entry from CivilizationLeaders. Heres an example of a CivilizationLeaders Entry:
Code:
INSERT INTO CivilizationLeaders(LeaderType, CivilizationType, CapitalName) VALUES
('SLTH_LEADER_TEST', 'CIVILIZATION_ENGLAND', 'LOC_CITY_ENGLAND_1_NAME');

So to get rid of it, you could just do
DELETE FROM CivilizationLeaders WHERE LeaderType='LUDWIG_OR_WHATEVER' and CivilizationType='WHATEVER_GERMANY_REFERENCE_IS';

You will also probably need to delete an entry from the frontend Players table too, so he isnt pickable as Germany when starting a game as that would probably break stuff

DELETE FROM Players WHERE LeaderType='LUDWIG_OR_WHATEVER' and CivilizationType='WHATEVER_GERMANY_REFERENCE_IS';
 
There might be complications, but the simplest way is to remove an entry from CivilizationLeaders. Heres an example of a CivilizationLeaders Entry:
Code:
INSERT INTO CivilizationLeaders(LeaderType, CivilizationType, CapitalName) VALUES
('SLTH_LEADER_TEST', 'CIVILIZATION_ENGLAND', 'LOC_CITY_ENGLAND_1_NAME');

So to get rid of it, you could just do
DELETE FROM CivilizationLeaders WHERE LeaderType='LUDWIG_OR_WHATEVER' and CivilizationType='WHATEVER_GERMANY_REFERENCE_IS';

You will also probably need to delete an entry from the frontend Players table too, so he isnt pickable as Germany when starting a game as that would probably break stuff

DELETE FROM Players WHERE LeaderType='LUDWIG_OR_WHATEVER' and CivilizationType='WHATEVER_GERMANY_REFERENCE_IS';
Thanks. I've already resolved this issue by finding a mod that removes leaders, and altering the code in it to suit my needs.
"
DELETE FROM Players
WHERE LeaderType = 'LEADER_LUDWIG';
"
did the job.
 
Top Bottom