;============== William Wallace Uprising ================
declare_counter wallace_spawned
set_counter wallace_spawned 0
monitor_event FactionTurnStart FactionType scotland
and I_TurnNumber = 60
and I_NumberOfSettlements scotland < 4
set_counter wallace_spawned 1
terminate_monitor
end_monitor
monitor_event FactionTurnStart FactionType scotland
and I_NumberOfSettlements scotland < 2
set_counter wallace_spawned 1
terminate_monitor
end_monitor
monitor_event GeneralCaptureSettlement FactionType england
and TargetFactionType scotland
set_counter wallace_spawned 1
terminate_monitor
end_monitor
monitor_event PreFactionTurnStart FactionType scotland
and I_CompareCounter wallace_spawned = 1
spawn_army
faction scotland
character William Wallace, named character, age 20, x 55, y 253, direction SE, battle_model Wallace_General, portrait wallace, label scotland4wallace
traits MilitaryInclination 1 , Military_Edu 2 , NaturalMilitarySkill 2 , GoodCommander 1 , ScotlandHero 1 , LoyaltyStarter 1, BattleChivalry 2 , Loyal 2 , Just 2 , Rabblerouser 3 , Hardened 1
unit Highland Nobles exp 4 armour 0 weapon_lvl 1
unit Highland Nobles exp 2 armour 0 weapon_lvl 1
unit Highlanders exp 3 armour 1 weapon_lvl 1
unit Highlanders exp 3 armour 1 weapon_lvl 1
unit Highlanders exp 3 armour 1 weapon_lvl 1
unit Highland Pikemen exp 4 armour 1 weapon_lvl 0
unit Highland Pikemen exp 4 armour 1 weapon_lvl 0
unit Highland Pikemen exp 3 armour 1 weapon_lvl 0
unit Highland Pikemen exp 3 armour 1 weapon_lvl 0
unit Highland Nobles exp 3 armour 0 weapon_lvl 1
unit Highland Nobles exp 3 armour 0 weapon_lvl 1
unit Noble Highland Archers exp 1 armour 1 weapon_lvl 0
unit Noble Highland Archers exp 1 armour 1 weapon_lvl 0
unit Noble Highland Archers exp 1 armour 1 weapon_lvl 0
unit Highland Rabble exp 3 armour 0 weapon_lvl 0
unit Highland Rabble exp 3 armour 0 weapon_lvl 0
unit Highland Rabble exp 4 armour 0 weapon_lvl 0
unit Highland Rabble exp 4 armour 0 weapon_lvl 0
unit Border Horse exp 2 armour 0 weapon_lvl 0
unit Border Horse exp 2 armour 0 weapon_lvl 0
end
spawn_army
faction scotland
character random_name, named character, age 26, x 55, y 253
traits MilitaryInclination 1 , Military_Edu 2 , NaturalMilitarySkill 2 , GoodCommander 1 , LoyaltyStarter 1, BattleChivalry 2 , Loyal 2 , Just 2 , Rabblerouser 3 , Hardened 1
unit Highland Nobles exp 4 armour 0 weapon_lvl 1
unit Highland Nobles exp 2 armour 0 weapon_lvl 1
unit Highlanders exp 3 armour 1 weapon_lvl 1
unit Highlanders exp 3 armour 1 weapon_lvl 1
unit Highlanders exp 3 armour 1 weapon_lvl 1
unit Highland Pikemen exp 4 armour 1 weapon_lvl 0
unit Highland Pikemen exp 4 armour 1 weapon_lvl 0
unit Highland Pikemen exp 3 armour 1 weapon_lvl 0
unit Highland Pikemen exp 3 armour 1 weapon_lvl 0
unit Highland Nobles exp 3 armour 0 weapon_lvl 1
unit Highland Nobles exp 3 armour 0 weapon_lvl 1
unit Noble Highland Archers exp 1 armour 1 weapon_lvl 0
unit Noble Highland Archers exp 1 armour 1 weapon_lvl 0
unit Noble Highland Archers exp 1 armour 1 weapon_lvl 0
unit Highland Rabble exp 3 armour 0 weapon_lvl 0
unit Highland Rabble exp 3 armour 0 weapon_lvl 0
unit Highland Rabble exp 4 armour 0 weapon_lvl 0
unit Highland Rabble exp 4 armour 0 weapon_lvl 0
unit Border Horse exp 2 armour 0 weapon_lvl 0
unit Border Horse exp 2 armour 0 weapon_lvl 0
end
historic_event scotland_wallace event/william_wallace.bik
terminate_monitor
end_monitor
monitor_event FactionTurnStart FactionType scotland
and IsFactionAIControlled
and I_CharacterExists scotland4wallace
and not I_SettlementOwner Edinburgh = scotland
if I_SettlementUnderSiege Edinburgh
siege_settlement scotland4wallace, Edinburgh, attack
terminate_monitor
end_if
siege_settlement scotland4wallace, Edinburgh, maintain
if I_SettlementOwner Edinburgh = scotland
terminate_monitor
end_if
end_monitor