declare_counter scotland_emerge;;;;Первое (First) восстание со 100% шансомmonitor_event SettlementTurnStart SettlementName Invernessand I_NumberOfSettlements scotland < 1set_counter scotland_emerge 1terminate_monitorend_monitormonitor_event SettlementTurnStart SettlementName Invernessand SettlementIsLocaland I_NumberOfSettlements scotland < 1and SettlementLoyaltyLevel < loyalty_contentand I_TurnNumber > 0and I_CompareCounter scotland_emerge = 0set_counter scotland_emerge 1end_monitormonitor_event SettlementTurnStart SettlementName Invernessand not SettlementIsLocal;For AI (Для ИИ)and I_NumberOfSettlements scotland < 1and RandomPercent > 90;;;Вместо порядка для ИИ процент.and I_TurnNumber > 0and I_CompareCounter scotland_emerge = 0set_counter scotland_emerge 1end_monitormonitor_event FactionTurnEnd FactionType slaveand I_CompareCounter scotland_emerge = 1and not I_SettlementUnderSiege Invernessset_counter scotland_emerge 1set_counter not_event_kill_leader 1console_command create_building Inverness "hinterland_scriptai_build";;; Уберем бонусы от зданийadd_settlement_turmoil Inverness 10;;;; Добавим беспорядков.if RandomPercent > 50add_settlement_turmoil Aberdeen 7;;;; Этот город может тоже случайно бунтануть от беспорядков.end_ifspawn_army faction scotland character random_name, named character, age 37, x 46, y 260, direction S traits MilitaryInclination 1 , Military_Edu 3 , NaturalMilitarySkill 1 , GoodCommander 1 , PublicFaith 1 , Loyal 2 , GoodCavalryGeneral 2 , ReligionStarter 1 , LoyaltyStarter 1 , HighPersonalSecurity 3 unit NE Bodyguard exp 9 armour 0 weapon_lvl 0 unit Highland Nobles exp 2 armour 0 weapon_lvl 1 unit Highland Nobles exp 9 armour 1 weapon_lvl 1 unit Highlanders exp 8 armour 1 weapon_lvl 1 unit Highlanders exp 3 armour 1 weapon_lvl 1 unit Urban Spear Militia exp 9 armour 0 weapon_lvl 1 unit Urban Spear Militia exp 5 armour 0 weapon_lvl 1 unit Noble Swordsmen exp 3 armour 1 weapon_lvl 0 unit Noble Swordsmen exp 3 armour 1 weapon_lvl 0 unit Feudal Knights exp 9 armour 0 weapon_lvl 1 unit Feudal Knights exp 5 armour 0 weapon_lvl 1 unit Merchant Cavalry Militia exp 9 armour 0 weapon_lvl 1 unit Merchant Cavalry Militia exp 9 armour 1 weapon_lvl 1 unit Noble Swordsmen exp 9 armour 1 weapon_lvl 0 unit Noble Highland Archers exp 9 armour 1 weapon_lvl 0 unit Noble Highland Archers exp 1 armour 1 weapon_lvl 0 unit Border Horse exp 9 armour 0 weapon_lvl 0 unit Border Horse exp 9 armour 0 weapon_lvl 0 unit Halberd Militia exp 9 armour 0 weapon_lvl 0 unit Halberd Militia exp 9 armour 0 weapon_lvl 0 siegingif I_SettlementOwner Inverness = englandfaction_emerge scotland england 1 400.0 100.0 1.2 town true LeaderScotland Etgar 30end_if;;Итак для всех 30 фракций;;;;Нужно защитить город читерскими юнитами if I_SettlementOwner Inverness = scotlandcreate_unit Inverness, NE Bodyguard, num 2, exp 9, arm 1, wep 1create_unit Inverness, Feudal Knights, num 2, exp 9, arm 1, wep 1create_unit Inverness, Dismounted Feudal Knights, num 2, exp 9, arm 1, wep 1create_unit Inverness, Urban Spear Militia, num 2, exp 9, arm 1, wep 1create_unit Inverness, Noble Swordsmen, num 2, exp 9, arm 1, wep 1create_unit Inverness, Halberd Militia, num 2, exp 9, arm 1, wep 1end_ifif I_SettlementOwner Aberdeen = scotlandcreate_unit Aberdeen, NE Bodyguard, num 2, exp 9, arm 1, wep 1create_unit Aberdeen, Feudal Knights, num 2, exp 9, arm 1, wep 1create_unit Aberdeen, Dismounted Feudal Knights, num 2, exp 9, arm 1, wep 1create_unit Aberdeen, Urban Spear Militia, num 2, exp 9, arm 1, wep 1create_unit Aberdeen, Noble Swordsmen, num 2, exp 9, arm 1, wep 1create_unit Aberdeen, Halberd Militia, num 2, exp 9, arm 1, wep 1end_ifhistoric_event capital_scotlandset_counter scotland_emerge 2end_monitormonitor_event PreFactionTurnStart FactionIsLocaland I_CompareCounter scotland_emerge = 2set_counter scotland_emerge 0set_counter not_event_kill_leader 0destroy_buildings scotland hinterland_scriptai_build falseend_monitor