;#####################################################################
;############### Baron Samedi's Elven Reforging script ###############
;#####################################################################
;#########################Lindon reforging script
declare_counter start_building
monitor_event FactionTurnStart FactionType egypt
and I_CompareCounter go_reforging = 1
and not IsFactionAIControlled
and I_LocalFaction egypt
and I_CompareCounter start_building = 0
and I_SettlementOwner Mithlond = egypt
and I_SettlementOwner Harlindon = egypt
and I_SettlementOwner Forlindon = egypt
and I_SettlementOwner Imladris = egypt
and I_SettlementOwner Emyn-Beraid = egypt
and I_SettlementOwner Eregion = egypt
and I_SettlementOwner Druwaith-Iaur = egypt
and I_SettlementOwner Enedwaith = egypt
and I_CharacterExists elrond1
set_event_counter start_building 1
historic_event lindon_notification factions { egypt, }
terminate_monitor
end_monitor
monitor_event FactionTurnStart FactionType egypt
and I_CompareCounter go_reforging = 1
and not IsFactionAIControlled
and I_LocalFaction egypt
and I_SettlementOwner Mithlond = egypt
and I_SettlementOwner Harlindon = egypt
and I_SettlementOwner Forlindon = egypt
and I_SettlementOwner Imladris = egypt
and I_SettlementOwner Emyn-Beraid = egypt
and I_SettlementOwner Eregion = egypt
and I_SettlementOwner Druwaith-Iaur = egypt
and I_SettlementOwner Enedwaith = egypt
and I_CharacterExists elrond1
and FactionBuildingExists >= m_gwaith_i_mirdain
and FactionBuildingExists >= m_greek_history
add_events
event counter reforged_accepted
event counter reforged_declined
end_add_events
historic_event reforged true factions { egypt, }
terminate_monitor
end_monitor
;----------------- accept ------------------------------------
declare_counter lindon_completed
declare_counter high_king_noldor
declare_counter lindon_anc
monitor_conditions I_EventCounter reforged_accepted = 1
historic_event reforged_accepted factions { egypt, }
set_event_counter high_king_noldor 1
set_event_counter lindon_anc 1
set_event_counter lindon_completed 1
add_money egypt 2000
increment_kings_purse egypt 500
terminate_monitor
end_monitor
;------------------ reject ------------------------------------
monitor_conditions I_EventCounter reforged_declined = 1
historic_event reforged_declined factions { egypt, }
terminate_monitor
end_monitor
;#########################Woodland reforging script
declare_counter start2_building
monitor_event FactionTurnStart FactionType mongols
and I_CompareCounter go_reforging = 1
and not IsFactionAIControlled
and I_LocalFaction mongols
and I_SettlementOwner West-Mirkwood = mongols
and I_SettlementOwner Deep-Mirkwood = mongols
and I_SettlementOwner Central-Mirkwood = mongols
and I_SettlementOwner New_Mirkwood = mongols
and I_SettlementOwner Elven-Mirkwood = mongols
set_event_counter start2_building 1
historic_event woodland_notification factions { mongols, }
terminate_monitor
end_monitor
monitor_event FactionTurnStart FactionType mongols
and I_CompareCounter go_reforging = 1
and not IsFactionAIControlled
and I_LocalFaction mongols
and I_SettlementOwner Wrakyaburg = mongols
and I_SettlementOwner Lower-Anduin-Vale = mongols
and I_SettlementOwner Lowest-Anduin-Vale = mongols
and I_SettlementOwner West-Mirkwood = mongols
and I_SettlementOwner Deep-Mirkwood = mongols
and I_SettlementOwner Central-Mirkwood = mongols
and I_SettlementOwner New_Mirkwood = mongols
and I_SettlementOwner Elven-Mirkwood = mongols
and FactionBuildingExists >= a_greek_flora
and FactionBuildingExists >= m_greek_dance
add_events
event counter reforged2_accepted
event counter reforged2_declined
end_add_events
historic_event reforged2 true factions { mongols, }
terminate_monitor
end_monitor
;----------------- accept ------------------------------------
declare_counter woodland_completed
declare_counter king_of_woodland
declare_counter woodland_realm_anc
monitor_conditions I_EventCounter reforged2_accepted = 1
historic_event reforged2_accepted factions { mongols, }
set_event_counter woodland_completed 1
set_event_counter king_of_woodland 1
set_event_counter woodland_realm_anc 1
add_money mongols 2000
increment_kings_purse mongols 500
terminate_monitor
end_monitor
;------------------ reject ------------------------------------
monitor_conditions I_EventCounter reforged2_declined = 1
historic_event reforged2_declined factions { mongols, }
terminate_monitor
end_monitor
;------------------ dol Guldur name-change --------------------
declare_counter Dol_Guldur
monitor_conditions I_SettlementOwner Deep-Mirkwood = mongols
and I_CompareCounter go_reforging = 1
and I_CompareCounter Dol_Guldur = 0
set_counter Dol_Guldur 1
change_settlement_name Deep-Mirkwood Amon-Lanc
end_monitor
monitor_conditions not I_SettlementOwner Deep-Mirkwood = mongols
and I_CompareCounter go_reforging = 1
and I_SettlementOwner Deep-Mirkwood = england
and I_CompareCounter Dol_Guldur = 1
set_counter Dol_Guldur 0
change_settlement_name Deep-Mirkwood Deep-Mirkwood
end_monitor