monitor_event PreFactionTurnStart FactionType france ; infos triggers will go here
if I_SettlementOwner Paris = france
and RandomPercent < 40
if I_EventCounter albigensian_heresy = 0
log -------------------- France evolution: ALBIGENSIANS ----------------------------------------
set_event_counter continue 0
if I_TurnNumber > 30
and I_SettlementOwner Poitiers = france ; France is close to Toulouse
and I_SettlementOwner Clermont = france
set_event_counter continue 1
; both conditions and effects to be developed
end_if
if I_TurnNumber > 50 ; FALL BACK - in case of failure or a bug
set_event_counter continue 1
end_if
if I_EventCounter continue = 1
set_event_counter continue 0
historic_event albigensian_heresy factions { france, hre, england, scotland, norway, poland, hungary, aragon, spain, portugal, pisa, venice, }
if not I_IsFactionAIControlled france
inc_event_counter france3_Albigensian_Crusade_player 1
end_if
end_if
end_if
if I_EventCounter money_first_ecu = 0
and I_EventCounter albigensian_heresy = 1
and I_TurnNumber > 270 ; ECU - mint more productive
log ------ ecu
historic_event MONEY_FIRST_ECU factions { france, hre, england, poland, hungary, aragon, spain, portugal, }
terminate_monitor
end_if
end_if
end_monitor