I am trying to add a unique councillor for the chinese imperial government. I find it is said on the CKII wiki that(under the Councillor tab on the Modding Suggestions page):
However, when I open the council interface, the first councillor is chancellor but the second one is "Holder Condition". And there's a lot of other wrong councillors as "dismiss trigger" and even "}". I guess that the game cannot recognize the "allowed_to_grant" field in job_titles ("potential" doesn't work as well ). But wiki suggest I should do so.
Well, then I turn here to ask for help. I'd be grateful if anyone can give me some tips.
So I try to script like this:Add an "allowed_to_grant" or "potential" field for job titles, scoped to the liege (as there is for minor titles), to prevent them from showing up in the interface according to certain conditions.
Code:
# common/job_titles/00_job_titles.txt
job_chancellor = {
is_chancellor = yes
is_voter = yes
attribute = diplomacy
dignity = 0.33
opinion_effect = 10
monthly_salary = 0.1
monthly_prestige = 0.75
#allow = {
# can_be_chancellor_trigger = yes
#}
allowed_to_grant = {
always = no
}
allowed_to_hold = {
always = no
}
...
}
Well, then I turn here to ask for help. I'd be grateful if anyone can give me some tips.