nomonhan said:
My point exactly. The warlords do not have leaders. Maybe this is a problem only because the warlords "belong" to Nationalist China but the bottom line is the same: the warlords do not have leaders. They only get leaders by save and reload.
I've tried sleeping the Nationalist Chinese leaders in event 3814 and firing the original event chain and you are right. Nationalist China does get the leaders. So this appears to be a warlord only bug.
You need "sleepleader" before country annexation. So every annexed and liberated country without realod have not any leaders (execept dormant ones)! Not only China.
If in the time of "China Surrender" event, warlords exists and you must sleep their leaders before "inherit" them by China and they will have their leaders. But it's another - better way. Make copies of all leaders with different "id" number in leaders.csv ex. nationalistchina.csv. Add them as dormant in scenario file to country - ex. chi_36.inc. And now after only first liberation, they will at once dormant leaders

( no matter who is liberator). But you have to made an event which sleeps all original leaders, becouse
somebody could reload game in time between annexation and liberation. This event must be persistent. Becouse in the time of possible second liberation - country will have both normal and dormant leaders when game is reloaded in this time. It is working for all countries in time of first liberation. Second need game reload. (dormant will be loaded). BTW. command wakeleader don't work. It teoretically wake dormant leaders .... See: German event which wake leaders in time of Austria annexation or American and Russian pilot to China. These leaders can't be waken that way .....
event = {
id = 150840000
trigger = {
ai = yes
}
random = no
country = CHI
name = "AI_EVENT"
desc = "AI_EVENT"
style = 0
date = { day = 1 month = january year = 1936 }
action_a = {
command = { type = local_setflag which = is_independent }
}
}
event = {
id = 150840001
trigger = {
ai = yes
NOT = { local_flag = is_independent }
}
random = no
country = CHI
persistent = yes
name = "AI_EVENT"
desc = "AI_EVENT"
style = 0
date = { day = 2 month = january year = 1936 }
offset = 1
deathdate = { day = 29 month = december year = 1953 }
action_a = {
# sleep original leaders just in case of game reloading before country liberation
command = { type = sleepleader which = 50000 }
command = { type = sleepleader which = 50001 }
(etc.)
(etc.)
command = { type = local_clrflag which = is_independent }
}
}