Hello again
Yes, I don't have other interests 
I made small script whose aim is to destabilize the diplomatic relations between Byzantium and Turkey. It should work on two levels:
1. declare a war
2. convene a militia forces
1. War is triggering by a randomly selected event.
2. Militia forces should be convened in on of specified provinces.
3. When there is a clear weakening of one of the warring parties, the script forces the conclusion of peace.
Unfortunately, script doesn't work and i suppose i found the place of stopping it.
This is a script:
PHP Code:
;<<<<<<<<<<<<<<<<<Bizancjum Turcja>>>>>>>>>>>>>>>>>>
declare_counter turcy_wojna
declare_counter turcy_pomoc_dana
declare_counter byzantium_pomoc_dana
declare_counter turcy_pomoc
declare_counter byzantium_pomoc
monitor_event FactionTurnStart FactionIsLocal
and I_TurnNumber > 3
and I_NumberOfSettlements byzantium > 0
and I_NumberOfSettlements turks > 0
and not DiplomaticStanceFromFaction turks = AtWar
generate_random_counter turcy_wojna 1 100
set_counter turcy_pomoc_dana 0
set_counter byzantium_pomoc_dana 0
end_monitor
monitor_event FactionTurnStart FactionIsLocal
and I_EventCounter turcy_wojna > 10
historic_event ola true
console_command diplomatic_stance turks byzantium war
set_faction_standing turks byzantium 0.3
historic_event turcy_wojna true factions { turks , byzantium , }
end_monitor
monitor_event FactionTurnStart FactionType turks
historic_event ola true factions { turks , byzantium , }
and IsFactionAIControlled turks
generate_random_counter turcy_pomoc 1 3
if I_EventCounter turcy_pomoc = 3
if I_SettlementOwner Iconium = turks
and I_EventCounter turcy_pomoc_dana = 0
spawn_army
(...)
end
set_counter turcy_pomoc_dana 1
end_if
if I_SettlementOwner Caesarea = turks
and I_EventCounter turcy_pomoc_dana = 0
and not I_SettlementOwner Iconium = turks
spawn_army
(...)
end
set_counter turks_pomoc_dana 1
end_if
if I_SettlementOwner Malazgirt = turks
and I_EventCounter turcy_pomoc_dana = 0
and not I_SettlementOwner Iconium = turks
and not I_SettlementOwner Caesarea = turks
spawn_army
(...)
end
set_counter turcy_pomoc_dana 1
end_if
end_if
if I_EventCounter turcy_pomoc < 3
end_if
end_monitor
monitor_event FactionTurnStart FactionType byzantium
and IsFactionAIControlled byzantium
generate_random_counter byzantium_pomoc 1 3
if I_EventCounter byzantium_pomoc = 3
if I_SettlementOwner Nicaea = byzantium
and I_EventCounter byzantium_pomoc_dana = 0
spawn_army
(...)
end
set_counter byzantium_pomoc_dana 1
end_if
if I_SettlementOwner Smyrna = byzantium
and I_EventCounter byzantium_pomoc_dana = 0
and not I_SettlementOwner Nicaea = byzantium
spawn_army
(...)
end
set_counter byzantium_pomoc_dana 1
end_if
if I_SettlementOwner Heraclea = byzantium
and I_EventCounter byzantium_pomoc_dana = 0
and not I_SettlementOwner Nicaea = byzantium
and not I_SettlementOwner Smyrna = byzantium
spawn_army
(...)
end
set_counter byzantium_pomoc_dana 1
end_if
end_if
if I_EventCounter byzantium_pomoc < 3
end_if
end_monitor
declare_counter bizancjum_turcy_pokoj
monitor_event FactionTurnStart FactionType turks
and I_NumberOfSettlements byzantium > 0
and I_NumberOfSettlements byzantium < 4
and I_NumberOfSettlements turks > 0
and DiplomaticStanceFromFaction byzantium = AtWar
if IsFactionAIControlled byzantium
generate_random_counter turcy_tak_nie 1 2
if I_EventCounter turcy_tak_nie = 1
set_counter bizancjum_turcy_pokoj_tak 1
end_if
if I_CompareCounter turcy_tak_nie = 2
set_counter bizancjum_turcy_pokoj_nie 1
end_if
end_if
if not IsFactionAIControlled byzantium
historic_event bizancjum_turcy_pokoj true
end_if
end_monitor
monitor_conditions I_EventCounter bizancjum_turcy_pokoj_tak = 1
console_command diplomatic_stance turks byzantium peace
set_faction_standing turks byzantium 0.6
set_event_counter bizancjum_turcy_pokoj_tak 0
historic_event pokoj_zawarty true factions { turks , byzantium , }
end_monitor
monitor_conditions I_EventCounter bizancjum_turcy_pokoj_nie = 1
set_event_counter bizancjum_turcy_pokoj_nie 0
historic_event pokoj_odrzucony true factions { turks , byzantium , }
end_monitor
declare_counter turcy_bizancjum_pokoj
monitor_event FactionTurnStart FactionType byzantium
and I_NumberOfSettlements turks > 0
and I_NumberOfSettlements turks < 3
and I_NumberOfSettlements byzantium > 0
and DiplomaticStanceFromFaction turks = AtWar
if IsFactionAIControlled turks
generate_random_counter bizancjum_tak_nie 1 2
if I_CompareCounter bizancjum_tak_nie = 1
set_counter turcy_bizancjum_pokoj_tak 1
end_if
if I_CompareCounter bizancjum_tak_nie = 2
set_counter turcy_bizancjum_pokoj_nie 1
end_if
end_if
if not IsFactionAIControlled byzantium
historic_event turcy_bizancjum_pokoj true
end_if
end_monitor
monitor_conditions I_EventCounter turcy_bizancjum_pokoj_tak = 1
console_command diplomatic_stance turks byzantium peace
set_faction_standing turks byzantium 0.6
set_event_counter turcy_bizancjum_pokoj_tak 0
historic_event pokoj_zawarty true factions { turks , byzantium , }
end_monitor
monitor_conditions I_EventCounter turcy_bizancjum_pokoj_nie = 1
set_event_counter turcy_bizancjum_pokoj_nie 0
historic_event pokoj_odrzucony true factions { turks , byzantium , }
end_monitor
The script stopping on line:
PHP Code:
historic_event ola true factions { turks , byzantium , }
This line of code was introduced specifically in order to localize the site of any trouble.
I don't understand the first line of monitor, so i suppose this is the place where i've screwed up.
Log of course says nothing