How do i replace a leader without switching ideologies?

So im trying to make an election in my mod but i was just wondering, how do i swap the leaders?

You would need to create a new leader to replace the current one, and then kill the current one.

So that would go like so:

create_country_leader = {

name = LOCALISTAION_REFERENCE_FOR_NAME

desc = "LOCALISTAION_REFERENCE_FOR_DESCRIPTION"

picture = GFX_AFG_mohammed_zahir_shah #This is a GFX reference

expire = "1965.1.1" #When they should die naturally

ideology = stalinism #The sub-ideology for the one they will rule over

traits = {

#Any traits the leader should have

}

}

kill_country_leader = yes


You would need to create a new leader to replace the current one, and then kill the current one.

So that would go like so:

create_country_leader = {

name = LOCALISTAION_REFERENCE_FOR_NAME

desc = "LOCALISTAION_REFERENCE_FOR_DESCRIPTION"

picture = GFX_AFG_mohammed_zahir_shah #This is a GFX reference

expire = "1965.1.1" #When they should die naturally

ideology = stalinism #The sub-ideology for the one they will rule over

traits = {

#Any traits the leader should have

}

}

kill_country_leader = yes


-jordsta95

 ty