Results 1 to 12 of 12

Thread: I'm confused

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Roman Knight's Avatar Campidoctor
    Join Date
    Sep 2007
    Location
    Melbourne, Australia
    Posts
    1,815

    Default I'm confused

    It's 1510, playing Portugal (in Stainless Steel), it's 1510 and neither the Mongols or Timurids have invaded, gunpowder hasn't been discovered and neither has America.

    ???

  2. #2

    Default Re: I'm confused

    Maybe something went wrong with the installation. Perhaps the descr_events file is messed up. Now what I'm wondering is how you got that far without asking about this first.

  3. #3
    Roman Knight's Avatar Campidoctor
    Join Date
    Sep 2007
    Location
    Melbourne, Australia
    Posts
    1,815

    Default Re: I'm confused

    Quote Originally Posted by Korlon View Post
    Now what I'm wondering is how you got that far without asking about this first.

  4. #4
    Harry Lime's Avatar Not a ToS violation
    Artifex Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Kent, England
    Posts
    15,771

    Default Re: I'm confused

    Moved to Stainless Steel
    Proud Patron of derdrakken, dave scarface, J@mes & irishron
    Indulging in the insight & intelligence of imb39

  5. #5

    Default Re: I'm confused

    It has to be the events file like someone said up there. That or you're missing it or have ; by the event...or you downloaded the game from a different server?

  6. #6
    Roman Knight's Avatar Campidoctor
    Join Date
    Sep 2007
    Location
    Melbourne, Australia
    Posts
    1,815

    Default Re: I'm confused

    Quote Originally Posted by evenflowjimbo View Post
    It has to be the events file like someone said up there. That or you're missing it or have ; by the event...or you downloaded the game from a different server?
    I checked descr_events, and it seemed to be working perfectly.

  7. #7

    Default Re: I'm confused

    Have you made any changes to anything?

  8. #8

    Default Re: I'm confused

    RomanKnight990
    Something is definately wrong with events or campaign script (thats the file which spawns the Mongols) as these events do happen for others. Which version of the mod do you have? eg 5.0, 5.1, 5.1 with echads fix pack. The only thing you can do now is start a new campaign.

    To err is human, but to really foul things up you need a computer.
    Paul Ehrlich

  9. #9
    Roman Knight's Avatar Campidoctor
    Join Date
    Sep 2007
    Location
    Melbourne, Australia
    Posts
    1,815

    Default Re: I'm confused

    I'm using 4.1

    I don't have kingdoms...

  10. #10

    Default Re: I'm confused

    RomanKnight990
    Look in the \data\world\maps\campaign\imperial_campaign folder for files called campaign_script.txt and descr_events.txt and post them. I will have a peek.

    To err is human, but to really foul things up you need a computer.
    Paul Ehrlich

  11. #11
    Roman Knight's Avatar Campidoctor
    Join Date
    Sep 2007
    Location
    Melbourne, Australia
    Posts
    1,815

    Default Re: I'm confused

    Descr_events
    Spoiler Alert, click show to read: 


    ; historical events and when they occur
    ;
    ; Events are followed by a category, and a label
    ; labels are used as lookups into historic_events.txt for title and body strings,
    ; and also as image names for the event picture
    ;
    ; Currently supported categories are:
    ; counter - just increase a counter
    ; historic - Just generates a message and increase a counter
    ; volcano - triggers a volcano if there is one on the map at the position specified
    ; plague - triggers a plague in settlements at the specified positions
    ; emergent_faction - triggers the emergence of the given faction. This faction must be marked
    ; as emergent in descr_strat.txt
    ;
    ; event descriptions are followed by a date (year as offset from starting date) or a date range
    ; and either a list of positions, or list of regions. Each position/region specification must appear on
    ; a seperate line below the date


    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;; TEST CASES ;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    ; ------------ CORE GAME EVENT --------------
    ;event historic mongols_invasion_warn
    ;date 2

    ;event earthquake earthquake_aleppo
    ;date 2
    ;position 319, 90

    ; ------------ CORE GAME EVENT --------------
    ;event historic gunpowder_discovered
    ;date 2 4

    ;event historic earthquake_silicia
    ;date 4
    ;position 287, 94

    ; ------------ CORE GAME EVENT --------------
    ;event plague black_death_hits
    ;date 266
    ;position 348, 202
    ; NOTE - ALL BLACK PLAGUE EVENTS WORK LIKE THIS ONE.

    ; ------------ CORE GAME EVENT --------------
    ;event historic timurids_invasion_warn
    ;date 2

    ;event historic earthquake_in_alexandria
    ;date 2
    ;position 285, 47

    ;event historic earthquake_in_aleppo
    ;date 2
    ;position 319, 90

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;; EVENT LIST ;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    event historic bologna_university
    date 8

    event historic council_of_clermont
    date 16

    event historic worms_concordat
    date 42

    event historic council_of_troyes
    date 48

    event historic first_windmill
    date 50

    event historic omne_datum_optimum
    date 54

    event historic earthquake_in_aleppo
    date 58
    position 319, 90

    event historic science_alchemy_book
    date 64

    event historic first_european_paper
    date 72

    event historic the_book_of_sentences
    date 76

    event historic hanseatic_league
    date 80

    event historic first_rudder
    date 100

    event historic first_magnetic_compass
    date 102

    event historic battle_hattin
    date 108

    event historic teutonic_order
    date 110

    event historic first_wheelbarrow
    date 120

    event historic science_maths_zero_europe
    date 122

    event historic franciscan_order_founded
    date 130

    event historic magna_carta
    date 132

    event historic dominican_order_founded
    date 134

    ; ------------ CORE GAME EVENT --------------
    event historic mongols_invasion_warn
    date 134 140

    ; ------------ CORE GAME EVENT --------------
    event historic inquisition
    date 154

    event historic gunpowder_discovered
    date 160 170
    movie event/gunpowder_invented.bik

    event historic dante_born
    date 185

    event earthquake earthquake_in_silicia
    date 188
    position 287, 94

    event historic summa_theologica
    date 194

    event historic first_mechanical_clock
    date 200

    event historic first_eyeglasses
    date 206

    event historic new_era_begins
    date 220

    event earthquake earthquake_in_alexandria
    date 222
    position 285, 47

    event earthquake earthquake_in_alexandria_2
    date 232
    position 285, 47

    event historic football_banned
    date 234

    event historic first_sawmill
    date 248

    event historic first_public_clock
    date 254

    event historic science_weather_forecast
    date 256

    event historic hundred_years_war
    date 258

    ; ------------ CORE GAME EVENT --------------
    event plague black_death_hits
    date 266
    position 348, 202
    position 349, 175
    position 320, 166
    position 301, 160
    position 289, 145
    position 344, 135
    position 366, 140
    movie event/black_death.bik

    event plague black_death_1
    date 268
    position 344, 126
    position 320, 129
    position 290, 125
    position 264, 114
    position 268, 109
    position 259, 90
    position 255, 104
    position 285, 47
    position 287, 94
    position 184, 86
    position 164, 94
    position 162, 114
    position 148, 123
    position 165, 129
    position 190, 153
    position 181, 133
    position 169, 137
    position 195, 101
    position 189, 118
    position 207, 104
    position 208, 117
    position 235, 106
    position 236, 88
    position 243, 87
    position 217, 108
    position 229, 93
    position 240, 123
    position 116, 117
    position 96, 90
    position 96, 77
    position 115, 103
    position 121, 142
    position 130, 129
    position 132, 114
    position 151, 151
    position 145, 138
    position 135, 140
    position 160, 147
    position 199, 133
    position 308, 54
    position 304, 94
    position 298, 80
    position 287, 94
    position 303, 105
    position 322, 112
    position 311, 71
    position 311, 81
    position 314, 63
    position 265, 80
    position 250, 70

    event plague black_death_2
    date 270
    position 348, 97
    position 321, 79
    position 319, 90
    position 168, 78
    position 127, 81
    position 88, 99
    position 133, 191
    position 249, 134
    position 92, 128
    position 68, 111
    position 76, 126
    position 70, 98
    position 108, 94
    position 135, 182
    position 115, 179
    position 97, 111
    position 86, 120
    position 142, 176
    position 161, 190
    position 148, 179
    position 140, 162
    position 202, 153
    position 117, 194
    position 119, 184
    position 163, 155
    position 147, 165
    position 183, 182
    position 177, 148
    position 168, 174
    position 155, 162
    position 128, 166
    position 118, 161
    position 126, 155
    position 291, 39
    position 301, 20
    position 357, 83
    position 367, 64
    position 311, 90
    position 328, 99
    position 184, 50
    position 111, 124
    position 101, 123

    event plague black_death_3
    date 272
    position 254, 154
    position 230, 156
    position 225, 117
    position 243, 142
    position 123, 224
    ;position 126, 90
    position 112, 201
    position 102, 191
    position 176, 231
    position 132, 203
    position 195, 168
    position 213, 151
    position 221, 132
    position 183, 182
    position 175, 190
    position 175, 205
    position 216, 168
    position 238, 173
    position 223, 182
    position 202, 177
    position 283, 2
    position 332, 27

    event plague black_death_4
    date 274
    position 290, 209
    position 302, 240
    position 250, 222
    position 224, 215
    position 233, 230
    position 207, 226
    position 201, 217
    position 203, 239
    position 210, 187
    position 269, 172
    position 270, 202
    position 234, 195
    position 192, 191
    position 302, 195
    position 255, 189
    position 288, 180

    event historic first_blast_furnace
    date 270

    event historic grote_mandenke
    date 282

    ; ------------ CORE GAME EVENT --------------
    event historic timurids_invasion_warn
    date 288 304

    event historic first_piano
    date 320

    ; ------------ CORE GAME EVENT --------------
    event historic world_is_round
    date 320 328

    event historic first_oil_painting
    date 340

    event historic medici_family
    date 354

    event historic science_de_docta_ignorantia
    date 364

    ; ------------ CORE GAME EVENT --------------
    ;TRUE TIME event historic world_is_round
    ;TRUE TIME date 366 374

    event historic first_printing_press
    date 374

    event earthquake earthquake_in_naples
    date 376
    position 195, 101

    event historic spanish_inquisition
    date 401

    event historic malleus_maleficarum
    date 406

    event historic science_da_vinci_ornithopter
    date 412

    event historic first_watch
    date 430


    ; ------------ OLD EVENT EXAMPLES --------------
    ;event volcano eruption_at_vesuvius
    ;date 99
    ;position 103, 65

    ;event plague plague_in_asia_minor
    ;date 173
    ;position 192, 68
    ;position 200, 55
    ;position 190, 80


    Campaign_script
    Spoiler Alert, click show to read: 
    ;
    ; Campaign script
    ;
    script
    ; ---------------------
    ; counters

    declare_counter Opened_Faction_Overview_Scroll
    declare_counter Opened_Settlement_Scroll
    declare_counter mongols_sarkel
    declare_counter mongols_yerevan
    declare_counter mongols_baghdad
    declare_counter timurids_sarkel
    declare_counter timurids_yerevan
    declare_counter timurids_baghdad


    ; ---------------------
    ; 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 4 8
    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 320, 166
    set_counter mongols_sarkel 1
    end_if
    ;Tbilisi / Yerevan
    if I_CharacterTypeNearTile mongols named_character, 20 344, 126
    set_counter mongols_yerevan 1
    end_if
    ;Baghdad
    if I_CharacterTypeNearTile mongols named_character, 30 357, 83
    set_counter mongols_baghdad 1
    end_if

    ;;; MONGOL INVASION 1 SCRIPT
    spawn_army
    faction mongols
    character Jebe, named character, age 30, x 367, y 206, family ;command 8, dread 9, loyalty 7, piety 1
    traits Disciplinarian 1 , EasternWarlord 3 , GoodCommander 2 , Bloodthirsty 2 , BattleDread 4 , StrategyDread 2 , 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 4 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 5 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 5 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 4 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 4 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 5 armour 0 weapon_lvl 0
    end
    spawn_army
    faction mongols
    character Aradai, named character, age 22, x 366, y 208, family ;command 6, dread 7, loyalty 7, piety 1
    traits Disciplinarian 1 , 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
    unit Mongol Infantry exp 5 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 5 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 3 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 3 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 3 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 3 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 3 armour 0 weapon_lvl 0
    unit Mongol Light Lancers exp 5 armour 0 weapon_lvl 0
    unit Mongol Light Lancers exp 5 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 3 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 4 armour 0 weapon_lvl 0
    end
    spawn_army
    faction mongols
    character Bayan, named character, age 21, x 367 y 202, family ;command 6, dread 7, loyalty 7, piety 1
    traits Disciplinarian 1 , 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
    unit Mongol Infantry exp 5 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 5 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 5 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 6 armour 0 weapon_lvl 0
    unit Mongol Foot Archers 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 Lancers exp 6 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 6 armour 0 weapon_lvl 0
    unit Mongol Light Lancers exp 6 armour 0 weapon_lvl 0
    unit Mongol Light Lancers exp 6 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 6 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 6 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 6 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 6 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 6 armour 0 weapon_lvl 0
    end

    ;;; move them to location of first invasion
    if I_CompareCounter mongols_sarkel = 1
    reposition_character Jebe, 346, 168
    reposition_character Aradai, 343, 165
    reposition_character Bayan, 343, 162
    end_if
    if I_CompareCounter mongols_yerevan = 1
    reposition_character Jebe, 367, 124
    reposition_character Aradai, 364, 123
    reposition_character Bayan, 366, 123
    end_if
    if I_CompareCounter mongols_baghdad = 1
    reposition_character Jebe, 367, 90
    reposition_character Aradai, 367, 92
    reposition_character Bayan, 366, 93
    end_if

    ;ADD MONGOL INVASION 2
    add_events
    event counter mongols_invasion
    date 15 25
    end_add_events
    end_if

    if I_EventCounter mongols_invasion == 3
    ;;; MONGOL INVASION 2 SCRIPT
    spawn_army
    faction mongols
    character Batu, named character, age 26, x 367, y 206, family ;command 8, dread 9, loyalty 7, piety 1
    traits Disciplinarian 1 , 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 5 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 5 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 3 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 3 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 4 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 3 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 3 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 3 armour 0 weapon_lvl 0
    end
    spawn_army
    faction mongols
    character Subutai, named character, age 25, x 366, y 208, family ;command 9, dread 9, loyalty 7, piety 1
    traits Disciplinarian 1 , 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
    unit Mongol Infantry exp 5 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 5 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 4 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 4 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 4 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 6 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 6 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 5 armour 0 weapon_lvl 0
    end
    spawn_army
    faction mongols
    character Berkei, named character, age 24, x 367 y 202, family ;command 7, dread 7, loyalty 7, piety 6
    traits Disciplinarian 1 , 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
    unit Mongol Infantry exp 5 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 5 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 5 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Light Lancers exp 5 armour 0 weapon_lvl 0
    unit Mongol Light Lancers exp 5 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 6 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 6 armour 0 weapon_lvl 0
    unit AS Rocket Launcher exp 3 armour 0 weapon_lvl 0
    unit AS Rocket Launcher exp 3 armour 0 weapon_lvl 0
    unit AS Trebuchet exp 5 armour 0 weapon_lvl 0
    unit AS Trebuchet exp 5 armour 0 weapon_lvl 0
    end
    spawn_army
    faction mongols
    character Orda, named character, age 23, x 364, y 208, family ;command 7, dread 7, loyalty 7, piety 1
    traits Disciplinarian 1 , 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
    unit Mongol Infantry exp 4 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 4 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 4 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 4 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Light Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Light Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 4 armour 0 weapon_lvl 0
    unit AS Rocket Launcher exp 3 armour 0 weapon_lvl 0
    unit AS Rocket Launcher exp 3 armour 0 weapon_lvl 0
    unit AS Trebuchet exp 3 armour 0 weapon_lvl 0
    unit AS Trebuchet exp 3 armour 0 weapon_lvl 0
    end

    if I_CompareCounter mongols_sarkel = 1
    reposition_character Batu, 346, 168
    reposition_character Subutai, 343, 165
    reposition_character Berkei, 343, 162
    reposition_character Orda, 342, 168
    end_if
    if I_CompareCounter mongols_yerevan = 1
    reposition_character Batu, 367, 124
    reposition_character Subutai, 364, 123
    reposition_character Berkei, 366, 123
    reposition_character Orda, 363, 124
    end_if
    if I_CompareCounter mongols_baghdad = 1
    reposition_character Batu, 367, 90
    reposition_character Subutai, 367, 92
    reposition_character Berkei, 368, 94
    reposition_character Orda, 366, 93
    end_if

    ;ADD MONGOL INVASION 3
    add_events
    event counter mongols_invasion
    date 25 35
    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 367, y 206, family ;command 8, dread 9, loyalty 7, piety 0
    traits Disciplinarian 1 , 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
    unit Mongol Infantry exp 4 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 4 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 Infantry exp 4 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 6 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 6 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 4 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 Kitbuqa, named character, age 24, x 366, y 208, family ;command 8, dread 9, loyalty 7, piety 0
    traits Disciplinarian 1 , 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
    unit Mongol Infantry exp 6 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 6 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 4 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 4 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 4 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 6 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 6 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 4 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 Abaqha, named character, age 23, x 367 y 202, family ;command 7, dread 7, loyalty 7, piety 0
    traits Disciplinarian 1 , 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
    unit Mongol Infantry exp 4 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 4 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 4 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Light Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Light Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 4 armour 0 weapon_lvl 0
    unit AS Rocket Launcher exp 4 armour 0 weapon_lvl 0
    unit AS Rocket Launcher exp 4 armour 0 weapon_lvl 0
    unit AS Trebuchet exp 4 armour 0 weapon_lvl 0
    unit AS Trebuchet exp 4 armour 0 weapon_lvl 0
    end
    spawn_army
    faction mongols
    character Kuo_Kan, named character, age 22, x 364, y 208, family ;command 7, dread 7, loyalty 7, piety 0
    traits Disciplinarian 1 , 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
    unit Mongol Infantry exp 4 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 4 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 4 armour 0 weapon_lvl 0
    unit Mongol Infantry exp 4 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 6 armour 0 weapon_lvl 0
    unit Mongol Foot Archers exp 6 armour 0 weapon_lvl 0
    unit Mongol Foot Archers 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 Light Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Light Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 6 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 6 armour 0 weapon_lvl 0
    unit Mongol Horse Archers exp 6 armour 0 weapon_lvl 0
    unit AS Rocket Launcher exp 4 armour 0 weapon_lvl 0
    unit AS Rocket Launcher exp 4 armour 0 weapon_lvl 0
    unit AS Trebuchet exp 6 armour 0 weapon_lvl 0
    unit AS Trebuchet exp 6 armour 0 weapon_lvl 0
    end

    if I_CompareCounter mongols_sarkel = 1
    reposition_character Hulegu, 346, 168
    reposition_character Kitbuqa, 343, 165
    reposition_character Abaqha, 343, 162
    reposition_character Kuo_Kan, 342, 168
    end_if
    if I_CompareCounter mongols_yerevan = 1
    reposition_character Hulegu, 367, 124
    reposition_character Kitbuqa, 364, 123
    reposition_character Abaqha, 366, 123
    reposition_character Kuo_Kan, 363, 124
    end_if
    if I_CompareCounter mongols_baghdad = 1
    reposition_character Hulegu, 367, 90
    reposition_character Kitbuqa, 367, 92
    reposition_character Abaqha, 368, 94
    reposition_character Kuo_Kan, 366, 93
    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 320, 166
    set_counter timurids_sarkel 1
    end_if
    ;Tbilisi / Yerevan
    if I_CharacterTypeNearTile timurids named_character, 20 344, 126
    set_counter timurids_yerevan 1
    end_if
    ;Baghdad
    if I_CharacterTypeNearTile timurids named_character, 30 357, 83
    set_counter timurids_baghdad 1
    end_if

    ;;; TIMURID INVASION 1 SCRIPT
    spawn_army
    faction timurids
    character Timur, named character, age 30, x 367, y 206, family ;Command 9 Dread 9 Loyalty 6 Piety 4
    traits Disciplinarian 1 , EasternWarlord 3 , GoodCommander 3 , Bloodthirsty 2 , BattleDread 3 , StrategyDread 2 , PublicFaith 4 , Loyal 1 , ContentGeneral 3 ;command 9, dread 9, loyalty 6, piety 4
    unit Mongol Bodyguard exp 6 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 5 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 5 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 3 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 3 armour 0 weapon_lvl 0
    unit ME Halberd Militia exp 6 armour 0 weapon_lvl 0
    unit ME Halberd Militia exp 4 armour 0 weapon_lvl 0
    unit ME Halberd Militia exp 4 armour 0 weapon_lvl 0
    unit Elephants exp 4 armour 0 weapon_lvl 0
    unit Elephants exp 4 armour 0 weapon_lvl 0
    unit Elephant Artillery exp 3 armour 0 weapon_lvl 0
    unit Elephant Artillery exp 3 armour 0 weapon_lvl 0
    end
    spawn_army
    faction timurids
    character Husayn, named character, age 24, x 366, y 208, family ;Command 7 Dread 7 Loyalty 6 Piety 4
    traits Disciplinarian 1 , EasternWarlord 2 , GoodCommander 1 , Anger 3 , BattleDread 2 , StrategyDread 3 , PublicFaith 4, Loyal 1, ContentGeneral 3 ;command 7, dread 7, loyalty 6, piety 4
    unit Mongol Bodyguard 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
    unit Mongol Heavy Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 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 Sabadar Militia exp 4 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 4 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 5 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 5 armour 0 weapon_lvl 0
    unit ME Halberd Militia exp 5 armour 0 weapon_lvl 0
    unit ME Halberd Militia exp 5 armour 0 weapon_lvl 0
    unit ME Halberd Militia exp 3 armour 0 weapon_lvl 0
    unit Elephants exp 4 armour 0 weapon_lvl 0
    unit Elephants exp 4 armour 0 weapon_lvl 0
    unit Elephant Artillery exp 3 armour 0 weapon_lvl 0
    unit Elephant Artillery exp 3 armour 0 weapon_lvl 0
    end
    spawn_army
    faction timurids
    character Umar_Shaykh, named character, age 23, x 367 y 202, family ;Command 6 Dread 7 Loyalty 6 Piety 4
    traits Disciplinarian 1 , EasternWarlord 2 , Anger 3 , BattleDread 3 , StrategyDread 2 , PublicFaith 4, Loyal 1, ContentGeneral 3 ;command 6, dread 7, loyalty 6, piety 4
    unit Mongol Bodyguard exp 6 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 4 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 4 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 5 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 5 armour 0 weapon_lvl 0
    unit ME Halberd Militia exp 5 armour 0 weapon_lvl 0
    unit ME Halberd Militia exp 4 armour 0 weapon_lvl 0
    unit ME Halberd Militia exp 4 armour 0 weapon_lvl 0
    unit Turkomans exp 6 armour 0 weapon_lvl 0
    unit Turkomans exp 6 armour 0 weapon_lvl 0
    unit Turkomans exp 3 armour 0 weapon_lvl 0
    unit Turkomans exp 3 armour 0 weapon_lvl 0
    unit Naffatun exp 4 armour 0 weapon_lvl 0
    unit AS Grand Bombard exp 3 armour 0 weapon_lvl 0
    unit AS Grand Bombard exp 3 armour 0 weapon_lvl 0
    end
    spawn_army
    faction timurids
    character Miran, named character, age 22, x 364, y 208, family ;Command 6 Dread 7 Loyalty 6 Piety 4
    traits Disciplinarian 1 , EasternWarlord 2 , Bloodthirsty 2 , GoodCommander 1 , BattleDread 2 , StrategyDread 3 , PublicFaith 4, Loyal 1, ContentGeneral 3 ;command 6, dread 7, loyalty 6, piety 4
    unit Mongol Bodyguard exp 6 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 4 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 4 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 4 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 4 armour 0 weapon_lvl 0
    unit ME Halberd Militia exp 5 armour 0 weapon_lvl 0
    unit ME Halberd Militia exp 5 armour 0 weapon_lvl 0
    unit ME Halberd Militia exp 5 armour 0 weapon_lvl 0
    unit Turkomans exp 4 armour 0 weapon_lvl 0
    unit Turkomans exp 4 armour 0 weapon_lvl 0
    unit Turkomans exp 5 armour 0 weapon_lvl 0
    unit Turkomans exp 5 armour 0 weapon_lvl 0
    unit Naffatun exp 4 armour 0 weapon_lvl 0
    unit AS Rocket Launcher exp 4 armour 0 weapon_lvl 0
    unit AS Rocket Launcher exp 4 armour 0 weapon_lvl 0
    end

    ;;; move them to location of first invasion
    if I_CompareCounter timurids_sarkel = 1
    reposition_character Timur, 346, 168
    reposition_character Husayn, 343, 165
    reposition_character Umar_Shaykh, 343, 162
    reposition_character Miran, 342, 168
    end_if
    if I_CompareCounter timurids_yerevan = 1
    reposition_character Timur, 367, 124
    reposition_character Husayn, 364, 123
    reposition_character Umar_Shaykh, 366, 123
    reposition_character Miran, 363, 124
    end_if
    if I_CompareCounter timurids_baghdad = 1
    reposition_character Timur, 367, 90
    reposition_character Husayn, 367, 92
    reposition_character Umar_Shaykh, 368, 94
    reposition_character Miran, 366, 93
    end_if

    ; ADD TIMURID INVASION 2
    add_events
    event counter timurids_invasion
    date 12 22
    end_add_events
    end_if
    if I_EventCounter timurids_invasion == 3
    ;;; TIMURID INVASION 2 SCRIPT
    spawn_army
    faction timurids
    character Shahrukh, named character, age 22, x 367, y 206, family ;Command 7 Dread 7 Loyalty 6 Piety 4
    traits Disciplinarian 1 , EasternWarlord 2 , GoodCommander 1 , Anger 3 , BattleDread 2 , StrategyDread 3 , PublicFaith 4, Loyal 1, ContentGeneral 3 ;command 7, dread 7, loyalty 6, piety 4
    unit Mongol Bodyguard 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
    unit Mongol Heavy Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 4 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 Sabadar Militia exp 6 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 6 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 4 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 4 armour 0 weapon_lvl 0
    unit ME Halberd Militia exp 5 armour 0 weapon_lvl 0
    unit ME Halberd Militia exp 5 armour 0 weapon_lvl 0
    unit ME Halberd Militia exp 5 armour 0 weapon_lvl 0
    unit Elephants exp 5 armour 0 weapon_lvl 0
    unit Elephants exp 5 armour 0 weapon_lvl 0
    unit Elephant Artillery exp 3 armour 0 weapon_lvl 0
    unit Elephant Artillery exp 3 armour 0 weapon_lvl 0
    end
    spawn_army
    faction timurids
    character Pir_Muhammed, named character, age 21, x 366, y 208, family ;Command 7 Dread 7 Loyalty 6 Piety 4
    traits Disciplinarian 1 , EasternWarlord 2 , GoodCommander 1 , Anger 3 , BattleDread 2 , StrategyDread 3 , PublicFaith 4, Loyal 1, ContentGeneral 3 ;command 7, dread 7, loyalty 6, piety 4
    unit Mongol Bodyguard 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
    unit Mongol Heavy Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 4 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 5 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 5 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 5 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 5 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 4 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 4 armour 0 weapon_lvl 0
    unit ME Halberd Militia exp 5 armour 0 weapon_lvl 0
    unit ME Halberd Militia exp 5 armour 0 weapon_lvl 0
    unit ME Halberd Militia exp 5 armour 0 weapon_lvl 0
    unit Elephants exp 4 armour 0 weapon_lvl 0
    unit Elephants exp 4 armour 0 weapon_lvl 0
    unit Elephant Artillery exp 3 armour 0 weapon_lvl 0
    unit Elephant Artillery exp 3 armour 0 weapon_lvl 0
    end
    spawn_army
    faction timurids
    character Nayaga, named character, age 20, x 367 y 202, family ;Command 6 Dread 7 Loyalty 6 Piety 4
    traits Disciplinarian 1 , EasternWarlord 2 , Bloodthirsty 2 , GoodCommander 1 , BattleDread 3 , StrategyDread 2 , PublicFaith 4, Loyal 1, ContentGeneral 3 ;command 6, dread 7, loyalty 6, piety 4
    unit Mongol Bodyguard exp 6 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Lancers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 4 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 Sabadar Militia exp 5 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 5 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 5 armour 0 weapon_lvl 0
    unit ME Halberd Militia exp 6 armour 0 weapon_lvl 0
    unit ME Halberd Militia exp 6 armour 0 weapon_lvl 0
    unit ME Halberd Militia exp 6 armour 0 weapon_lvl 0
    unit Turkomans exp 6 armour 0 weapon_lvl 0
    unit Turkomans exp 6 armour 0 weapon_lvl 0
    unit Turkomans exp 6 armour 0 weapon_lvl 0
    unit Turkomans exp 6 armour 0 weapon_lvl 0
    unit Naffatun exp 6 armour 0 weapon_lvl 0
    unit AS Grand Bombard exp 3 armour 0 weapon_lvl 0
    unit AS Grand Bombard exp 3 armour 0 weapon_lvl 0
    end
    spawn_army
    faction timurids
    character Dayir, named character, age 19, x 364, y 208, family ;Command 6 Dread 7 Loyalty 6 Piety 4
    traits Disciplinarian 1 , EasternWarlord 2 , Bloodthirsty 2 , GoodCommander 1 , BattleDread 2 , StrategyDread 3 , PublicFaith 4, Loyal 1, ContentGeneral 3 ;command 6, dread 7, loyalty 6, piety 4
    unit Mongol Bodyguard 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
    unit Mongol Heavy Lancers exp 6 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 4 armour 0 weapon_lvl 0
    unit Mongol Heavy Archers exp 4 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 6 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 6 armour 0 weapon_lvl 0
    unit Sabadar Militia exp 6 armour 0 weapon_lvl 0
    unit ME Halberd Militia exp 4 armour 0 weapon_lvl 0
    unit ME Halberd Militia exp 4 armour 0 weapon_lvl 0
    unit ME Halberd Militia exp 4 armour 0 weapon_lvl 0
    unit Turkomans exp 6 armour 0 weapon_lvl 0
    unit Turkomans exp 6 armour 0 weapon_lvl 0
    unit Turkomans exp 6 armour 0 weapon_lvl 0
    unit Turkomans exp 6 armour 0 weapon_lvl 0
    unit Naffatun exp 5 armour 0 weapon_lvl 0
    unit AS Rocket Launcher exp 3 armour 0 weapon_lvl 0
    unit AS Rocket Launcher exp 3 armour 0 weapon_lvl 0
    end

    ;;; move them to location of first invasion
    if I_CompareCounter timurids_sarkel = 1
    reposition_character Shahrukh, 346, 168
    reposition_character Pir_Muhammed, 343, 165
    reposition_character Nayaga, 343, 162
    reposition_character Dayir, 342, 168
    end_if
    if I_CompareCounter timurids_yerevan = 1
    reposition_character Shahrukh, 367, 124
    reposition_character Pir_Muhammed, 364, 123
    reposition_character Nayaga, 366, 123
    reposition_character Dayir, 363, 124
    end_if
    if I_CompareCounter timurids_baghdad = 1
    reposition_character Shahrukh, 367, 90
    reposition_character Pir_Muhammed, 367, 92
    reposition_character Nayaga, 368, 94
    reposition_character Dayir, 366, 93
    end_if

    terminate_monitor
    end_if
    end_monitor


    ;-- World is round --
    monitor_event EventCounter EventCounterType world_is_round
    and EventCounter > 0

    ; unhide America
    restrict_strat_radar false
    terminate_monitor
    end_monitor


    ;-- America discovered --
    monitor_event TileSeen not FactionType aztecs
    and not FactionType slave
    and IsPositionInRect 0 56 58 181
    historic_event america_discovered event/america_discovered.bik
    terminate_monitor
    end_monitor


    ;-- Aztecs contacted --
    monitor_event ObjSeen TargetFactionType aztecs
    and not FactionType slave
    unfreeze_faction_ai aztecs
    add_events
    event counter disable_no_brigands
    date 0
    event counter disable_no_pirates
    date 0
    end_add_events
    historic_event aztecs_contacted event/aztecs_contacted.bik
    terminate_monitor
    end_monitor

    ;-- player built first huge cathedral --
    monitor_event EventCounter EventCounterType building_completed_player_huge_cathedral
    and EventCounter = 1
    historic_event player_first_huge_cathedral event/huge_cathedral_built.bik
    terminate_monitor
    end_monitor


    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;; STARTING SCRIPT FOR NEW CAMPAIGN ;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    ;faction summary scroll opened or closed
    monitor_event ScrollOpened ScrollOpened faction_summary_scroll
    set_counter Opened_Faction_Overview_Scroll 1
    end_monitor

    monitor_event ScrollClosed ScrollClosed faction_summary_scroll
    set_counter Opened_Faction_Overview_Scroll 0
    end_monitor

    ;settlement scroll opened or closed
    monitor_event ScrollOpened ScrollOpened own_settlement_info_scroll
    set_counter Opened_Settlement_Scroll 1
    end_monitor

    monitor_event ScrollClosed ScrollClosed own_settlement_info_scroll
    set_counter Opened_Settlement_Scroll 0
    end_monitor

    ; open the missions scroll
    ; monitor_conditions I_TurnNumber = 0

    ; ; select_ui_element mission_select
    ; select_ui_element faction_button
    ; simulate_mouse_click lclick_up
    ;
    ; terminate_monitor
    ; end_monitor

    ;;;;;;;;;;;;;;;;;;;;;;;;
    ; -- England --
    ;;;;;;;;;;;;;;;;;;;;;;;;

    ;their first campaign
    monitor_conditions I_TurnNumber = 0
    and I_LocalFaction england
    and I_CampaignNumTimePlay = 1
    and I_AdvisorVerbosityLevel > 0

    disable_save
    suspend_unscripted_advice true
    inhibit_camera_input true

    campaign_wait 0.1

    snap_strat_camera 109, 155 ;London 109, 147
    zoom_strat_camera 0.1

    advance_advice_thread England_Initial_1_Advice_Thread ;English Campaign

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    settlement_flash_start London
    end_if

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1
    settlement_flash_stop London

    advance_advice_thread Campaign_Initial_2_Advice_Thread ;Campaign Goals

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    select_ui_element faction_button
    simulate_mouse_click lclick_up

    advance_advice_thread Campaign_Initial_3_Advice_Thread ;Achieving Victory

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    if I_CompareCounter Opened_Faction_Overview_Scroll = 1

    advance_advice_thread Campaign_Initial_4_Advice_Thread ;Expansion and Conquest

    while I_CompareCounter Opened_Faction_Overview_Scroll = 1
    end_while

    end_if

    advance_advice_thread Campaign_Initial_Goals_Button_Advice_Thread

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    ui_flash_start faction_button

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    ui_flash_stop

    campaign_wait 1

    ;To expand the kingdom of England, you should first look to conquer the British Isles.
    ;You must also contend with the Scots to the north and the French to the south.
    ;The nearby rebel town of York will make an ideal first target.
    advance_advice_thread England_Initial_5_Advice_Thread ;Where to Start

    campaign_wait 1

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    zoom_strat_camera 1.0
    move_strat_camera 95, 150
    settlement_flash_start Edinburgh
    settlement_flash_start York
    settlement_flash_start Caernarvon
    settlement_flash_start Dublin
    settlement_flash_start Inverness
    campaign_wait 2
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    settlement_flash_stop York
    settlement_flash_stop Caernarvon
    settlement_flash_stop Dublin
    settlement_flash_stop Inverness

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 95, 160
    campaign_wait 1
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Paris
    move_strat_camera 98, 135
    campaign_wait 1
    end_if

    settlement_flash_stop Edinburgh

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;zoom to York
    settlement_flash_start York
    move_strat_camera 106, 165 ;York 106, 164
    zoom_strat_camera 0.5
    end_if

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    settlement_flash_stop Paris
    campaign_wait 1

    settlement_flash_stop York

    advance_advice_thread Campaign_Initial_6_Advice_Thread ;Where to Start

    move_strat_camera 100, 142 ;London 109, 147
    zoom_strat_camera 0.5

    settlement_flash_start Caen
    settlement_flash_start London
    settlement_flash_start Nottingham

    suspend_unscripted_advice false
    inhibit_camera_input false
    enable_save

    while I_CompareCounter Opened_Settlement_Scroll = 0
    end_while

    settlement_flash_stop Caen
    settlement_flash_stop London
    settlement_flash_stop Nottingham

    terminate_monitor
    end_monitor

    ;not their first campaign
    monitor_conditions I_TurnNumber = 0
    and I_LocalFaction england
    and I_CampaignNumTimePlay > 1
    and I_CampaignNumTimePlay < 9999
    and I_AdvisorVerbosityLevel > 0
    and I_FirstTimePlay england

    suspend_unscripted_advice true
    hide_ui
    inhibit_camera_input true
    disable_save

    campaign_wait 0.1
    snap_strat_camera 100, 143 ;London 109, 147

    while I_CompareCounter Opened_Faction_Overview_Scroll = 1
    end_while

    ;greeting
    advance_advice_thread Campaign_Greeting_England_Advice_Thread

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    ;To expand the kingdom of England, you should first look to conquer the British Isles.
    ;You must also contend with the Scots to the north and the French to the south.
    ;The nearby rebel town of York will make an ideal first target.
    advance_advice_thread England_Initial_5_Advice_Thread ;Where to Start

    campaign_wait 1

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    zoom_strat_camera 1.0
    move_strat_camera 95, 150
    settlement_flash_start Edinburgh
    settlement_flash_start York
    settlement_flash_start Caernarvon
    settlement_flash_start Dublin
    settlement_flash_start Inverness
    campaign_wait 2
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    settlement_flash_stop York
    settlement_flash_stop Caernarvon
    settlement_flash_stop Dublin
    settlement_flash_stop Inverness

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 95, 160
    campaign_wait 1
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Paris
    move_strat_camera 98, 135
    campaign_wait 1
    end_if

    settlement_flash_stop Edinburgh

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;zoom to York
    settlement_flash_start York
    move_strat_camera 106, 165 ;York 106, 164
    zoom_strat_camera 0.5
    end_if

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    settlement_flash_stop Paris
    campaign_wait 1

    settlement_flash_stop York
    move_strat_camera 100, 142 ;London 109, 147
    zoom_strat_camera 0.5
    campaign_wait 1

    suspend_unscripted_advice false
    inhibit_camera_input false
    show_ui
    enable_save

    terminate_monitor
    end_monitor

    ;;;;;;;;;;;;;;;;;;;;;;;;
    ; -- France --
    ;;;;;;;;;;;;;;;;;;;;;;;;

    ;first campaign
    monitor_conditions I_TurnNumber = 0
    and I_LocalFaction france
    and I_CampaignNumTimePlay = 1
    and I_AdvisorVerbosityLevel > 0

    suspend_unscripted_advice true
    inhibit_camera_input true
    disable_save

    campaign_wait 0.1

    snap_strat_camera 113, 139 ;Paris 113, 131
    zoom_strat_camera 0.1

    advance_advice_thread France_Initial_1_Advice_Thread ;French Campaign

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 1
    settlement_flash_start Paris
    end_if

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    settlement_flash_stop Paris

    advance_advice_thread Campaign_Initial_2_Advice_Thread ;Campaign Goals

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    select_ui_element faction_button
    simulate_mouse_click lclick_up

    advance_advice_thread Campaign_Initial_3_Advice_Thread ;Achieving Victory

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    if I_CompareCounter Opened_Faction_Overview_Scroll = 1

    advance_advice_thread Campaign_Initial_4_Advice_Thread ;Expansion and Conquest

    while I_CompareCounter Opened_Faction_Overview_Scroll = 1
    end_while

    end_if

    advance_advice_thread Campaign_Initial_Goals_Button_Advice_Thread

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    ui_flash_start faction_button

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    ui_flash_stop

    campaign_wait 1

    ;To strengthen the kingdom of France, you should first unite France by capturing the nearby rebel settlements.
    ;You will then need to contend with England to the north, the Holy Roman Empire to the east and Spain to the south.
    ;The nearby Rebel town of Dijon will make an ideal first target.
    advance_advice_thread France_Initial_5_Advice_Thread ;Where to Start

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;show rebel settlements briefly
    settlement_flash_start Bruges
    settlement_flash_start Antwerp
    settlement_flash_start Metz
    settlement_flash_start Rennes
    settlement_flash_start Bordeaux
    settlement_flash_start Dijon
    zoom_strat_camera 1.0
    move_strat_camera 110, 120
    campaign_wait 3
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    settlement_flash_stop Bruges
    settlement_flash_stop Antwerp
    settlement_flash_stop Metz
    settlement_flash_stop Rennes
    settlement_flash_stop Bordeaux
    settlement_flash_stop Dijon

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;England
    settlement_flash_start London
    move_strat_camera 103, 131
    campaign_wait 1
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;HRE
    settlement_flash_start Frankfurt
    move_strat_camera 120, 132
    campaign_wait 1
    end_if

    settlement_flash_stop London

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;Spain
    settlement_flash_start Pamplona
    move_strat_camera 102, 106
    campaign_wait 1
    end_if

    settlement_flash_stop Frankfurt

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;zoom to Dijon
    settlement_flash_start Dijon
    move_strat_camera 121, 123
    zoom_strat_camera 0.5
    end_if

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    settlement_flash_stop Pamplona
    campaign_wait 1

    settlement_flash_stop Dijon

    advance_advice_thread Campaign_Initial_6_Advice_Thread ;Where to Start

    move_strat_camera 112, 127 ;Paris 113, 131
    zoom_strat_camera 0.5

    settlement_flash_start Angers
    settlement_flash_start Paris
    settlement_flash_start Rheims

    suspend_unscripted_advice false
    inhibit_camera_input false
    enable_save

    while I_CompareCounter Opened_Settlement_Scroll = 0
    end_while

    settlement_flash_stop Angers
    settlement_flash_stop Paris
    settlement_flash_stop Rheims

    terminate_monitor
    end_monitor

    ;not first campaign
    monitor_conditions I_TurnNumber = 0
    and I_LocalFaction france
    and I_CampaignNumTimePlay > 1
    and I_CampaignNumTimePlay < 9999
    and I_AdvisorVerbosityLevel > 0
    and I_FirstTimePlay france

    suspend_unscripted_advice true
    inhibit_camera_input true
    hide_ui
    disable_save

    campaign_wait 0.1

    while I_CompareCounter Opened_Faction_Overview_Scroll = 1
    end_while

    ;greeting
    advance_advice_thread Campaign_Greeting_France_Advice_Thread

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    ;To strengthen the kingdom of France, you should first unite France by capturing the nearby rebel settlements.
    ;You will then need to contend with England to the north, the Holy Roman Empire to the east and Spain to the south.
    ;The nearby Rebel town of Dijon will make an ideal first target.
    advance_advice_thread France_Initial_5_Advice_Thread ;Where to Start

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;show rebel settlements briefly
    settlement_flash_start Bruges
    settlement_flash_start Antwerp
    settlement_flash_start Metz
    settlement_flash_start Rennes
    settlement_flash_start Bordeaux
    settlement_flash_start Dijon
    ; zoom_strat_camera 1.0
    ; move_strat_camera 110, 125
    campaign_wait 3
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    settlement_flash_stop Bruges
    settlement_flash_stop Antwerp
    settlement_flash_stop Metz
    settlement_flash_stop Rennes
    settlement_flash_stop Bordeaux
    settlement_flash_stop Dijon

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;England
    settlement_flash_start London
    move_strat_camera 103, 131
    campaign_wait 1
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;HRE
    settlement_flash_start Frankfurt
    move_strat_camera 120, 132
    campaign_wait 1
    end_if

    settlement_flash_stop London

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;Spain
    settlement_flash_start Pamplona
    move_strat_camera 102, 106
    campaign_wait 1
    end_if

    settlement_flash_stop Frankfurt

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;zoom to Dijon
    settlement_flash_start Dijon
    move_strat_camera 121, 123
    zoom_strat_camera 0.5
    end_if

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    settlement_flash_stop Pamplona
    campaign_wait 1

    settlement_flash_stop Dijon
    move_strat_camera 112, 127 ;Paris 113, 131
    zoom_strat_camera 0.5
    campaign_wait 1

    suspend_unscripted_advice false
    inhibit_camera_input false
    show_ui
    enable_save

    terminate_monitor
    end_monitor

    ;;;;;;;;;;;;;;;;;;;;;;;;
    ; -- HRE --
    ;;;;;;;;;;;;;;;;;;;;;;;;

    monitor_conditions I_TurnNumber = 0
    and I_LocalFaction hre
    and I_CampaignNumTimePlay = 1
    and I_AdvisorVerbosityLevel > 0

    suspend_unscripted_advice true
    inhibit_camera_input true
    disable_save

    campaign_wait 0.1
    snap_strat_camera 138, 147 ;Frankfurt 138, 139
    zoom_strat_camera 0.1

    advance_advice_thread HRE_Initial_1_Advice_Thread ;Imperial Campaign

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    settlement_flash_start Frankfurt
    end_if

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    settlement_flash_stop Frankfurt

    advance_advice_thread Campaign_Initial_2_Advice_Thread ;Campaign Goals

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    select_ui_element faction_button
    simulate_mouse_click lclick_up

    advance_advice_thread Campaign_Initial_3_Advice_Thread ;Achieving Victory

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    if I_CompareCounter Opened_Faction_Overview_Scroll = 1

    advance_advice_thread Campaign_Initial_4_Advice_Thread ;Expansion and Conquest

    while I_CompareCounter Opened_Faction_Overview_Scroll = 1
    end_while

    end_if

    advance_advice_thread Campaign_Initial_Goals_Button_Advice_Thread

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    ui_flash_start faction_button

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    ui_flash_stop

    campaign_wait 1

    ;Although the Holy Roman Empire is strong, it is surrounded by enemies.
    ;You will need to contend with the French to the west, the Italians to the south, the Danes to the north
    ;and the Poles to the east. You should first strengthen your position by conquering the rebels to the north-east.
    ;The nearby Rebel town of Prague will make an ideal first target.
    advance_advice_thread HRE_Initial_5_Advice_Thread ;Where to Start

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    zoom_strat_camera 1.0
    move_strat_camera 148, 126

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;french
    settlement_flash_start Paris
    move_strat_camera 131, 126
    campaign_wait 0.5
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;italians
    settlement_flash_start Milan
    settlement_flash_start Venice
    move_strat_camera 141, 108
    campaign_wait 0.5
    end_if

    settlement_flash_stop Paris

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;danes
    settlement_flash_start Arhus
    move_strat_camera 142, 142
    end_if

    settlement_flash_stop Milan
    settlement_flash_stop Venice

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 1
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;poles
    move_strat_camera 155, 132
    settlement_flash_start Cracow
    campaign_wait 1
    end_if

    settlement_flash_stop Arhus

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;zoom to Prague
    move_strat_camera 157, 143
    zoom_strat_camera 0.5
    settlement_flash_start Magdeburg
    settlement_flash_start Breslau
    settlement_flash_start Hamburg
    settlement_flash_start Stettin
    settlement_flash_start Thorn
    settlement_flash_start Prague
    campaign_wait 1
    end_if

    settlement_flash_stop Cracow

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 1
    end_if

    settlement_flash_stop Magdeburg
    settlement_flash_stop Breslau
    settlement_flash_stop Hamburg
    settlement_flash_stop Stettin
    settlement_flash_stop Thorn

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    settlement_flash_stop Prague

    advance_advice_thread Campaign_Initial_6_Advice_Thread ;Where to Start

    zoom_strat_camera 0.8
    move_strat_camera 148, 126 ;Frankfurt 138, 139

    settlement_flash_start Frankfurt
    settlement_flash_start Nuremburg
    settlement_flash_start Vienna
    settlement_flash_start Innsbruck
    settlement_flash_start Hohenstauffen

    suspend_unscripted_advice false
    inhibit_camera_input false
    enable_save

    while I_CompareCounter Opened_Settlement_Scroll = 0
    end_while

    settlement_flash_stop Frankfurt
    settlement_flash_stop Nuremburg
    settlement_flash_stop Vienna
    settlement_flash_stop Innsbruck
    settlement_flash_stop Hohenstauffen

    terminate_monitor
    end_monitor

    ;not first campaign
    monitor_conditions I_TurnNumber = 0
    and I_LocalFaction hre
    and I_CampaignNumTimePlay > 1
    and I_CampaignNumTimePlay < 9999
    and I_AdvisorVerbosityLevel > 0
    and I_FirstTimePlay hre

    suspend_unscripted_advice true
    inhibit_camera_input true
    hide_ui
    disable_save

    campaign_wait 0.1
    zoom_strat_camera 1.0
    snap_strat_camera 148, 127 ;Frankfurt 138, 139

    while I_CompareCounter Opened_Faction_Overview_Scroll = 1
    end_while

    ;greeting
    advance_advice_thread Campaign_Greeting_HRE_Advice_Thread

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    ;Although the Holy Roman Empire is strong, it is surrounded by enemies.
    ;You will need to contend with the French to the west, the Italians to the south, the Danes to the north
    ;and the Poles to the east. You should first strengthen your position by conquering the rebels to the north-east.
    ;The nearby Rebel town of Prague will make an ideal first target.
    advance_advice_thread HRE_Initial_5_Advice_Thread ;Where to Start

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 1
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;french
    settlement_flash_start Paris
    move_strat_camera 129, 127
    campaign_wait 0.5
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;italians
    settlement_flash_start Milan
    settlement_flash_start Venice
    move_strat_camera 141, 110
    campaign_wait 0.5
    end_if

    settlement_flash_stop Paris

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;danes
    settlement_flash_start Arhus
    move_strat_camera 142, 152
    end_if

    settlement_flash_stop Milan
    settlement_flash_stop Venice

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 1
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;poles
    move_strat_camera 155, 132
    settlement_flash_start Cracow
    campaign_wait 1
    end_if

    settlement_flash_stop Arhus

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;zoom to Prague
    move_strat_camera 157, 144
    zoom_strat_camera 0.5
    settlement_flash_start Magdeburg
    settlement_flash_start Breslau
    settlement_flash_start Hamburg
    settlement_flash_start Stettin
    settlement_flash_start Thorn
    settlement_flash_start Prague
    campaign_wait 1
    end_if

    settlement_flash_stop Cracow

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 1
    end_if

    settlement_flash_stop Magdeburg
    settlement_flash_stop Breslau
    settlement_flash_stop Hamburg
    settlement_flash_stop Stettin
    settlement_flash_stop Thorn

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    settlement_flash_stop Prague

    zoom_strat_camera 0.8
    move_strat_camera 148, 125 ;Frankfurt 138, 139
    campaign_wait 1

    suspend_unscripted_advice false
    inhibit_camera_input false
    show_ui
    enable_save

    terminate_monitor
    end_monitor


    ;;;;;;;;;;;;;;;;;;;;;;;;
    ; -- Spain
    ;;;;;;;;;;;;;;;;;;;;;;;;

    monitor_conditions I_TurnNumber = 0
    and I_LocalFaction spain
    and I_CampaignNumTimePlay = 1
    and I_AdvisorVerbosityLevel > 0

    suspend_unscripted_advice true
    inhibit_camera_input true
    disable_save

    campaign_wait 0.1

    snap_strat_camera 74, 112 ;Leon 74, 104
    zoom_strat_camera 0.1

    advance_advice_thread Spain_Initial_1_Advice_Thread ;Spanish Campaign

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 1
    settlement_flash_start Leon
    end_if

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    settlement_flash_stop Leon

    advance_advice_thread Campaign_Initial_2_Advice_Thread ;Campaign Goals

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    select_ui_element faction_button
    simulate_mouse_click lclick_up

    advance_advice_thread Campaign_Initial_3_Advice_Thread ;Achieving Victory

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    if I_CompareCounter Opened_Faction_Overview_Scroll = 1

    advance_advice_thread Campaign_Initial_4_Advice_Thread ;Expansion and Conquest

    while I_CompareCounter Opened_Faction_Overview_Scroll = 1
    end_while

    end_if

    advance_advice_thread Campaign_Initial_Goals_Button_Advice_Thread

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    ui_flash_start faction_button

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    ui_flash_stop

    campaign_wait 1

    ;You are sharing the Iberian Peninsula with the much-feared Moors. You should work with the
    ;Portuguese for now to reclaim the Peninsula from the Moors to the south. You can then expand
    ;south into Africa, but be wary of the French to the north. The nearby rebel town of Valencia will make an ideal first target.
    advance_advice_thread Spain_Initial_5_Advice_Thread ;Where to Start

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    zoom_strat_camera 1.0
    move_strat_camera 76, 80

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 3
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Lisbon
    settlement_flash_start Pamplona
    campaign_wait 2
    end_if

    settlement_flash_stop Lisbon
    settlement_flash_stop Pamplona

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Granada
    settlement_flash_start Cordoba
    move_strat_camera 76, 70
    campaign_wait 2
    end_if

    settlement_flash_stop Granada
    settlement_flash_stop Cordoba

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Toulouse
    settlement_flash_start Angers
    move_strat_camera 90, 100
    campaign_wait 2
    end_if

    settlement_flash_stop Toulouse
    settlement_flash_stop Angers

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;zoom to Valencia
    settlement_flash_start Valencia
    move_strat_camera 92, 86
    zoom_strat_camera 0.5
    end_if

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    settlement_flash_stop Valencia

    advance_advice_thread Campaign_Initial_6_Advice_Thread ;Where to Start

    move_strat_camera 85, 90 ;Leon 74, 104
    zoom_strat_camera 0.5

    inhibit_camera_input false
    suspend_unscripted_advice false
    enable_save

    settlement_flash_start Leon
    settlement_flash_start Toledo

    while I_CompareCounter Opened_Settlement_Scroll = 0
    end_while

    settlement_flash_stop Leon
    settlement_flash_stop Toledo

    terminate_monitor
    end_monitor

    ;not first campaign
    monitor_conditions I_TurnNumber = 0
    and I_LocalFaction spain
    and I_CampaignNumTimePlay > 1
    and I_CampaignNumTimePlay < 9999
    and I_AdvisorVerbosityLevel > 0
    and I_FirstTimePlay spain

    suspend_unscripted_advice true
    inhibit_camera_input true
    hide_ui
    disable_save

    campaign_wait 0.1
    snap_strat_camera 76, 98 ;Leon 74, 104
    zoom_strat_camera 0.5

    while I_CompareCounter Opened_Faction_Overview_Scroll = 1
    end_while

    ;greeting
    advance_advice_thread Campaign_Greeting_Spain_Advice_Thread

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    ;You are sharing the Iberian Peninsula with the much-feared Moors. You should work with the
    ;Portuguese for now to reclaim the Peninsula from the Moors to the south. You can then expand
    ;south into Africa, but be wary of the French to the north. The nearby rebel town of Valencia will make an ideal first target.
    advance_advice_thread Spain_Initial_5_Advice_Thread ;Where to Start

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    zoom_strat_camera 1.0
    campaign_wait 1
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Lisbon
    settlement_flash_start Pamplona
    campaign_wait 2
    end_if

    settlement_flash_stop Lisbon
    settlement_flash_stop Pamplona

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Granada
    settlement_flash_start Cordoba
    move_strat_camera 76, 70
    campaign_wait 2
    end_if

    settlement_flash_stop Granada
    settlement_flash_stop Cordoba

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Toulouse
    settlement_flash_start Angers
    move_strat_camera 90, 100
    campaign_wait 2
    end_if

    settlement_flash_stop Toulouse
    settlement_flash_stop Angers

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;zoom to Valencia
    settlement_flash_start Valencia
    move_strat_camera 92, 86
    zoom_strat_camera 0.5
    end_if

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    settlement_flash_stop Valencia

    move_strat_camera 85, 90 ;Leon 74, 104
    zoom_strat_camera 0.5
    campaign_wait 1

    suspend_unscripted_advice false
    inhibit_camera_input false
    show_ui
    enable_save

    terminate_monitor
    end_monitor

    ;;;;;;;;;;;;;;;;;;;;;;;;
    ; -- Venice
    ;;;;;;;;;;;;;;;;;;;;;;;;

    monitor_conditions I_TurnNumber = 0
    and I_LocalFaction venice
    and I_CampaignNumTimePlay = 1
    and I_AdvisorVerbosityLevel > 0

    suspend_unscripted_advice true
    inhibit_camera_input true
    disable_save

    campaign_wait 0.1

    snap_strat_camera 146, 116 ;Venice 146, 108
    zoom_strat_camera 0.1

    advance_advice_thread Venice_Initial_1_Advice_Thread ;Venetian Campaign

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 3
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    settlement_flash_start Venice

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    settlement_flash_stop Venice

    advance_advice_thread Campaign_Initial_2_Advice_Thread ;Campaign Goals

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    select_ui_element faction_button
    simulate_mouse_click lclick_up

    advance_advice_thread Campaign_Initial_3_Advice_Thread ;Achieving Victory

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    if I_CompareCounter Opened_Faction_Overview_Scroll = 1

    advance_advice_thread Campaign_Initial_4_Advice_Thread ;Expansion and Conquest

    while I_CompareCounter Opened_Faction_Overview_Scroll = 1
    end_while

    end_if

    advance_advice_thread Campaign_Initial_Goals_Button_Advice_Thread

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    ui_flash_start faction_button

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    ui_flash_stop

    campaign_wait 1

    ;Venice's lands are divided and surrounded by enemies. You will need to use your legendary navy to conquer your rivals.
    ;Your best plan is to move east by land and south by sea, but be wary of the Byzantines and the Turks.
    ;You should also fortify your regions against Milan and the Holy Roman empire to the west.
    ;The nearby rebel town of Zagreb will make an ideal first target.
    advance_advice_thread Venice_Initial_5_Advice_Thread ;Where to Start

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    zoom_strat_camera 1.0
    move_strat_camera 161, 100

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 3
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;east
    move_strat_camera 180, 100
    campaign_wait 1
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;south
    move_strat_camera 186, 64
    settlement_flash_start Corinth
    settlement_flash_start Thessalonica
    campaign_wait 1
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;hre and milan
    settlement_flash_start Milan
    settlement_flash_start Genoa
    settlement_flash_start Innsbruck
    settlement_flash_start Bologna
    move_strat_camera 141, 108
    zoom_strat_camera 0.5
    campaign_wait 2
    end_if

    settlement_flash_stop Corinth
    settlement_flash_stop Thessalonica
    settlement_flash_stop Milan
    settlement_flash_stop Genoa
    settlement_flash_stop Innsbruck
    settlement_flash_stop Bologna

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;zoom to Zagreb
    settlement_flash_start Zagreb
    move_strat_camera 160, 111
    end_if

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    settlement_flash_stop Zagreb

    advance_advice_thread Campaign_Initial_6_Advice_Thread ;Where to Start

    move_strat_camera 159, 101 ;Venice 149, 109
    zoom_strat_camera 0.5

    inhibit_camera_input false
    suspend_unscripted_advice false
    enable_save

    settlement_flash_start Venice
    settlement_flash_start Ragusa

    while I_CompareCounter Opened_Settlement_Scroll = 0
    end_while

    settlement_flash_stop Venice
    settlement_flash_stop Ragusa

    terminate_monitor
    end_monitor

    ;not first campaign
    monitor_conditions I_TurnNumber = 0
    and I_LocalFaction venice
    and I_CampaignNumTimePlay > 1
    and I_CampaignNumTimePlay < 9999
    and I_AdvisorVerbosityLevel > 0
    and I_FirstTimePlay venice

    suspend_unscripted_advice true
    inhibit_camera_input true
    hide_ui
    disable_save

    campaign_wait 0.1

    while I_CompareCounter Opened_Faction_Overview_Scroll = 1
    end_while

    ;greeting
    advance_advice_thread Campaign_Greeting_Venice_Advice_Thread

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    ;Venice's lands are divided and surrounded by enemies. You will need to use your legendary navy to conquer your rivals.
    ;Your best plan is to move east by land and south by sea, but be wary of the Byzantines and the Turks.
    ;You should also fortify your regions against Milan and the Holy Roman empire to the west.
    ;The nearby rebel town of Zagreb will make an ideal first target.
    advance_advice_thread Venice_Initial_5_Advice_Thread ;Where to Start

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    zoom_strat_camera 1.0
    move_strat_camera 161, 100

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 3
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 2
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;east
    move_strat_camera 180, 100
    campaign_wait 1
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;south
    move_strat_camera 186, 64
    settlement_flash_start Corinth
    settlement_flash_start Thessalonica
    campaign_wait 1
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;hre and milan
    settlement_flash_start Milan
    settlement_flash_start Genoa
    settlement_flash_start Innsbruck
    settlement_flash_start Bologna
    move_strat_camera 141, 108
    zoom_strat_camera 0.5
    campaign_wait 2
    end_if

    settlement_flash_stop Corinth
    settlement_flash_stop Thessalonica
    settlement_flash_stop Milan
    settlement_flash_stop Genoa
    settlement_flash_stop Innsbruck
    settlement_flash_stop Bologna

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;zoom to Zagreb
    settlement_flash_start Zagreb
    move_strat_camera 160, 111
    end_if

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    settlement_flash_stop Zagreb

    move_strat_camera 159, 101 ;Venice 149, 109
    zoom_strat_camera 0.5
    campaign_wait 1

    suspend_unscripted_advice false
    inhibit_camera_input false
    show_ui
    enable_save

    terminate_monitor
    end_monitor

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;; MINOR FACTIONS ;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    ;;;;;;;;;;;;;;;;;;;;;;;;
    ; -- Sicily
    ;;;;;;;;;;;;;;;;;;;;;;;;

    monitor_conditions I_TurnNumber = 0
    and I_LocalFaction sicily
    and I_AdvisorVerbosityLevel > 0
    and I_FirstTimePlay sicily
    and I_CampaignNumTimePlay < 9999

    suspend_unscripted_advice true
    inhibit_camera_input true
    disable_movie_view
    hide_ui
    disable_save
    ;Greetings, Sire. The Kingdom of Sicily awaits your orders. Your kingdom is surrounded by Italians and the Holy Roman Empire to the North,
    ;the Byzantines to the East and the Moors to the South.
    ;It would be prudent to first acquire the nearby rebel settlements on the islands to the West,
    ;then move to establish a foothold in Africa to the south-west and Greece to the East.
    advance_advice_thread Sicily_Initial_Advice_Thread ;Where to Start
    campaign_wait 0.1
    zoom_strat_camera 1.0
    snap_strat_camera 150, 70 ;Palermo 150, 70
    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 4.5
    end_if


    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Bologna
    settlement_flash_start Venice
    settlement_flash_start Genoa
    settlement_flash_start Milan
    settlement_flash_start Innsbruck
    move_strat_camera 149, 96
    campaign_wait 1.25
    end_if

    settlement_flash_stop Bologna
    settlement_flash_stop Venice
    settlement_flash_stop Genoa
    settlement_flash_stop Milan
    settlement_flash_stop Innsbruck


    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Thessalonica
    move_strat_camera 175, 87
    campaign_wait 2
    end_if

    settlement_flash_stop Thessalonica

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 141, 84
    settlement_flash_start Ajaccio
    settlement_flash_start Cagliari
    campaign_wait 2
    end_if

    settlement_flash_stop Ajaccio
    settlement_flash_stop Cagliari

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 173, 74
    settlement_flash_start Durazzo
    settlement_flash_start Corinth
    campaign_wait 1
    end_if



    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 1

    settlement_flash_stop Durazzo
    settlement_flash_stop Corinth
    move_strat_camera 150, 70 ;Palermo 150, 70
    zoom_strat_camera 0.5
    campaign_wait 1

    suspend_unscripted_advice false
    inhibit_camera_input false
    show_ui
    enable_save

    terminate_monitor
    end_monitor

    ;;;;;;;;;;;;;;;;;;;;;;;;
    ; -- Milan
    ;;;;;;;;;;;;;;;;;;;;;;;;

    monitor_conditions I_TurnNumber = 0
    and I_LocalFaction milan
    and I_AdvisorVerbosityLevel > 0
    and I_FirstTimePlay milan
    and I_CampaignNumTimePlay < 9999

    suspend_unscripted_advice true
    inhibit_camera_input true
    disable_movie_view
    hide_ui
    disable_save
    ;Buongiorno, Duke. Welcome to the Duchy of Milan. Your lands are bordered by the Holy Roman Empire to the North,
    ;Venice to the East, the Papal States to the South and the French to the West.
    ;It would be wise to move to conquer the rebels on the islands to the South, then expand your territory into France to the North-West.
    advance_advice_thread Milan_Initial_Advice_Thread ;Where to Start

    campaign_wait 0.1
    zoom_strat_camera 1.0
    snap_strat_camera 136, 111 ;Milan 136, 111
    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 6.0
    end_if


    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Hohenstauffen
    settlement_flash_start Nuremburg
    settlement_flash_start Innsbruck
    campaign_wait 2.0
    end_if

    settlement_flash_stop Hohenstauffen
    settlement_flash_stop Nuremburg
    settlement_flash_stop Innsbruck

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Venice
    campaign_wait 1.5
    end_if

    settlement_flash_stop Venice

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Rome
    ;settlement_flash_start Marseille
    move_strat_camera 135, 101
    campaign_wait 1.0
    end_if

    settlement_flash_stop Rome
    campaign_wait 0.5

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;settlement_flash_start Rome
    settlement_flash_start Marseille
    move_strat_camera 135, 101
    campaign_wait 2.0
    end_if


    settlement_flash_stop Marseille

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    ;settlement_flash_start Ajaccio
    ;settlement_flash_start Cagliari
    move_strat_camera 135, 86
    campaign_wait 1.0
    end_if


    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Ajaccio
    settlement_flash_start Cagliari
    move_strat_camera 135, 86
    campaign_wait 1.25
    end_if

    settlement_flash_stop Ajaccio
    settlement_flash_stop Cagliari

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Bern
    settlement_flash_start Hohenstauffen
    ;settlement_flash_start Metz
    settlement_flash_start Dijon
    move_strat_camera 136, 108
    campaign_wait 1.0
    end_if

    settlement_flash_stop Bern
    settlement_flash_stop Hohenstauffen
    settlement_flash_stop Metz
    settlement_flash_stop Dijon

    ;move_strat_camera 136, 111 ;Milan 136, 111
    ;campaign_wait 0.1
    zoom_strat_camera 0.5
    campaign_wait 1

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    suspend_unscripted_advice false
    inhibit_camera_input false
    show_ui
    enable_save

    terminate_monitor
    end_monitor

    ;;;;;;;;;;;;;;;;;;;;;;;;
    ; -- Scotland
    ;;;;;;;;;;;;;;;;;;;;;;;;

    monitor_conditions I_TurnNumber = 0
    and I_LocalFaction scotland
    and I_AdvisorVerbosityLevel > 0
    and I_FirstTimePlay scotland
    and I_CampaignNumTimePlay < 9999

    suspend_unscripted_advice true
    inhibit_camera_input true
    disable_movie_view
    hide_ui
    disable_save

    advance_advice_thread Scotland_Initial_Advice_Thread ;Where to Start
    campaign_wait 0.1
    zoom_strat_camera 1.0
    snap_strat_camera 102, 174 ;Edinburgh 102, 174
    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 5.0
    end_if
    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 99, 164
    campaign_wait 1.0
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Dublin
    settlement_flash_start Caernarvon
    settlement_flash_start York
    campaign_wait 3.0
    end_if

    settlement_flash_stop Dublin
    settlement_flash_stop York
    settlement_flash_stop Caernarvon

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 106, 152
    campaign_wait 1.0
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start London
    settlement_flash_start Nottingham
    campaign_wait 1.5
    end_if

    settlement_flash_stop London
    settlement_flash_stop Nottingham

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 124, 165
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Arhus
    campaign_wait 1.0
    end_if

    settlement_flash_stop Arhus


    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 117, 150
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Bruges
    settlement_flash_start Antwerp
    campaign_wait 3.0
    end_if

    settlement_flash_stop Bruges
    settlement_flash_stop Antwerp

    move_strat_camera 102, 174
    campaign_wait 0.25
    zoom_strat_camera 0.5
    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    suspend_unscripted_advice false
    inhibit_camera_input false
    show_ui
    enable_save

    terminate_monitor
    end_monitor

    ;;;;;;;;;;;;;;;;;;;;;;;;
    ; -- Byzantium
    ;;;;;;;;;;;;;;;;;;;;;;;;

    monitor_conditions I_TurnNumber = 0
    and I_LocalFaction byzantium
    and I_AdvisorVerbosityLevel > 0
    and I_FirstTimePlay byzantium
    and I_CampaignNumTimePlay < 9999

    suspend_unscripted_advice true
    inhibit_camera_input true
    disable_movie_view
    hide_ui
    disable_save

    advance_advice_thread Byzantium_Initial_Advice_Thread ;Where to Start
    campaign_wait 0.1
    snap_strat_camera 213, 93
    zoom_strat_camera 1.0 ;Constantinople 213, 93
    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 4.0
    end_if
    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 201, 79
    campaign_wait 1.0
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Constantinople
    settlement_flash_start Nicaea
    settlement_flash_start Thessalonica
    settlement_flash_start Corinth
    campaign_wait 1.0
    end_if

    settlement_flash_stop Constantinople
    settlement_flash_stop Nicaea
    settlement_flash_stop Thessalonica
    settlement_flash_stop Corinth

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 200, 97
    campaign_wait 2.0
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Bucharest
    settlement_flash_start Sofia

    campaign_wait 2.0
    end_if

    settlement_flash_stop Bucharest
    settlement_flash_stop Sofia


    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 218, 84
    settlement_flash_start Iconium
    campaign_wait 2.0
    end_if
    settlement_flash_stop Iconium


    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 183, 105
    settlement_flash_start Bran
    settlement_flash_start Budapest
    settlement_flash_start Ragusa
    campaign_wait 2.5
    end_if

    settlement_flash_stop Bran
    settlement_flash_stop Budapest
    settlement_flash_stop Ragusa


    move_strat_camera 213, 93
    campaign_wait 0.25
    zoom_strat_camera 0.5

    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while


    suspend_unscripted_advice false
    inhibit_camera_input false
    show_ui
    enable_save

    terminate_monitor
    end_monitor

    ;;;;;;;;;;;;;;;;;;;;;;;;
    ; -- Russia
    ;;;;;;;;;;;;;;;;;;;;;;;;

    monitor_conditions I_TurnNumber = 0
    and I_LocalFaction russia
    and I_AdvisorVerbosityLevel > 0
    and I_FirstTimePlay russia
    and I_CampaignNumTimePlay < 9999

    suspend_unscripted_advice true
    inhibit_camera_input true
    hide_ui
    disable_movie_view
    disable_save

    advance_advice_thread Russia_Initial_Advice_Thread ;Where to Start
    campaign_wait 0.1
    snap_strat_camera 202, 179 ;Novgorod 202, 179
    zoom_strat_camera 1.0
    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 6.0
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 222, 166
    campaign_wait 1.5
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Moscow
    settlement_flash_start Smolensk
    campaign_wait 2.0
    end_if

    settlement_flash_stop Moscow
    settlement_flash_stop Smolensk

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 193, 168
    ;campaign_wait 1.0
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Riga
    settlement_flash_start Helsinki
    settlement_flash_start Vilnius
    campaign_wait 1.0
    end_if

    settlement_flash_stop Riga
    settlement_flash_stop Helsinki
    settlement_flash_stop Vilnius

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 160, 167
    campaign_wait 1.0
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Arhus
    campaign_wait 2.0
    end_if

    settlement_flash_stop Arhus

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 202, 179
    end_if

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    move_strat_camera 202, 179
    campaign_wait 0.25
    zoom_strat_camera 0.5

    suspend_unscripted_advice false
    inhibit_camera_input false
    show_ui
    enable_save

    terminate_monitor
    end_monitor

    ;;;;;;;;;;;;;;;;;;;;;;;;
    ; -- Moors
    ;;;;;;;;;;;;;;;;;;;;;;;;

    monitor_conditions I_TurnNumber = 0
    and I_LocalFaction moors
    and I_AdvisorVerbosityLevel > 0
    and I_FirstTimePlay moors
    and I_CampaignNumTimePlay < 9999

    suspend_unscripted_advice true
    inhibit_camera_input true
    hide_ui
    disable_movie_view
    disable_save

    advance_advice_thread Moors_Initial_Advice_Thread ;Where to Start

    campaign_wait 0.1
    snap_strat_camera 71, 80 ;Cordoba 71, 80
    zoom_strat_camera 1.0
    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 5.0
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 84, 89
    campaign_wait 1.5
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Valencia
    settlement_flash_start Zaragoza
    campaign_wait 2.0
    end_if

    settlement_flash_stop Valencia
    settlement_flash_stop Zaragoza

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 66, 99
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Toledo
    settlement_flash_start Leon
    settlement_flash_start Lisbon
    campaign_wait 2.0
    end_if

    settlement_flash_stop Toledo
    settlement_flash_stop Leon
    settlement_flash_stop Lisbon

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 122, 68
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Tunis
    campaign_wait 2.0
    end_if

    settlement_flash_stop Tunis

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 128, 88
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Milan
    settlement_flash_start Genoa
    settlement_flash_start Bologna
    settlement_flash_start Venice
    campaign_wait 2.0
    end_if

    settlement_flash_stop Milan
    settlement_flash_stop Genoa
    settlement_flash_stop Bologna
    settlement_flash_stop Venice

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 78, 90
    campaign_wait 1.0
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 71, 80
    end_if

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    move_strat_camera 71, 80
    campaign_wait 0.25
    zoom_strat_camera 0.5

    suspend_unscripted_advice false
    inhibit_camera_input false
    show_ui
    enable_save

    terminate_monitor
    end_monitor

    ;;;;;;;;;;;;;;;;;;;;;;;;
    ; -- Turks
    ;;;;;;;;;;;;;;;;;;;;;;;;

    monitor_conditions I_TurnNumber = 0
    and I_LocalFaction turks
    and I_AdvisorVerbosityLevel > 0
    and I_FirstTimePlay turks
    and I_CampaignNumTimePlay < 9999

    suspend_unscripted_advice true
    inhibit_camera_input true
    hide_ui
    disable_movie_view
    disable_save

    advance_advice_thread Turks_Initial_Advice_Thread ;Where to Start
    campaign_wait 0.1
    snap_strat_camera 232, 76 ;Iconium 232, 76
    zoom_strat_camera 1.0
    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 5.0
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 253, 59
    campaign_wait 0.5
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Adana
    settlement_flash_start Aleppo
    settlement_flash_start Antioch
    settlement_flash_start Damascus
    settlement_flash_start Edessa
    campaign_wait 1.5
    settlement_flash_stop Adana
    settlement_flash_stop Aleppo
    settlement_flash_stop Antioch
    settlement_flash_stop Damascus
    settlement_flash_stop Edessa
    settlement_flash_stop Jerusalem
    settlement_flash_start Jerusalem
    campaign_wait 1.5
    end_if



    settlement_flash_stop Adana
    settlement_flash_stop Aleppo
    settlement_flash_stop Antioch
    settlement_flash_stop Damascus
    settlement_flash_stop Edessa
    settlement_flash_stop Jerusalem

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 239, 45
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Alexandria
    settlement_flash_start Gaza
    campaign_wait 2.0
    end_if

    settlement_flash_stop Alexandria
    settlement_flash_stop Gaza

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 224, 81
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Constantinople
    settlement_flash_start Nicaea
    campaign_wait 2.0
    end_if

    settlement_flash_stop Constantinople
    settlement_flash_stop Nicaea

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 203, 98
    campaign_wait 1.0
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 232, 76
    end_if

    move_strat_camera 232, 76
    campaign_wait 0.25
    zoom_strat_camera 0.5


    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    suspend_unscripted_advice false
    inhibit_camera_input false
    show_ui
    enable_save

    terminate_monitor
    end_monitor

    ;;;;;;;;;;;;;;;;;;;;;;;;
    ; -- Egypt
    ;;;;;;;;;;;;;;;;;;;;;;;;

    monitor_conditions I_TurnNumber = 0
    and I_LocalFaction egypt
    and I_AdvisorVerbosityLevel > 0
    and I_FirstTimePlay egypt
    and I_CampaignNumTimePlay < 9999

    suspend_unscripted_advice true
    inhibit_camera_input true
    hide_ui
    disable_movie_view
    disable_save

    advance_advice_thread Egypt_Initial_Advice_Thread ;Where to Start
    campaign_wait 0.1
    snap_strat_camera 235, 32 ;Cairo 71, 80
    zoom_strat_camera 1.0
    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 5.0
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 253, 63
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Adana
    settlement_flash_start Acre
    settlement_flash_start Aleppo
    settlement_flash_start Antioch
    settlement_flash_start Damascus
    settlement_flash_start Edessa
    settlement_flash_start Jerusalem
    campaign_wait 2.0
    end_if
    settlement_flash_stop Adana
    settlement_flash_stop Aleppo
    settlement_flash_stop Antioch
    settlement_flash_stop Damascus
    settlement_flash_stop Edessa
    settlement_flash_stop Acre
    settlement_flash_stop Jerusalem

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 262, 80
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Mosul
    settlement_flash_start Caesarea
    settlement_flash_start Yerevan
    campaign_wait 2.0
    end_if

    settlement_flash_stop Mosul
    settlement_flash_stop Caesarea
    settlement_flash_stop Yerevan

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 207, 44
    end_if
    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 169, 73
    campaign_wait 1.0
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 235, 32
    end_if

    move_strat_camera 235, 32
    campaign_wait 0.25
    zoom_strat_camera 0.5


    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    suspend_unscripted_advice false
    inhibit_camera_input false
    show_ui
    enable_save

    terminate_monitor
    end_monitor

    ;;;;;;;;;;;;;;;;;;;;;;;;
    ; -- Denmark
    ;;;;;;;;;;;;;;;;;;;;;;;;

    monitor_conditions I_TurnNumber = 0
    and I_LocalFaction denmark
    and I_AdvisorVerbosityLevel > 0
    and I_FirstTimePlay denmark
    and I_CampaignNumTimePlay < 9999

    suspend_unscripted_advice true
    inhibit_camera_input true
    hide_ui
    disable_movie_view
    disable_save

    advance_advice_thread Denmark_Initial_Advice_Thread ;Where to Start
    campaign_wait 0.1
    snap_strat_camera 141, 166 ;Arhus 141, 166
    zoom_strat_camera 1.0
    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    campaign_wait 6.5
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 145, 167
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Oslo
    settlement_flash_start Stockholm
    settlement_flash_start Stettin
    settlement_flash_start Hamburg
    campaign_wait 2.5
    end_if
    settlement_flash_stop Oslo
    settlement_flash_stop Stockholm
    settlement_flash_stop Stettin
    settlement_flash_stop Hamburg

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 189, 168
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Riga
    settlement_flash_start Helsinki
    settlement_flash_start Vilnius
    settlement_flash_start Novgorod
    campaign_wait 2.0
    end_if
    settlement_flash_stop Riga
    settlement_flash_stop Helsinki
    settlement_flash_stop Vilnius
    settlement_flash_stop Novgorod

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 155, 138
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Cracow
    settlement_flash_start Nuremburg
    settlement_flash_start Frankfurt
    campaign_wait 2.0
    end_if

    settlement_flash_stop Cracow
    settlement_flash_stop Nuremburg
    settlement_flash_stop Frankfurt

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 141, 166
    end_if

    move_strat_camera 141, 166
    campaign_wait 0.25
    zoom_strat_camera 0.5

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    suspend_unscripted_advice false
    inhibit_camera_input false
    show_ui
    enable_save

    terminate_monitor
    end_monitor

    ;;;;;;;;;;;;;;;;;;;;;;;;
    ; -- Portugal
    ;;;;;;;;;;;;;;;;;;;;;;;;

    monitor_conditions I_TurnNumber = 0
    and I_LocalFaction portugal
    and I_AdvisorVerbosityLevel > 0
    and I_FirstTimePlay portugal
    and I_CampaignNumTimePlay < 9999

    suspend_unscripted_advice true
    inhibit_camera_input true
    hide_ui
    disable_movie_view
    disable_save

    advance_advice_thread Portugal_Initial_Advice_Thread ;Where to Start

    campaign_wait 0.1
    snap_strat_camera 55, 88 ;Lisbon 55, 88
    zoom_strat_camera 1.0
    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 2.0

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 73, 90
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Lisbon
    settlement_flash_start Pamplona
    campaign_wait 1.5
    end_if

    settlement_flash_stop Lisbon
    settlement_flash_stop Pamplona

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Leon
    settlement_flash_start Toledo
    settlement_flash_start Cordoba
    campaign_wait 2.5
    end_if
    settlement_flash_stop Leon
    settlement_flash_stop Toledo
    settlement_flash_stop Cordoba

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 93, 95
    campaign_wait 1.0
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Zaragoza
    campaign_wait 1.0
    end_if

    settlement_flash_stop Zaragoza

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 93, 72
    campaign_wait 0.5
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 100, 105
    campaign_wait 0.5
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 55, 88
    end_if

    move_strat_camera 55, 88
    campaign_wait 0.25
    zoom_strat_camera 0.5

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    suspend_unscripted_advice false
    inhibit_camera_input false
    show_ui
    enable_save

    terminate_monitor
    end_monitor

    ;;;;;;;;;;;;;;;;;;;;;;;;
    ; -- Poland
    ;;;;;;;;;;;;;;;;;;;;;;;;

    monitor_conditions I_TurnNumber = 0
    and I_LocalFaction poland
    and I_AdvisorVerbosityLevel > 0
    and I_FirstTimePlay poland
    and I_CampaignNumTimePlay < 9999

    suspend_unscripted_advice true
    inhibit_camera_input true
    hide_ui
    disable_movie_view
    disable_save

    advance_advice_thread Poland_Initial_Advice_Thread ;Where to Start
    campaign_wait 0.1
    snap_strat_camera 174, 136 ;Krakow Cracow 174, 136
    zoom_strat_camera 1.0
    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 7.5

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 168, 143
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Thorn
    settlement_flash_start Breslau
    campaign_wait 2.5
    end_if

    settlement_flash_stop Thorn
    settlement_flash_stop Breslau

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 153, 138
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Nuremburg
    campaign_wait 2.5
    end_if
    settlement_flash_stop Nuremburg

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 153, 165
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Arhus
    settlement_flash_start Stockholm
    campaign_wait 1.5
    end_if

    settlement_flash_stop Arhus
    settlement_flash_stop Stockholm

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 180, 170
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Helsinki
    settlement_flash_start Riga
    settlement_flash_start Novgorod
    campaign_wait 1.5
    end_if

    settlement_flash_stop Helsinki
    settlement_flash_stop Riga
    settlement_flash_stop Novgorod

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 174, 136
    end_if

    move_strat_camera 174, 136
    campaign_wait 0.25
    zoom_strat_camera 0.5

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    suspend_unscripted_advice false
    inhibit_camera_input false
    show_ui
    enable_save

    terminate_monitor
    end_monitor

    ;;;;;;;;;;;;;;;;;;;;;;;;
    ; -- Hungary
    ;;;;;;;;;;;;;;;;;;;;;;;;

    monitor_conditions I_TurnNumber = 0
    and I_LocalFaction hungary
    and I_AdvisorVerbosityLevel > 0
    and I_FirstTimePlay hungary
    and I_CampaignNumTimePlay < 9999

    suspend_unscripted_advice true
    inhibit_camera_input true
    hide_ui
    disable_movie_view
    disable_save

    advance_advice_thread Hungary_Initial_Advice_Thread ;Where to Start
    campaign_wait 0.1
    snap_strat_camera 172, 122 ;Budapest 172, 122
    zoom_strat_camera 1.0
    while not I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    campaign_wait 7.0

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Vienna
    campaign_wait 1.5
    end_if

    settlement_flash_stop Vienna

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Cracow
    campaign_wait 1.0
    end_if

    settlement_flash_stop Cracow

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 186, 97
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Thessalonica
    campaign_wait 2.0
    end_if

    settlement_flash_stop Thessalonica

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 196, 104
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    settlement_flash_start Sofia
    settlement_flash_start Bucharest
    campaign_wait 2.0
    end_if

    settlement_flash_stop Sofia
    settlement_flash_stop Bucharest

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 220, 129
    campaign_wait 0.5
    end_if

    if I_AdvisorSpeechPlaying and I_AdvisorVisible
    move_strat_camera 172, 122
    end_if

    move_strat_camera 172, 122
    campaign_wait 0.25
    zoom_strat_camera 0.5

    while I_AdvisorSpeechPlaying
    and I_AdvisorVisible
    end_while

    suspend_unscripted_advice false
    inhibit_camera_input false
    show_ui
    enable_save

    terminate_monitor
    end_monitor

    ;########################### MONEY SCRIPT ##############################

    monitor_event FactionTurnStart not FactionIsLocal
    and FactionType england
    and Treasury < 30000
    console_command add_money england, 4500
    end_monitor

    monitor_event FactionTurnStart not FactionIsLocal
    and FactionType france
    and Treasury < 30000
    console_command add_money france, 4500
    end_monitor

    monitor_event FactionTurnStart not FactionIsLocal
    and FactionType hre
    and Treasury < 30000
    console_command add_money hre, 4500
    end_monitor

    monitor_event FactionTurnStart not FactionIsLocal
    and FactionType spain
    and Treasury < 30000
    console_command add_money spain, 4500
    end_monitor

    monitor_event FactionTurnStart not FactionIsLocal
    and FactionType venice
    and Treasury < 30000
    console_command add_money venice, 3800
    end_monitor

    monitor_event FactionTurnStart not FactionIsLocal
    and FactionType sicily
    and Treasury < 30000
    console_command add_money sicily, 4500
    end_monitor

    monitor_event FactionTurnStart not FactionIsLocal
    and FactionType milan
    and Treasury < 30000
    console_command add_money milan, 2500
    end_monitor

    monitor_event FactionTurnStart not FactionIsLocal
    and FactionType scotland
    and Treasury < 30000
    console_command add_money scotland, 3800
    end_monitor

    monitor_event FactionTurnStart not FactionIsLocal
    and FactionType denmark
    and Treasury < 30000
    console_command add_money denmark, 4000
    end_monitor

    monitor_event FactionTurnStart not FactionIsLocal
    and FactionType portugal
    and Treasury < 30000
    console_command add_money portugal, 3800
    end_monitor

    monitor_event FactionTurnStart not FactionIsLocal
    and FactionType poland
    and Treasury < 30000
    console_command add_money poland, 3800
    end_monitor

    monitor_event FactionTurnStart not FactionIsLocal
    and FactionType hungary
    and Treasury < 30000
    console_command add_money hungary, 3800
    end_monitor

    monitor_event FactionTurnStart not FactionIsLocal
    and FactionType russia
    and Treasury < 30000
    console_command add_money russia, 4400
    end_monitor

    monitor_event FactionTurnStart not FactionIsLocal
    and FactionType moors
    and Treasury < 30000
    console_command add_money moors, 4500
    end_monitor

    monitor_event FactionTurnStart not FactionIsLocal
    and FactionType turks
    and Treasury < 30000
    console_command add_money turks, 4500
    end_monitor

    monitor_event FactionTurnStart not FactionIsLocal
    and FactionType egypt
    and Treasury < 30000
    console_command add_money egypt, 4800
    end_monitor

    monitor_event FactionTurnStart not FactionIsLocal
    and FactionType byzantium
    and Treasury < 30000
    console_command add_money byzantium, 4300
    end_monitor

    monitor_event FactionTurnStart not FactionIsLocal
    and FactionType knights_templar
    and Treasury < 30000
    console_command add_money knights_templar, 3500
    end_monitor

    monitor_event FactionTurnStart not FactionIsLocal
    and FactionType kievan_rus
    and Treasury < 30000
    console_command add_money kievan_rus, 4400
    end_monitor

    monitor_event FactionTurnStart not FactionIsLocal
    and FactionType aragon
    and Treasury < 30000
    console_command add_money aragon, 4000
    end_monitor

    monitor_event FactionTurnStart not FactionIsLocal
    and FactionType aztecs
    and Treasury < 50000
    console_command add_money aztecs, 5000
    end_monitor

    monitor_event FactionTurnStart not FactionIsLocal
    and FactionType mongols
    and Treasury < 8000
    console_command add_money mongols, 1000
    end_monitor

    monitor_event FactionTurnStart not FactionIsLocal
    and FactionType timurids
    and Treasury < 8000
    console_command add_money timurids, 1000
    end_monitor

    ;########################### FALL OF SETTLEMENTS ##############################

    monitor_event GeneralCaptureSettlement not FactionIsLocal
    and SettlementName Rome
    and I_EventCounter fall_of_rome = 0
    historic_event fall_of_rome
    terminate_monitor
    end_monitor

    monitor_event GeneralCaptureSettlement not FactionIsLocal
    and SettlementName Arhus
    and I_EventCounter fall_of_arhus = 0
    historic_event fall_of_arhus
    terminate_monitor
    end_monitor

    monitor_event GeneralCaptureSettlement not FactionIsLocal
    and SettlementName Barcelona
    and I_EventCounter fall_of_barcelona = 0
    historic_event fall_of_barcelona
    terminate_monitor
    end_monitor

    monitor_event GeneralCaptureSettlement not FactionIsLocal
    and SettlementName Budapest
    and I_EventCounter fall_of_budapest = 0
    historic_event fall_of_budapest
    terminate_monitor
    end_monitor

    monitor_event GeneralCaptureSettlement not FactionIsLocal
    and SettlementName Cairo
    and I_EventCounter fall_of_cairo = 0
    historic_event fall_of_cairo
    terminate_monitor
    end_monitor

    monitor_event GeneralCaptureSettlement not FactionIsLocal
    and SettlementName Constantinople
    and I_EventCounter fall_of_constantinople = 0
    historic_event fall_of_constantinople
    terminate_monitor
    end_monitor

    monitor_event GeneralCaptureSettlement not FactionIsLocal
    and SettlementName Edinburgh
    and I_EventCounter fall_of_edinburgh = 0
    historic_event fall_of_edinburgh
    terminate_monitor
    end_monitor

    monitor_event GeneralCaptureSettlement not FactionIsLocal
    and SettlementName Iconium
    and I_EventCounter fall_of_iconium = 0
    historic_event fall_of_iconium
    terminate_monitor
    end_monitor

    monitor_event GeneralCaptureSettlement not FactionIsLocal
    and SettlementName Kiev
    and I_EventCounter fall_of_kiev = 0
    historic_event fall_of_kiev
    terminate_monitor
    end_monitor

    monitor_event GeneralCaptureSettlement not FactionIsLocal
    and SettlementName Krakow
    and I_EventCounter fall_of_krakow = 0
    historic_event fall_of_krakow
    terminate_monitor
    end_monitor

    monitor_event GeneralCaptureSettlement not FactionIsLocal
    and SettlementName Leon
    and I_EventCounter fall_of_leon = 0
    historic_event fall_of_leon
    terminate_monitor
    end_monitor

    monitor_event GeneralCaptureSettlement not FactionIsLocal
    and SettlementName Lisbon
    and I_EventCounter fall_of_lisbon = 0
    historic_event fall_of_lisbon
    terminate_monitor
    end_monitor

    monitor_event GeneralCaptureSettlement not FactionIsLocal
    and SettlementName London
    and I_EventCounter fall_of_london = 0
    historic_event fall_of_london
    terminate_monitor
    end_monitor

    monitor_event GeneralCaptureSettlement not FactionIsLocal
    and SettlementName Cordoba
    and I_EventCounter fall_of_cordoba = 0
    historic_event fall_of_cordoba
    terminate_monitor
    end_monitor

    monitor_event GeneralCaptureSettlement not FactionIsLocal
    and SettlementName Milan
    and I_EventCounter fall_of_milan = 0
    historic_event fall_of_milan
    terminate_monitor
    end_monitor

    monitor_event GeneralCaptureSettlement not FactionIsLocal
    and SettlementName Novgorod
    and I_EventCounter fall_of_novgorod = 0
    historic_event fall_of_novgorod
    terminate_monitor
    end_monitor

    monitor_event GeneralCaptureSettlement not FactionIsLocal
    and SettlementName Nuremburg
    and I_EventCounter fall_of_nuremburg = 0
    historic_event fall_of_nuremburg
    terminate_monitor
    end_monitor


    monitor_event GeneralCaptureSettlement not FactionIsLocal
    and SettlementName Palermo
    and I_EventCounter fall_of_palermo = 0
    historic_event fall_of_palermo
    terminate_monitor
    end_monitor

    monitor_event GeneralCaptureSettlement not FactionIsLocal
    and SettlementName Paris
    and I_EventCounter fall_of_paris = 0
    historic_event fall_of_paris
    terminate_monitor
    end_monitor

    monitor_event GeneralCaptureSettlement not FactionIsLocal
    and SettlementName Tortosa
    and I_EventCounter fall_of_tortosa = 0
    historic_event fall_of_tortosa
    terminate_monitor
    end_monitor

    monitor_event GeneralCaptureSettlement not FactionIsLocal
    and SettlementName Venice
    and I_EventCounter fall_of_venice = 0
    historic_event fall_of_venice
    terminate_monitor
    end_monitor

    ;########################### BBB EVENTS ##############################

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;; AI-Faction Leader Death Messages ;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    ; restrict_strat_radar false

    declare_counter moors_becomesking
    declare_counter portugal_becomesking
    declare_counter spain_becomesking
    declare_counter turks_becomesking
    declare_counter egypt_becomesking
    declare_counter byzantium_becomesking
    declare_counter russia_becomesking
    declare_counter poland_becomesking
    declare_counter hungary_becomesking
    declare_counter hre_becomesking
    declare_counter france_becomesking
    declare_counter england_becomesking
    declare_counter scotland_becomesking
    declare_counter venice_becomesking
    declare_counter milan_becomesking
    declare_counter sicily_becomesking
    declare_counter knights_templar_becomesking
    declare_counter kievan_rus_becomesking
    declare_counter aragon_becomesking
    declare_counter denmark_becomesking

    set_counter moors_becomesking 0
    set_counter portugal_becomesking 0
    set_counter spain_becomesking 0
    set_counter turks_becomesking 0
    set_counter egypt_becomesking 0
    set_counter byzantium_becomesking 0
    set_counter russia_becomesking 0
    set_counter poland_becomesking 0
    set_counter hungary_becomesking 0
    set_counter hre_becomesking 0
    set_counter france_becomesking 0
    set_counter england_becomesking 0
    set_counter scotland_becomesking 0
    set_counter venice_becomesking 0
    set_counter milan_becomesking 0
    set_counter sicily_becomesking 0
    set_counter knights_templar_becomesking 0
    set_counter kievan_rus_becomesking 0
    set_counter aragon_becomesking 0
    set_counter denmark_becomesking 0

    monitor_event BecomesFactionLeader not FactionIsLocal
    and I_CompareCounter moors_becomesking < 1
    and FactionType moors
    set_counter moors_becomesking 1
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter moors_becomesking > 0
    and IsFactionLeader
    and FactionType moors
    and not Trait FactionRegent > 0
    add_events
    event historic moors_king_event
    date 0
    end_add_events
    set_counter moors_becomesking 0
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter moors_becomesking > 0
    and IsFactionLeader
    and FactionType moors
    and Trait FactionRegent > 0
    add_events
    event historic moors_regent_event
    date 0
    end_add_events
    set_counter moors_becomesking 0
    end_monitor

    monitor_event BecomesFactionLeader not FactionIsLocal
    and I_CompareCounter portugal_becomesking < 1
    and FactionType portugal
    set_counter portugal_becomesking 1
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter portugal_becomesking > 0
    and IsFactionLeader
    and FactionType portugal
    and not Trait FactionRegent > 0
    add_events
    event historic portugal_king_event
    date 0
    end_add_events
    set_counter portugal_becomesking 0
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter portugal_becomesking > 0
    and IsFactionLeader
    and FactionType portugal
    and Trait FactionRegent > 0
    add_events
    event historic portugal_regent_event
    date 0
    end_add_events
    set_counter portugal_becomesking 0
    end_monitor

    monitor_event BecomesFactionLeader not FactionIsLocal
    and I_CompareCounter spain_becomesking < 1
    and FactionType spain
    set_counter spain_becomesking 1
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter spain_becomesking > 0
    and IsFactionLeader
    and FactionType spain
    and not Trait FactionRegent > 0
    add_events
    event historic spain_king_event
    date 0
    end_add_events
    set_counter spain_becomesking 0
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter spain_becomesking > 0
    and IsFactionLeader
    and FactionType spain
    and Trait FactionRegent > 0
    add_events
    event historic spain_regent_event
    date 0
    end_add_events
    set_counter spain_becomesking 0
    end_monitor

    monitor_event BecomesFactionLeader not FactionIsLocal
    and I_CompareCounter turks_becomesking < 1
    and FactionType turks
    set_counter turks_becomesking 1
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter turks_becomesking > 0
    and IsFactionLeader
    and FactionType turks
    and not Trait FactionRegent > 0
    add_events
    event historic turks_king_event
    date 0
    end_add_events
    set_counter turks_becomesking 0
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter turks_becomesking > 0
    and IsFactionLeader
    and FactionType turks
    and Trait FactionRegent > 0
    add_events
    event historic turks_regent_event
    date 0
    end_add_events
    set_counter turks_becomesking 0
    end_monitor

    monitor_event BecomesFactionLeader not FactionIsLocal
    and I_CompareCounter egypt_becomesking < 1
    and FactionType egypt
    set_counter egypt_becomesking 1
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter egypt_becomesking > 0
    and IsFactionLeader
    and FactionType egypt
    and not Trait FactionRegent > 0
    add_events
    event historic egypt_king_event
    date 0
    end_add_events
    set_counter egypt_becomesking 0
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter egypt_becomesking > 0
    and IsFactionLeader
    and FactionType egypt
    and Trait FactionRegent > 0
    add_events
    event historic egypt_regent_event
    date 0
    end_add_events
    set_counter egypt_becomesking 0
    end_monitor

    monitor_event BecomesFactionLeader not FactionIsLocal
    and I_CompareCounter byzantium_becomesking < 1
    and FactionType byzantium
    set_counter byzantium_becomesking 1
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter byzantium_becomesking > 0
    and IsFactionLeader
    and FactionType byzantium
    and not Trait FactionRegent > 0
    add_events
    event historic byzantium_king_event
    date 0
    end_add_events
    set_counter byzantium_becomesking 0
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter byzantium_becomesking > 0
    and IsFactionLeader
    and FactionType byzantium
    and Trait FactionRegent > 0
    add_events
    event historic byzantium_regent_event
    date 0
    end_add_events
    set_counter byzantium_becomesking 0
    end_monitor

    monitor_event BecomesFactionLeader not FactionIsLocal
    and I_CompareCounter russia_becomesking < 1
    and FactionType russia
    set_counter russia_becomesking 1
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter russia_becomesking > 0
    and IsFactionLeader
    and FactionType russia
    and not Trait FactionRegent > 0
    add_events
    event historic russia_king_event
    date 0
    end_add_events
    set_counter russia_becomesking 0
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter russia_becomesking > 0
    and IsFactionLeader
    and FactionType russia
    and Trait FactionRegent > 0
    add_events
    event historic russia_regent_event
    date 0
    end_add_events
    set_counter russia_becomesking 0
    end_monitor

    monitor_event BecomesFactionLeader not FactionIsLocal
    and I_CompareCounter poland_becomesking < 1
    and FactionType poland
    set_counter poland_becomesking 1
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter poland_becomesking > 0
    and IsFactionLeader
    and FactionType poland
    and not Trait FactionRegent > 0
    add_events
    event historic poland_king_event
    date 0
    end_add_events
    set_counter poland_becomesking 0
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter poland_becomesking > 0
    and IsFactionLeader
    and FactionType poland
    and Trait FactionRegent > 0
    add_events
    event historic poland_regent_event
    date 0
    end_add_events
    set_counter poland_becomesking 0
    end_monitor

    monitor_event BecomesFactionLeader not FactionIsLocal
    and I_CompareCounter hungary_becomesking < 1
    and FactionType hungary
    set_counter hungary_becomesking 1
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter hungary_becomesking > 0
    and IsFactionLeader
    and FactionType hungary
    and not Trait FactionRegent > 0
    add_events
    event historic hungary_king_event
    date 0
    end_add_events
    set_counter hungary_becomesking 0
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter hungary_becomesking > 0
    and IsFactionLeader
    and FactionType hungary
    and Trait FactionRegent > 0
    add_events
    event historic hungary_regent_event
    date 0
    end_add_events
    set_counter hungary_becomesking 0
    end_monitor

    monitor_event BecomesFactionLeader not FactionIsLocal
    and I_CompareCounter hre_becomesking < 1
    and FactionType hre
    set_counter hre_becomesking 1
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter hre_becomesking > 0
    and IsFactionLeader
    and FactionType hre
    and not Trait FactionRegent > 0
    add_events
    event historic hre_king_event
    date 0
    end_add_events
    set_counter hre_becomesking 0
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter hre_becomesking > 0
    and IsFactionLeader
    and FactionType hre
    and Trait FactionRegent > 0
    add_events
    event historic hre_regent_event
    date 0
    end_add_events
    set_counter hre_becomesking 0
    end_monitor

    monitor_event BecomesFactionLeader not FactionIsLocal
    and I_CompareCounter france_becomesking < 1
    and FactionType france
    set_counter france_becomesking 1
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter france_becomesking > 0
    and IsFactionLeader
    and FactionType france
    and not Trait FactionRegent > 0
    add_events
    event historic france_king_event
    date 0
    end_add_events
    set_counter france_becomesking 0
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter france_becomesking > 0
    and IsFactionLeader
    and FactionType france
    and Trait FactionRegent > 0
    add_events
    event historic france_regent_event
    date 0
    end_add_events
    set_counter france_becomesking 0
    end_monitor

    monitor_event BecomesFactionLeader not FactionIsLocal
    and I_CompareCounter england_becomesking < 1
    and FactionType england
    set_counter england_becomesking 1
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter england_becomesking > 0
    and IsFactionLeader
    and FactionType england
    and not Trait FactionRegent > 0
    add_events
    event historic england_king_event
    date 0
    end_add_events
    set_counter england_becomesking 0
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter england_becomesking > 0
    and IsFactionLeader
    and FactionType england
    and Trait FactionRegent > 0
    add_events
    event historic england_regent_event
    date 0
    end_add_events
    set_counter england_becomesking 0
    end_monitor

    monitor_event BecomesFactionLeader not FactionIsLocal
    and I_CompareCounter scotland_becomesking < 1
    and FactionType scotland
    set_counter scotland_becomesking 1
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter scotland_becomesking > 0
    and IsFactionLeader
    and FactionType scotland
    and not Trait FactionRegent > 0
    add_events
    event historic scotland_king_event
    date 0
    end_add_events
    set_counter scotland_becomesking 0
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter scotland_becomesking > 0
    and IsFactionLeader
    and FactionType scotland
    and Trait FactionRegent > 0
    add_events
    event historic scotland_regent_event
    date 0
    end_add_events
    set_counter scotland_becomesking 0
    end_monitor

    monitor_event BecomesFactionLeader not FactionIsLocal
    and I_CompareCounter venice_becomesking < 1
    and FactionType venice
    set_counter venice_becomesking 1
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter venice_becomesking > 0
    and IsFactionLeader
    and FactionType venice
    and not Trait FactionRegent > 0
    add_events
    event historic venice_king_event
    date 0
    end_add_events
    set_counter venice_becomesking 0
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter venice_becomesking > 0
    and IsFactionLeader
    and FactionType venice
    and Trait FactionRegent > 0
    add_events
    event historic venice_regent_event
    date 0
    end_add_events
    set_counter venice_becomesking 0
    end_monitor

    monitor_event BecomesFactionLeader not FactionIsLocal
    and I_CompareCounter milan_becomesking < 1
    and FactionType milan
    set_counter milan_becomesking 1
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter milan_becomesking > 0
    and IsFactionLeader
    and FactionType milan
    and not Trait FactionRegent > 0
    add_events
    event historic milan_king_event
    date 0
    end_add_events
    set_counter milan_becomesking 0
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter milan_becomesking > 0
    and IsFactionLeader
    and FactionType milan
    and Trait FactionRegent > 0
    add_events
    event historic milan_regent_event
    date 0
    end_add_events
    set_counter milan_becomesking 0
    end_monitor

    monitor_event BecomesFactionLeader not FactionIsLocal
    and I_CompareCounter sicily_becomesking < 1
    and FactionType sicily
    set_counter sicily_becomesking 1
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter sicily_becomesking > 0
    and IsFactionLeader
    and FactionType sicily
    and not Trait FactionRegent > 0
    add_events
    event historic sicily_king_event
    date 0
    end_add_events
    set_counter sicily_becomesking 0
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter sicily_becomesking > 0
    and IsFactionLeader
    and FactionType sicily
    and Trait FactionRegent > 0
    add_events
    event historic sicily_regent_event
    date 0
    end_add_events
    set_counter sicily_becomesking 0
    end_monitor

    monitor_event BecomesFactionLeader not FactionIsLocal
    and I_CompareCounter knights_templar_becomesking < 1
    and FactionType knights_templar
    set_counter knights_templar_becomesking 1
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter knights_templar_becomesking > 0
    and IsFactionLeader
    and FactionType knights_templar
    and not Trait FactionRegent > 0
    add_events
    event historic knights_templar_king_event
    date 0
    end_add_events
    set_counter knights_templar_becomesking 0
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter knights_templar_becomesking > 0
    and IsFactionLeader
    and FactionType knights_templar
    and Trait FactionRegent > 0
    add_events
    event historic knights_templar_regent_event
    date 0
    end_add_events
    set_counter knights_templar_becomesking 0
    end_monitor

    monitor_event BecomesFactionLeader not FactionIsLocal
    and I_CompareCounter kievan_rus_becomesking < 1
    and FactionType kievan_rus
    set_counter kievan_rus_becomesking 1
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter kievan_rus_becomesking > 0
    and IsFactionLeader
    and FactionType kievan_rus
    and not Trait FactionRegent > 0
    add_events
    event historic kievan_rus_king_event
    date 0
    end_add_events
    set_counter kievan_rus_becomesking 0
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter kievan_rus_becomesking > 0
    and IsFactionLeader
    and FactionType kievan_rus
    and Trait FactionRegent > 0
    add_events
    event historic kievan_rus_regent_event
    date 0
    end_add_events
    set_counter kievan_rus_becomesking 0
    end_monitor

    monitor_event BecomesFactionLeader not FactionIsLocal
    and I_CompareCounter aragon_becomesking < 1
    and FactionType aragon
    set_counter aragon_becomesking 1
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter aragon_becomesking > 0
    and IsFactionLeader
    and FactionType aragon
    and not Trait FactionRegent > 0
    add_events
    event historic aragon_king_event
    date 0
    end_add_events
    set_counter aragon_becomesking 0
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter aragon_becomesking > 0
    and IsFactionLeader
    and FactionType aragon
    and Trait FactionRegent > 0
    add_events
    event historic aragon_regent_event
    date 0
    end_add_events
    set_counter aragon_becomesking 0
    end_monitor

    monitor_event BecomesFactionLeader not FactionIsLocal
    and I_CompareCounter denmark_becomesking < 1
    and FactionType denmark
    set_counter denmark_becomesking 1
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter denmark_becomesking > 0
    and IsFactionLeader
    and FactionType denmark
    and not Trait FactionRegent > 0
    add_events
    event historic denmark_king_event
    date 0
    end_add_events
    set_counter denmark_becomesking 0
    end_monitor

    monitor_event CharacterTurnEnd not FactionIsLocal
    and I_CompareCounter denmark_becomesking > 0
    and IsFactionLeader
    and FactionType denmark
    and Trait FactionRegent > 0
    add_events
    event historic denmark_regent_event
    date 0
    end_add_events
    set_counter denmark_becomesking 0
    end_monitor

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;; Princess Comes Of Age - Messages ;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    monitor_event CharacterComesOfAge FactionIsLocal
    and AgentType = princess
    add_events
    event historic princess_local
    date 0
    end_add_events
    end_monitor

    monitor_event CharacterComesOfAge not FactionIsLocal
    and AgentType = princess
    and FactionType england
    add_events
    event historic princess_england
    date 0
    end_add_events
    end_monitor

    monitor_event CharacterComesOfAge not FactionIsLocal
    and AgentType = princess
    and FactionType france
    add_events
    event historic princess_france
    date 0
    end_add_events
    end_monitor

    monitor_event CharacterComesOfAge not FactionIsLocal
    and AgentType = princess
    and FactionType hre
    add_events
    event historic princess_hre
    date 0
    end_add_events
    end_monitor

    monitor_event CharacterComesOfAge not FactionIsLocal
    and AgentType = princess
    and FactionType milan
    add_events
    event historic princess_milan
    date 0
    end_add_events
    end_monitor

    monitor_event CharacterComesOfAge not FactionIsLocal
    and AgentType = princess
    and FactionType venice
    add_events
    event historic princess_venice
    date 0
    end_add_events
    end_monitor

    monitor_event CharacterComesOfAge not FactionIsLocal
    and AgentType = princess
    and FactionType spain
    add_events
    event historic princess_spain
    date 0
    end_add_events
    end_monitor

    monitor_event CharacterComesOfAge not FactionIsLocal
    and AgentType = princess
    and FactionType portugal
    add_events
    event historic princess_portugal
    date 0
    end_add_events
    end_monitor

    monitor_event CharacterComesOfAge not FactionIsLocal
    and AgentType = princess
    and FactionType sicily
    add_events
    event historic princess_sicily
    date 0
    end_add_events
    end_monitor

    monitor_event CharacterComesOfAge not FactionIsLocal
    and AgentType = princess
    and FactionType byzantium
    add_events
    event historic princess_byzantium
    date 0
    end_add_events
    end_monitor

    monitor_event CharacterComesOfAge not FactionIsLocal
    and AgentType = princess
    and FactionType russia
    add_events
    event historic princess_russia
    date 0
    end_add_events
    end_monitor

    monitor_event CharacterComesOfAge not FactionIsLocal
    and AgentType = princess
    and FactionType denmark
    add_events
    event historic princess_denmark
    date 0
    end_add_events
    end_monitor

    monitor_event CharacterComesOfAge not FactionIsLocal
    and AgentType = princess
    and FactionType poland
    add_events
    event historic princess_poland
    date 0
    end_add_events
    end_monitor

    monitor_event CharacterComesOfAge not FactionIsLocal
    and AgentType = princess
    and FactionType hungary
    add_events
    event historic princess_hungary
    date 0
    end_add_events
    end_monitor

    monitor_event CharacterComesOfAge not FactionIsLocal
    and AgentType = princess
    and FactionType moors
    add_events
    event historic princess_moors
    date 0
    end_add_events
    end_monitor

    monitor_event CharacterComesOfAge not FactionIsLocal
    and AgentType = princess
    and FactionType turks
    add_events
    event historic princess_turks
    date 0
    end_add_events
    end_monitor

    monitor_event CharacterComesOfAge not FactionIsLocal
    and AgentType = princess
    and FactionType egypt
    add_events
    event historic princess_egypt
    date 0
    end_add_events
    end_monitor

    monitor_event CharacterComesOfAge not FactionIsLocal
    and AgentType = princess
    and FactionType knights_templar
    add_events
    event historic princess_knights_templar
    date 0
    end_add_events
    end_monitor

    monitor_event CharacterComesOfAge not FactionIsLocal
    and AgentType = princess
    and FactionType kievan_rus
    add_events
    event historic princess_kievan_rus
    date 0
    end_add_events
    end_monitor

    monitor_event CharacterComesOfAge not FactionIsLocal
    and AgentType = princess
    and FactionType aragon
    add_events
    event historic princess_aragon
    date 0
    end_add_events
    end_monitor

    monitor_event CharacterComesOfAge not FactionIsLocal
    and AgentType = princess
    and FactionType scotland
    add_events
    event historic princess_scotland
    date 0
    end_add_events
    end_monitor

    ; keep script unfinised until last monitor termination
    wait_monitors

    end_script


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •