; ---------------------
; start up
freeze_faction_ai aztecs
;----------------------
; monitors
;-- Mongols invasions --
monitor_event EventCounter EventCounterType mongols_invasion_warn
and EventCounter > 0
; ADD SCOUTING INVASION
add_events
event counter mongols_invasion
date 2 4
end_add_events
if I_EventCounter mongols_invasion_warn == 2
terminate_monitor
end_if
end_monitor
monitor_event EventCounter EventCounterType mongols_invasion
and EventCounter > 0
if I_EventCounter mongols_invasion == 1
add_events
;;; SCOUTING INVASION
event emergent_faction mongols
date 0
; region Tbilisi_Province
region Yerevan_Province
region Bulgar_Province
region Sarkel_Province
region Baghdad_Province
movie event/mongols_invade.bik
;ADD MONGOL INVASION 1
event counter mongols_invasion
date 2
end_add_events
end_if
if I_EventCounter mongols_invasion == 2
;Sarkel
if I_CharacterTypeNearTile mongols named_character, 30 258, 134
set_counter mongols_sarkel 1
end_if
;Tbilisi / Yerevan
if I_CharacterTypeNearTile mongols named_character, 20 278, 101
set_counter mongols_yerevan 1
end_if
;Baghdad
if I_CharacterTypeNearTile mongols named_character, 30 291, 70
set_counter mongols_baghdad 1
end_if
;;; MONGOL INVASION 1 SCRIPT
spawn_army
faction mongols
character Batu, named character, age 26, x 292, y 166, family ;command 8, dread 9, loyalty 7, piety 1
traits EasternWarlord 3 , GoodCommander 2 , Genocide 2 , BattleDread 2 , StrategyDread 1 , PublicFaith 1, Loyal 2, ContentGeneral 3 ;command 8, dread 9, loyalty 7, piety 1
unit Mongol Bodyguard exp 6 armour 0 weapon_lvl 0
unit Mongol Infantry exp 6 armour 0 weapon_lvl 0
unit Mongol Infantry exp 6 armour 0 weapon_lvl 0
unit Mongol Foot Archers exp 6 armour 0 weapon_lvl 0
unit Mongol Heavy Archers exp 6 armour 0 weapon_lvl 0
unit Mongol Heavy Archers exp 6 armour 0 weapon_lvl 0
unit Mongol Heavy Archers exp 6 armour 0 weapon_lvl 0
unit Mongol Heavy Lancers exp 6 armour 0 weapon_lvl 0
unit Mongol Heavy Lancers exp 6 armour 0 weapon_lvl 0
end
spawn_army
faction mongols
character Aradai, named character, age 22, x 290, y 168, family ;command 6, dread 7, loyalty 7, piety 1
traits EasternWarlord 2 , Anger 3 , BattleDread 2 , StrategyDread 2 , PublicFaith 1 , Loyal 2 , ContentGeneral 3 ;command 6, dread 7, loyalty 7, piety 1
unit Mongol Bodyguard exp 6 armour 0 weapon_lvl 0
end
spawn_army
faction mongols
character Bayan, named character, age 21, x 292, y 162, family ;command 6, dread 7, loyalty 7, piety 1
traits EasternWarlord 2 , Anger 3 , BattleDread 2 , StrategyDread 2 , PublicFaith 1, Loyal 2, ContentGeneral 3 ;command 6, dread 7, loyalty 7, piety 1
unit Mongol Bodyguard exp 6 armour 0 weapon_lvl 0
end
;;; move them to location of first invasion
if I_CompareCounter mongols_sarkel = 1
reposition_character Jebe, 280, 136
reposition_character Aradai, 277, 133
reposition_character Bayan, 278, 131
end_if
if I_CompareCounter mongols_yerevan = 1
reposition_character Jebe, 291, 109
reposition_character Aradai, 289, 108
reposition_character Bayan, 291, 107
end_if
if I_CompareCounter mongols_baghdad = 1
reposition_character Jebe, 292, 58
reposition_character Aradai, 290, 60
reposition_character Bayan, 293, 63
end_if
;ADD MONGOL INVASION 2
add_events
event counter mongols_invasion
date 20 40
end_add_events
end_if
if I_EventCounter mongols_invasion == 3
;;; MONGOL INVASION 2 SCRIPT
spawn_army
faction mongols
character Orda, named character, age 26, x 292, y 166, family ;command 8, dread 9, loyalty 7, piety 1
traits EasternWarlord 3 , GoodCommander 2 , Genocide 2 , BattleDread 2 , StrategyDread 1 , PublicFaith 1, Loyal 2, ContentGeneral 3 ;command 8, dread 9, loyalty 7, piety 1
unit Mongol Bodyguard exp 6 armour 0 weapon_lvl 0
end
spawn_army
faction mongols
character Subutai, named character, age 25, x 290, y 168, family ;command 9, dread 9, loyalty 7, piety 1
traits EasternWarlord 2 , GoodCommander 3 , Anger 3 , BattleDread 3 , StrategyDread 3 , PublicFaith 1, Loyal 2, ContentGeneral 3 ;command 9, dread 9, loyalty 7, piety 1
unit Mongol Bodyguard exp 6 armour 0 weapon_lvl 0
end
spawn_army
faction mongols
character Berkei, named character, age 24, x 292, y 162, family ;command 7, dread 7, loyalty 7, piety 6
traits EasternWarlord 3 , Anger 2 , BattleDread 2 , StrategyDread 2 , PublicFaith 4, TouchedByTheGods 1 , Loyal 2, ContentGeneral 3 ;command 7, dread 7, loyalty 7, piety 6
unit Mongol Bodyguard exp 6 armour 0 weapon_lvl 0
end
spawn_army
faction mongols
character Orda, named character, age 23, x 288, y 168, family ;command 7, dread 7, loyalty 7, piety 1
traits EasternWarlord 3 , StrategicSkill 1 , BattleDread 2 , StrategyDread 3 , PublicFaith 1, Loyal 2, ContentGeneral 3 ;command 7, dread 7, loyalty 7, piety 1
unit Mongol Bodyguard exp 6 armour 0 weapon_lvl 0
end
if I_CompareCounter mongols_sarkel = 1
reposition_character Batu, 280, 136
reposition_character Subutai, 277, 133
reposition_character Berkei, 278, 131
reposition_character Orda, 277, 136
end_if
if I_CompareCounter mongols_yerevan = 1
reposition_character Batu, 291, 109
reposition_character Subutai, 289, 108
reposition_character Berkei, 291, 107
reposition_character Orda, 288, 106
end_if
if I_CompareCounter mongols_baghdad = 1
reposition_character Batu, 292, 58
reposition_character Subutai, 290, 60
reposition_character Berkei, 293, 63
reposition_character Orda, 290, 65
end_if
;ADD MONGOL INVASION 3
add_events
event counter mongols_invasion
date 30 50
end_add_events
end_if
if I_EventCounter mongols_invasion == 4
;;; MONGOL INVASION 3 SCRIPT
spawn_army
faction mongols
character Hulegu, named character, age 25, x 292, y 166, family ;command 8, dread 9, loyalty 7, piety 0
traits EasternWarlord 3 , Genocide 2 , NaturalMilitarySkill 2 , BattleDread 3 , StrategyDread 2 , Loyal 2, ContentGeneral 3 ;command 8, dread 9, loyalty 7, piety 0
unit Mongol Bodyguard exp 6 armour 0 weapon_lvl 0
end
spawn_army
faction mongols
character Kitbuqa, named character, age 24, x 290, y 168, family ;command 8, dread 9, loyalty 7, piety 0
traits EasternWarlord 3 , Anger 3 , BattleDread 3 , StrategyDread 2 , Loyal 2, ContentGeneral 3 ;command 8, dread 9, loyalty 7, piety 0
unit Mongol Bodyguard exp 6 armour 0 weapon_lvl 0
end
spawn_army
faction mongols
character Abaqha, named character, age 23, x 292, y 162, family ;command 7, dread 7, loyalty 7, piety 0
traits EasternWarlord 2 , Bloodthirsty 2 , GoodCommander 2 , BattleDread 2 , StrategyDread 2 , PublicFaith 1, Loyal 2, ContentGeneral 3 ;command 7, dread 7, loyalty 7, piety 1
unit Mongol Bodyguard exp 6 armour 0 weapon_lvl 0
end
spawn_army
faction mongols
character Kuo_Kan, named character, age 22, x 288, y 168, family ;command 7, dread 7, loyalty 7, piety 0
traits EasternWarlord 2 , Bloodthirsty 2 , GoodCommander 2 , BattleDread 2 , StrategyDread 2 , PublicFaith 1, Loyal 2, ContentGeneral 3 ;command 7, dread 7, loyalty 7, piety 1
unit Mongol Bodyguard exp 6 armour 0 weapon_lvl 0
end
if I_CompareCounter mongols_sarkel = 1
reposition_character Hulegu, 280, 136
reposition_character Kitbuqa, 277, 133
reposition_character Abaqha, 278, 131
reposition_character Kuo_Kan, 277, 136
end_if
if I_CompareCounter mongols_yerevan = 1
reposition_character Hulegu, 291, 109
reposition_character Kitbuqa, 289, 108
reposition_character Abaqha, 291, 107
reposition_character Kuo_Kan, 288, 106
end_if
if I_CompareCounter mongols_baghdad = 1
reposition_character Hulegu, 292, 58
reposition_character Kitbuqa, 290, 60
reposition_character Abaqha, 293, 63
reposition_character Kuo_Kan, 290, 65
end_if
terminate_monitor
end_if
end_monitor
;-- Timurids invasion --
monitor_event EventCounter EventCounterType timurids_invasion_warn
and EventCounter > 0
; ADD SCOUTING INVASION
add_events
event counter timurids_invasion
date 2 4
end_add_events
if I_EventCounter timurids_invasion_warn == 2
terminate_monitor
end_if
end_monitor
monitor_event EventCounter EventCounterType timurids_invasion
and EventCounter > 0
if I_EventCounter timurids_invasion == 1
;;; SCOUTING INVASION
add_events
event emergent_faction timurids
date 0
; region Tbilisi_Province
region Yerevan_Province
region Bulgar_Province
region Sarkel_Province
region Baghdad_Province
movie event/timurids_invade.bik
; ADD TIMURID INVASION 1
event counter timurids_invasion
date 2
end_add_events
end_if
if I_EventCounter timurids_invasion == 2
;Sarkel
if I_CharacterTypeNearTile timurids named_character, 30 258, 134
set_counter timurids_sarkel 1
end_if
;Tbilisi / Yerevan
if I_CharacterTypeNearTile timurids named_character, 20 278, 101
set_counter timurids_yerevan 1
end_if
;Baghdad
if I_CharacterTypeNearTile timurids named_character, 30 291, 70
set_counter timurids_baghdad 1
end_if