how to script notifications that a princess has come of age
Simply study SS6.2/6.3 scripts :
Code:
;--- Princess Comes of Age
monitor_event CharacterComesOfAge AgentType = princess
and FactionIsLocal
historic_event princess_local
end_monitor
monitor_event CharacterComesOfAge AgentType = princess
and FactionType england
and not FactionIsLocal
historic_event princess_england
end_monitor
monitor_event CharacterComesOfAge AgentType = princess
and FactionType france
and not FactionIsLocal
historic_event princess_france
end_monitor
monitor_event CharacterComesOfAge AgentType = princess
and FactionType hre
and not FactionIsLocal
historic_event princess_hre
end_monitor
monitor_event CharacterComesOfAge AgentType = princess
and FactionType milan
and not FactionIsLocal
historic_event princess_milan
end_monitor
monitor_event CharacterComesOfAge AgentType = princess
and FactionType venice
and not FactionIsLocal
historic_event princess_venice
end_monitor
monitor_event CharacterComesOfAge AgentType = princess
and FactionType spain
and not FactionIsLocal
historic_event princess_spain
end_monitor
monitor_event CharacterComesOfAge AgentType = princess
and FactionType portugal
and not FactionIsLocal
historic_event princess_portugal
end_monitor
monitor_event CharacterComesOfAge AgentType = princess
and FactionType sicily
and not FactionIsLocal
historic_event princess_sicily
end_monitor
monitor_event CharacterComesOfAge AgentType = princess
and FactionType byzantium
and not FactionIsLocal
historic_event princess_byzantium
end_monitor
monitor_event CharacterComesOfAge AgentType = princess
and FactionType russia
and not FactionIsLocal
historic_event princess_russia
end_monitor
monitor_event CharacterComesOfAge AgentType = princess
and FactionType denmark
and not FactionIsLocal
historic_event princess_denmark
end_monitor
monitor_event CharacterComesOfAge AgentType = princess
and FactionType poland
and not FactionIsLocal
historic_event princess_poland
end_monitor
monitor_event CharacterComesOfAge AgentType = princess
and FactionType hungary
and not FactionIsLocal
historic_event princess_hungary
end_monitor
monitor_event CharacterComesOfAge AgentType = princess
and FactionType moors
and not FactionIsLocal
historic_event princess_moors
end_monitor
monitor_event CharacterComesOfAge AgentType = princess
and FactionType turks
and not FactionIsLocal
historic_event princess_turks
end_monitor
monitor_event CharacterComesOfAge AgentType = princess
and FactionType egypt
and not FactionIsLocal
historic_event princess_egypt
end_monitor
monitor_event CharacterComesOfAge AgentType = princess
and FactionType jerusalem
and not FactionIsLocal
historic_event princess_jerusalem
end_monitor
monitor_event CharacterComesOfAge AgentType = princess
and FactionType kievan_rus
and not FactionIsLocal
historic_event princess_kievan_rus
end_monitor
monitor_event CharacterComesOfAge AgentType = princess
and FactionType aragon
and not FactionIsLocal
historic_event princess_aragon
end_monitor
monitor_event CharacterComesOfAge AgentType = princess
and FactionType scotland
and not FactionIsLocal
historic_event princess_scotland
end_monitor
monitor_event CharacterComesOfAge AgentType = princess
and FactionType norway
and not FactionIsLocal
historic_event princess_norway
end_monitor
for faction leader death :
Code:
;--- Death of Leaders
monitor_event BecomesFactionLeader FactionType moors
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event moors_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType moors
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event moors_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType portugal
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event portugal_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType portugal
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event portugal_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType spain
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event spain_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType spain
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event spain_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType turks
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event turks_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType turks
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event turks_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType egypt
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event egypt_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType egypt
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event egypt_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType byzantium
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event byzantium_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType byzantium
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event byzantium_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType russia
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event russia_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType russia
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event russia_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType poland
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event poland_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType poland
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event poland_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType hungary
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event hungary_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType hungary
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event hungary_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType hre
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event hre_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType hre
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event hre_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType france
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event france_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType france
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event france_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType england
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event england_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType england
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event england_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType scotland
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event scotland_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType scotland
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event scotland_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType venice
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event venice_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType venice
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event venice_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType milan
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event milan_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType milan
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event milan_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType sicily
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event sicily_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType sicily
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event sicily_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType jerusalem
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event jerusalem_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType jerusalem
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event jerusalem_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType kievan_rus
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event kievan_rus_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType kievan_rus
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event kievan_rus_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType aragon
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event aragon_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType aragon
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event aragon_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType denmark
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event denmark_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType denmark
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event denmark_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType norway
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event norway_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType norway
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event norway_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType teutonic_order
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event teutonic_order_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType teutonic_order
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event teutonic_order_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType jerusalem
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event jerusalem_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType jerusalem
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event jerusalem_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType kwarezm
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event kwarezm_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType kwarezm
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event kwarezm_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType cumans
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event cumans_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType cumans
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event cumans_regent_event
end_monitor
declare_counter timurids_king
monitor_event CeasedFactionLeader FactionType timurids
and not FactionIsLocal
set_counter timurids_king 1
terminate_monitor
end_monitor
monitor_event BecomesFactionLeader FactionType timurids
and not FactionIsLocal
and not Trait FactionRegent > 0
and I_CompareCounter timurids_king = 1
historic_event timurids_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType timurids
and not FactionIsLocal
and Trait FactionRegent > 0
and I_CompareCounter timurids_king = 1
historic_event timurids_regent_event
end_monitor
monitor_event BecomesFactionLeader FactionType mongols
and not FactionIsLocal
and not Trait FactionRegent > 0
historic_event mongols_king_event
end_monitor
monitor_event BecomesFactionLeader FactionType mongols
and not FactionIsLocal
and Trait FactionRegent > 0
historic_event mongols_regent_event
end_monitor
same thing for the heir,
heirs or princesses are married off
Using the traits, maybe with this :
Code:
---------------------------------------------------
Identifier: CharacterMarries
Event: A Character has married
Exports: nc_character_record, character_record, faction, region_id, character_type
Class: ET_MARRIAGE
Author: Lee
---------------------------------------------------