This is a part of script calling the bulgarian uprising:
and second one:PHP Code:monitor_event FactionTurnStart FactionIsLocal
if I_CompareCounter miasto_zdobyte = 1
generate_random_counter bunt_bulgarow 1 6
end_if
end_monitor
Log, as usually, says nothing.PHP Code:monitor_event FactionTurnEnd FactionIsLocal
and I_CompareCounter bunt_bulgarow = 1
and I_SettlementOwner Sofia = byzantium
historic_event start_bunt_bulgaria true
spawn_army
(...)
end
siege_settlement Aleksei, Sofia, attack
set_counter siege_sofia 1
end_monitor
Unfortunately it doesn't work. Historic_event is an indicator of efficiency of the code. I give it for each of levels of the script. If script does work - historic_event shows me an info if doesn't - i have no info.
In this case i have no info, so i suppose there is a problem connected with exporting the value of the event to the next level of the script.
I would like to ask someone wise to check it and advise me what need i change to make this script operational.




Reply With Quote







