About that heir selector, I found/reworked the Ancillary to this
Code:
Ancillary authority_power
Type selector
Transferable 1
Image heir_selector.tga
ExcludedAncillaries authority_power
Description authority_power_desc
EffectsDescription authority_power_effects_desc
Effect Authority 10
Then I made the Trigger :
Code:
Trigger authority_power
WhenToTest CharacterTurnEnd
Condition AgentType = named character
and not HasAncType selector
and not FactionwideAncillaryExists authority_power
and not IsFactionLeader
and not IsFactionAIControlled
AcquireAncillary authority_power Chance 100
And to remove the Authority when he becomes Leader :
Code:
Trait HeirAuthority
Character family
Hidden
Level RemoveAuthority
Description RemoveAuthority_desc
EffectsDescription RemoveAuthority_effects_desc
Threshold 1
Effect Authority -10
Code:
Trigger heirselectorremove
WhenToTest CharacterTurnStart
Condition IsFactionLeader
and HasAncType selector
Affects HeirAuthority 1 Chance 100
But if the player gives the Anc. to someone else by drag drop, I bet it won't remove the Trait ? Any idea to solve that ? Would this trigger do the job ?
Code:
Trigger heirselectorremoveremoved
WhenToTest CharacterTurnStart
Condition IsFactionLeader
and not HasAncType selector
Affects HeirAuthority -1 Chance 100