script
declare_counter choicer ; choicer = Choice Raider
declare_counter choicef ; choicef = Choice Farmer
declare_counter mission1
declare_counter mission1turn
declare_counter mission2turn 9
declare_counter mission2 1
declare_counter raid_building ; Raid Building;
;; ++++ Choice event ++++ ;;
monitor_event FactionTurnStart FactionIsLocal
and FactionType mongols
and not IsFactionAIControlled
historic_event choice true
terminate_monitor
end_monitor
; end
;; ++++ Choice raiding ++++ ;;
monitor_event EventCounter EventCounterType choice_accepted
and I_EventCounter choice_accepted = 1
set_counter choicer 1
set_event_counter choicer 1
spawn_army
faction mongols
character Ugedai, named character, age 29, x 289, y 166
traits LoyaltyStarter 1 , GoodCommander 2 , ReligionStarter 1
unit Mongol Bodyguard exp 6 armour 0 weapon_lvl 0
unit Mongol Infantry exp 1 armour 0 weapon_lvl 0
unit Mongol Infantry exp 2 armour 0 weapon_lvl 0
unit Mongol Infantry exp 1 armour 0 weapon_lvl 0
unit Mongol Foot Archers exp 0 armour 0 weapon_lvl 0
unit Mongol Foot Archers exp 0 armour 0 weapon_lvl 0
unit Mongol Foot Archers exp 0 armour 0 weapon_lvl 0
unit Mongol Foot Archers exp 0 armour 0 weapon_lvl 0
unit Mongol Heavy Archers exp 1 armour 0 weapon_lvl 0
unit Mongol Heavy Archers exp 1 armour 0 weapon_lvl 0
unit Mongol Heavy Archers exp 2 armour 0 weapon_lvl 0
unit Mongol Heavy Lancers exp 1 armour 0 weapon_lvl 0
unit Mongol Heavy Lancers exp 0 armour 0 weapon_lvl 0
unit Mongol Light Lancers exp 1 armour 0 weapon_lvl 0
unit Mongol Light Lancers exp 0 armour 0 weapon_lvl 0
end
;;; WHOLE LIST OF ARMIES I DELETED TO MAKE SURE I HAVE LESS THAN 300 LINES ;;
end
end_monitor
monitor_conditions I_CompareCounter choicer = 1
siege_settlement Grechin, Kazan, attack
terminate_monitor
end_monitor
monitor_event FactionTurnStart FactionIsLocal
and I_CompareCounter choicer = 1
historic_event choicer
terminate_monitor
end_monitor
;; Raid building ;;
monitor_event BuildingCompleted SettlementBuildingFinished = raid_building
set_counter raid_building 1
end_monitor
monitor_event FactionTurnStart FactionIsLocal
and I_CompareCounter raid_building = 1
create_unit Moscow, Mongol Horse Archers, num 1, exp 1, arm 0, wep 0
end_monitor
;; ++++ Choice Farming ++++ ;;
monitor_event EventCounter EventCounterType choice_declined
and I_EventCounter choice_declined = 1
create_unit Kazan, Mongol Infantry, num 3, exp 1, arm 0, wep 0
create_unit Kazan, Mongol Foot Archers, num 2, exp 1, arm 0, wep 0
set_counter choicef 1
spawn_army
faction mongols
character Abashan, named character, age 38, x 282, y 163
traits LoyaltyStarter 1 , GoodCommander 2 , ReligionStarter 1
unit Mongol Bodyguard exp 6 armour 0 weapon_lvl 0
unit Mongol Infantry exp 1 armour 0 weapon_lvl 0
unit Mongol Infantry exp 1 armour 0 weapon_lvl 0
unit Mongol Foot Archers exp 0 armour 0 weapon_lvl 0
end
spawn_army
faction mongols
character Temudhuk, named character, age 33, x 271, y 182
traits LoyaltyStarter 1 , GoodCommander 2 , ReligionStarter 1
unit Mongol Bodyguard exp 6 armour 0 weapon_lvl 0
unit Mongol Infantry exp 1 armour 0 weapon_lvl 0
unit Mongol Infantry exp 2 armour 0 weapon_lvl 0
unit Mongol Foot Archers exp 0 armour 0 weapon_lvl 0
end
terminate_monitor
end_monitor
monitor_conditions I_CompareCounter choicef = 1
siege_settlement Abashan, Bulgar, attack
siege_settlement Temudhuk, Bryansk, attack
terminate_monitor
end_monitor
monitor_event FactionTurnStart FactionIsLocal
and I_CompareCounter choicef = 1
historic_event choicef
set_event_counter choicef 1
terminate_monitor
end_monitor
monitor_event SettlementTurnStart SettlementName Kazan
and SettlementBuildingExists = farm_building
console_command add_money mongols, 500
end_monitor
; end
wait_monitors
end_script