;===================== CONTENTS ==================================================
;---- HELP FOR MODERS
;------- Technical advice
;------- Advice on moding this SSHIP script
;------- Ideas for further modding
;---- TECHNICALITIES for script
;------- Reveal everything ( shift + r to trigger)
;------- Test trigger ( shift + t to trigger)
;------- Show build version and date in the log
;---- CAMPAIGN SET-UP
;------- Difficulty set-up (counters & infos for difficulty, king's purse adjustments)
;------- Who's playing current turn
;---------- Definitions for eras, leap years, etc.
;---------- Mongol Decline Script (MDS) : counters set-up
;---------- Beginning of AI turn: zeroing counters, setting AI & difficulties
;---------- Beginning of PLAYER turn: zeroing counters, setting player & other counters, aggressivity system decrease
;---------- Beginning of EACH FACTION turn: setting counters for faction, religion, culture, size, excommunication
;---------- Whose settlement it is
;------- Reveal Known Settlements (at the beginning of a campaign)
;---- VARIOUS SCRIPTS IN ONE MONITOR AT SLAVE TURN
;------- Scripts common for invasions mechanisms (decrease purse, countdown of counters etc.)
;------- Mongol Decline Script (MDS) : counters each turn
;------- Factions close-to-collapse information window
;---- NOTIFICATIONS & HISTORICAL EVENTS (pop-out windows)
;------- Info depending on difficulty
;------- Info depending on religion
;------- Factions' initial historical info pop-up
;------- Statistics of the campaign
;---- AI SUPPORT
;------- Destroy AI buildings that prevent AI from funding other buildings
;------- Spawn of Armies at the Beginning
;------- Spawn of Fleets at the Beginning
;------- Scripted Early Sieges with Additional Armies
;------- Additional Fleets Throughout The Game
;------- Additional General if there're Too Few
;---- AI FACTION REEMERGENCE SCRIPT (11000 lines)
;---- BATTLE RELATED
;------- Leader Battle Models
;------- G5 BAI STUFF (22000 lines)
;------- G5 Looting Script
;---- ECONOMY
;------- Player's treasury size counter & anti-hoarding mechanism (to be used also in other scripts)
;------- G5 Faction Economy Script
;------- Additional Costs (Change of Capital, Supply, NewNobles, JoinsCrusade)
;------- Mercenaries Disband Due to Debts
;---- INTERNATIONAL AFFAIRS (5500 lines)
;------- Small scripts for diplomacy
;------- Player Agressivity Mechanism (turmoil and deterioration of diplo standing after capture of a settlement)
;------- Aggressor Tracking Script (if and how many on-going war were inititated by a faction)
;------- AI Faction Leader Change Effects (for a weak AI the diplomatic standing is reset)
;---- FACTION LEADER
;------- FL Policies & Counters (EDCT -> counters -> EDB, script & other) (1700 lines)
;------- Change on the throne counters & costs (2000 lines)
;------- Crowns (ceremony, costs, upkeep)
;------- FL Faction Killer (for each faction monitor CeasedFactionLeader)
;------- King's Right Hand tracking (Near_Loyalty)
;---- BUILDINGS
;---------- Buildings completed / existing - counters
;------- REGULAR BUILDINGS
;---------- Racing Track
;---------- Universities - catholic evolution
;---------- Printing Press
;------- UNIQUE BUILDINGS (wonders) --- (fires coded for: Holy Sepulchre, Umayyad Mosque, Speyer, Wien, Krakow)
;------- HANSA buildings
;---------- Hanseatic System
;---------- Hansa buildings fires
;------- SOUTH ITALY buildings
;---------- Al-Idrisi
;---------- South Italy Building fires
;------- Knight Orders (Recruitment Requirements, Dissolution of the Templars, Hospitaller, Teutonic, Santiago)
;---- PROVINCES
;------- Provinces activated on SettlementSelected
;------- Capture of Settlements (change of name, armies spawned, building damaged, counters: _turns_in_our_realm, aggressivity)
;---------- After capture: List of 199 settlements by region (28000 lines)
;------- Settlement Situation (unrest due to conquest, occupation, weak leader, player's aggressivity; rebellions, raids)
;---------- Script for each of 199 settlements (56000 lines)
;------- Civil war after usurpation (Armies & Duration) (1800 lines)
;------- Rebellions in troublesome regions (spawn of slave armies: Austria)
;------- Wars over historically contested provinces (Bohemia, Jutland)
;---- INVASIONS
;------- Scotland Mobilizes
;------- Bulgarian Uprising (098 deactivated)
;------- Eldeguzid invasions of Georgia
;------- Turcoman Help for Rum
;------- Berber Help for Moors
;------- Makurian Help for the Fatimids
;------- Steppes Untamed - Nomadic Tribes Help for the Cumans
;------- Qara Khitai
;------- GOLDEN HORDE (MONGOL INVASIONS)
;---------- Mongol Decline Script (MDS) : trigger event
;---- FACTIONS' HISTORICAL EVOLUTIONS
;---------- Coat of Arms event
;---------- Ostsiedlung event
;---------- Catalan Company events
;---------- Bedouins
;---------- Info on spheres of influence (activated on SettlementSelected)
;------- Catholic Factions
;---------- Poland Evolution
;---------- Hungary Evolution
;---------- Kingdom of Jerusalem Evolution
;---------- France Evolution
;---------- HRE Evolution
;---------- England Evolution
;---------- Scotland Evolution
;---------- Norway Evolution
;---------- Denmark Evolution
;---------- Spain Evolution
;---------- Aragon Evolution
;---------- Portugal Evolution
;------- Pagan Factions
;---------- Lithuania Evolution
;------- Orthodox Factions
;---------- Byzantine Evolutions
;---------- Serbia Evolution
;---------- Georgia Evolution
;---------- Rus Evolution
;------- Muslim Dynasties
;---------- Rum Evolution
;---------- Almoravid Evolution
;---------- Zengid Evolution
;---------- Abbasid Evolution
;---------- Fatimid Evolution (Baqt, Fatimid to Ayyubid, Ayyubid to Mamluk)
;---- CHURCH, ANCILLARIES, PRINCESSES
;------- Church Titles
;------- Ecumenical Patriarch
;------- Great People Ancillaries
;------- Noble Lady Spawn Script (3000 lines)
;---- NATURAL DISASTERS
;------- Earthquakes
;------- Floods
;---- INTERACTIVE EVENTS
;------- Great Trade Fair
;------- Great Tourney
;------- Troubadours
;------- Great Councils
;------- Pirates
;------- Financial Support for the Crusaders
;---- INACTIVE SCRIPTS
;------- Republic Heir Creation (INACTIVE)
;------- Choose next heir (Miguel_80) (INACTIVE)
;---- END OF SCRIPT - DON'T DELETE WHAT'S BELOW