
Originally Posted by
Sir Edward
So a question to EB, Is it possible to have as a Victory Condition that your leader is required to have a certain trait?
Yes.
In fact, this is how we keep track of raiding targets. As an example, here is the section of EBBS_SCRIPT.TXT which handles the Sweboz victory conditions:
Code:
;--------------------------
; SWEBOZ Victory Conditions
;--------------------------
monitor_event CharacterTurnStart FactionType germans
and CharacterIsLocal
and I_SettlementOwner Swebotraustastamnoz = germans
and I_SettlementOwner Gawjam_Heruskoz = germans
and I_SettlementOwner Gawjam_Habukoz = germans
and I_SettlementOwner Gawjam_Hattoz = germans
and I_SettlementOwner Gawjam_Kimbroz = germans
and I_SettlementOwner Gawjam_Rugoz = germans
and I_SettlementOwner Gawjam_Skandzawarjoz = germans
and I_SettlementOwner Gawjam_Gotanoz = germans
and I_SettlementOwner Eburonum = germans
and I_SettlementOwner Gawjam_Silengoz = germans
and I_SettlementOwner Bibracte = germans
and I_SettlementOwner Vindelicoppidos = germans
and I_SettlementOwner Vesontio = germans
and I_SettlementOwner Bagacos = germans
and I_SettlementOwner Bratosporios = germans
and I_SettlementOwner Gawjam_Bastarnoz = germans
and Trait ConqueredAventicos > 0
and Trait ConqueredVeldideno > 0
and Trait ConqueredIuvavoaeta > 0
and Trait ConqueredCarrodunum > 0
and Trait ConqueredViennos > 0
and Trait ConqueredPatavium > 0
and Trait ConqueredAscaucalis > 0
and I_CompareCounter victory = 0
console_command create_building Terhazza hinterland_victory
console_command victory germans
terminate_monitor
end_monitor
It would be easy for you to add a condition that the faction leader has a certain trait. Just add something like:
Code:
and FactionLeaderTrait Sometrait > 0
Bookmarks