Results 1 to 5 of 5

Thread: Wierd Problem in Campaign_Script

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Wierd Problem in Campaign_Script

    hello all


    i've been trying to edit the campaign_script.txt file, but i get a wierd CTD

    the file (see last spoiler) used to work.. but now out of nothing i get a ctd..

    if the file is clean, it work perfectly

    ;
    ; Campaign Script
    ;
    script

    restrict_strat_radar false


    wait_monitors

    end_script
    but if i add anything, no matter the scripts i insert on it or their size.. i get a ctd while loading the campaign, in the loading screen



    little campaign_script to test:

    Spoiler Alert, click show to read: 
    ;
    ; Campaign Script
    ;
    script

    restrict_strat_radar false

    ;||||||||||||Historical Time Period Background|||||||||||||||||||||||||


    monitor_event FactionTurnStart not FactionReligion pagan
    and not IsFactionAIControlled
    and I_TurnNumber = 0

    add_events
    event historic game_background
    date 0
    end_add_events

    terminate_monitor
    end_monitor

    wait_monitors

    end_script



    ...or:


    Spoiler Alert, click show to read: 

    ;
    ; Campaign Script
    ;
    script

    restrict_strat_radar false

    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||Historical Time Period Background|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

    monitor_event FactionTurnStart not FactionReligion pagan
    and not IsFactionAIControlled
    and I_TurnNumber = 0
    add_events
    event historic game_background
    date 0
    end_add_events
    terminate_monitor
    end_monitor

    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||Character Aging Correctly 1/4 turns per year|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||Includes GED's Randomized Winter||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;Not included
    ;
    ;declare_counter quarter
    ;set_counter quarter 1 ;set to January
    ;declare_counter winter_severity
    ;set_counter winter_severity 1; mild winter
    ;
    ;monitor_event PreFactionTurnStart FactionIsLocal ; set the season for each quarter
    ; if I_CompareCounter quarter == 1 ;Jan, Feb, March
    ; console_command season winter
    ; set_event_counter summer_winter 1; next turn will be summer
    ; end_if
    ;
    ; if I_CompareCounter quarter == 2 ;April, May, June
    ; console_command season summer
    ; end_if
    ;
    ; if I_CompareCounter quarter == 3 ;July, Aug, Sept
    ; and I_CompareCounter winter_severity == 1; normal winter
    ; console_command season summer
    ; set_event_counter summer_winter 2;next turn will be winter
    ; end_if
    ;
    ; if I_CompareCounter quarter == 3 ;July, Aug, Sept
    ; and I_CompareCounter winter_severity == 3; mild winter
    ; console_command season summer
    ; end_if
    ;
    ; if I_CompareCounter quarter == 4 ;Oct, Nov, Dec
    ; and I_CompareCounter winter_severity == 1; normal winter
    ; console_command season winter
    ; end_if
    ;
    ; if I_CompareCounter quarter == 4 ;Oct, Nov, Dec
    ; and I_CompareCounter winter_severity == 3; mild winter
    ; console_command season summer
    ; historic_event mild_winter
    ; set_event_counter summer_winter 2;next turn will be winter
    ; end_if
    ;
    ; inc_counter quarter 1 ;advance the quarter
    ; if I_CompareCounter quarter == 5 ;start a new year
    ; set_counter quarter 1
    ; end_if
    ;end_monitor
    ;
    ;monitor_event FactionTurnEnd FactionType slave
    ; and I_CompareCounter quarter > 1
    ; console_command season summer
    ;end_monitor
    ;
    ;monitor_event FactionTurnEnd FactionType slave
    ; and I_CompareCounter quarter == 2
    ;
    ; set_counter winter_severity 1; back to normal winter
    ; if RandomPercent > 80 ; 80 percent chance for normal winter
    ; set_counter winter_severity 3; mild winter
    ; end_if
    ;end_monitor
    ; wait_monitors
    ;
    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| AI extra Morale ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    monitor_event FactionTurnStart FactionIsLocal
    and I_TurnNumber = 0
    and CampaignDifficulty = hard
    set_event_counter difficulty_hard 1
    terminate_monitor
    end_monitor

    monitor_event FactionTurnStart FactionIsLocal
    and I_TurnNumber = 0
    and CampaignDifficulty = very_hard
    set_event_counter difficulty_very_hard 1
    terminate_monitor
    end_monitor

    set_event_counter is_the_ai 0

    monitor_event PreFactionTurnStart FactionIsLocal
    set_event_counter is_the_ai 0
    end_monitor

    monitor_event PreFactionTurnStart not FactionIsLocal
    set_event_counter is_the_ai 1
    end_monitor

    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| denarii bonuses |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

    ;||||||||||||||||||||||||||||Medium|||||||||||||||||||||||

    monitor_event FactionTurnStart FactionIsLocal
    and I_TurnNumber = 0
    and CampaignDifficulty = medium

    if I_IsFactionAIControlled france
    increment_kings_purse france 1000
    end_if

    if I_IsFactionAIControlled antioch
    increment_kings_purse antioch 1100
    end_if

    if I_IsFactionAIControlled jerusalem
    increment_kings_purse jerusalem 1300
    end_if

    if I_IsFactionAIControlled milan
    increment_kings_purse milan 800
    end_if

    if I_IsFactionAIControlled moors
    increment_kings_purse moors 1100
    end_if

    if I_IsFactionAIControlled turks
    increment_kings_purse turks 1200
    end_if

    if I_IsFactionAIControlled egypt
    increment_kings_purse egypt 1400
    end_if

    if I_IsFactionAIControlled mongols
    increment_kings_purse mongols 1300
    end_if

    if I_IsFactionAIControlled russia
    increment_kings_purse russia 1300
    end_if

    if I_IsFactionAIControlled byzantium
    increment_kings_purse byzantium 1400
    end_if

    terminate_monitor
    end_monitor

    ;||||||||||||||||||||||||||||||Hard||||||||||||||||||||||||||||||||

    monitor_event FactionTurnStart FactionIsLocal
    and I_TurnNumber = 0
    and CampaignDifficulty = hard

    if I_IsFactionAIControlled france
    increment_kings_purse france 1300
    end_if

    if I_IsFactionAIControlled antioch
    increment_kings_purse antioch 1400
    end_if

    if I_IsFactionAIControlled jerusalem
    increment_kings_purse jerusalem 1700
    end_if

    if I_IsFactionAIControlled milan
    increment_kings_purse milan 1000
    end_if

    if I_IsFactionAIControlled moors
    increment_kings_purse moors 1400
    end_if

    if I_IsFactionAIControlled turks
    increment_kings_purse turks 1300
    end_if

    if I_IsFactionAIControlled egypt
    increment_kings_purse egypt 1700
    end_if

    if I_IsFactionAIControlled mongols
    increment_kings_purse mongols 1600
    end_if

    if I_IsFactionAIControlled russia
    increment_kings_purse russia 1300
    end_if

    if I_IsFactionAIControlled byzantium
    increment_kings_purse byzantium 1400
    end_if

    terminate_monitor
    end_monitor

    ;|||||||||||||||||||||||||||Very Hard|||||||||||||||||||||

    monitor_event FactionTurnStart FactionIsLocal
    and I_TurnNumber = 0
    and CampaignDifficulty = very_hard

    if I_IsFactionAIControlled france
    increment_kings_purse france 1800
    end_if

    if I_IsFactionAIControlled antioch
    increment_kings_purse antioch 2200
    end_if

    if I_IsFactionAIControlled jerusalem
    increment_kings_purse jerusalem 2300
    end_if

    if I_IsFactionAIControlled milan
    increment_kings_purse milan 1800
    end_if

    if I_IsFactionAIControlled moors
    increment_kings_purse moors 1900
    end_if

    if I_IsFactionAIControlled turks
    increment_kings_purse turks 2400
    end_if

    if I_IsFactionAIControlled egypt
    increment_kings_purse egypt 2250
    end_if

    if I_IsFactionAIControlled mongols
    increment_kings_purse mongols 2100
    end_if

    if I_IsFactionAIControlled russia
    increment_kings_purse russia 2000
    end_if

    if I_IsFactionAIControlled byzantium
    increment_kings_purse byzantium 2300
    end_if

    terminate_monitor
    end_monitor

    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||Bonus Money if AI Factions have Debts|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

    monitor_event FactionTurnStart FactionType russia
    and IsFactionAIControlled
    and Treasury < -500

    add_money russia 10000

    end_monitor

    monitor_event FactionTurnStart FactionType france
    and IsFactionAIControlled
    and Treasury < -500

    add_money france 10000

    end_monitor

    monitor_event FactionTurnStart FactionType jerusalem
    and IsFactionAIControlled
    and Treasury < -500

    add_money jerusalem 10000

    end_monitor

    monitor_event FactionTurnStart FactionType antioch
    and IsFactionAIControlled
    and Treasury < -500

    add_money antioch 10000

    end_monitor

    monitor_event FactionTurnStart FactionType milan
    and IsFactionAIControlled
    and Treasury < -500

    add_money milan 10000

    end_monitor

    monitor_event FactionTurnStart FactionType moors
    and IsFactionAIControlled
    and Treasury < -500

    add_money moors 10000

    end_monitor

    monitor_event FactionTurnStart FactionType turks
    and IsFactionAIControlled
    and Treasury < -500

    add_money turks 10000

    end_monitor

    monitor_event FactionTurnStart FactionType egypt
    and IsFactionAIControlled
    and Treasury < -500

    add_money egypt 10000

    end_monitor

    monitor_event FactionTurnStart FactionType mongols
    and IsFactionAIControlled
    and Treasury < -500

    add_money mongols 10000

    end_monitor

    monitor_event FactionTurnStart FactionType byzantium
    and IsFactionAIControlled
    and Treasury < -500

    add_money byzantium 10000

    end_monitor

    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||Besieging Penalties [costs of war]|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

    monitor_event CharacterTurnEnd FactionType jerusalem
    and CharacterIsLocal
    and IsBesieging
    if I_LosingMoney jerusalem
    console_command add_money jerusalem, -150
    end_if
    if not I_LosingMoney jerusalem
    console_command add_money jerusalem, -350
    end_if
    end_monitor

    monitor_event CharacterTurnEnd FactionType antioch
    and CharacterIsLocal
    and IsBesieging
    if I_LosingMoney antioch
    console_command add_money antioch, -150
    end_if
    if not I_LosingMoney antioch
    console_command add_money antioch, -350
    end_if
    end_monitor

    monitor_event CharacterTurnEnd FactionType france
    and CharacterIsLocal
    and IsBesieging
    if I_LosingMoney france
    console_command add_money france, -150
    end_if
    if not I_LosingMoney france
    console_command add_money france, -350
    end_if
    end_monitor

    monitor_event CharacterTurnEnd FactionType turks
    and CharacterIsLocal
    and IsBesieging
    if I_LosingMoney turks
    console_command add_money turks, -150
    end_if
    if not I_LosingMoney turks
    console_command add_money turks, -350
    end_if
    end_monitor

    monitor_event CharacterTurnEnd FactionType egypt
    and CharacterIsLocal
    and IsBesieging
    if I_LosingMoney egypt
    console_command add_money egypt, -150
    end_if
    if not I_LosingMoney egypt
    console_command add_money egypt, -350
    end_if
    end_monitor

    monitor_event CharacterTurnEnd FactionType byzantium
    and CharacterIsLocal
    and IsBesieging
    if I_LosingMoney byzantium
    console_command add_money byzantium, -150
    end_if
    if not I_LosingMoney byzantium
    console_command add_money byzantium, -350
    end_if
    end_monitor

    monitor_event CharacterTurnEnd FactionType milan
    and CharacterIsLocal
    and IsBesieging
    if I_LosingMoney milan
    console_command add_money milan, -150
    end_if
    if not I_LosingMoney milan
    console_command add_money milan, -350
    end_if
    end_monitor

    monitor_event CharacterTurnEnd FactionType russia
    and CharacterIsLocal
    and IsBesieging
    if I_LosingMoney russia
    console_command add_money russia, -150
    end_if
    if not I_LosingMoney russia
    console_command add_money russia, -350
    end_if
    end_monitor

    monitor_event CharacterTurnEnd FactionType moors
    and CharacterIsLocal
    and IsBesieging
    if I_LosingMoney moors
    console_command add_money moors, -150
    end_if
    if not I_LosingMoney moors
    console_command add_money moors, -350
    end_if
    end_monitor

    monitor_event CharacterTurnEnd FactionType mongols
    and CharacterIsLocal
    and IsBesieging
    if I_LosingMoney mongols
    console_command add_money mongols, -100
    end_if
    if not I_LosingMoney mongols
    console_command add_money mongols, -300
    end_if
    end_monitor

    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||LAND RAIDING|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;
    ;;;;; If a general is standing on enemy lands it will recieve money due to the landing
    ;

    monitor_event GeneralDevastatesTile FactionType hungary
    and I_LocalFaction hungary

    add_money hungary 750

    end_monitor

    monitor_event GeneralDevastatesTile FactionType hungary
    and not I_LocalFaction hungary

    add_money hungary 200

    end_monitor

    monitor_event GeneralDevastatesTile FactionType turks
    and I_LocalFaction turks

    add_money turks 750

    end_monitor

    monitor_event GeneralDevastatesTile FactionType turks
    and not I_LocalFaction turks

    add_money turks 200

    end_monitor

    monitor_event GeneralDevastatesTile FactionType jerusalem
    and I_LocalFaction jerusalem

    add_money jerusalem 750

    end_monitor

    monitor_event GeneralDevastatesTile FactionType jerusalem
    and not I_LocalFaction jerusalem

    add_money jerusalem 200

    end_monitor

    monitor_event GeneralDevastatesTile FactionType antioch
    and I_LocalFaction antioch

    add_money antioch 750

    end_monitor

    monitor_event GeneralDevastatesTile FactionType antioch
    and not I_LocalFaction antioch

    add_money antioch 200

    end_monitor

    monitor_event GeneralDevastatesTile FactionType france
    and I_LocalFaction france

    add_money france 750

    end_monitor

    monitor_event GeneralDevastatesTile FactionType france
    and not I_LocalFaction france

    add_money france 200

    end_monitor

    monitor_event GeneralDevastatesTile FactionType egypt
    and I_LocalFaction egypt

    add_money egypt 750

    end_monitor

    monitor_event GeneralDevastatesTile FactionType egypt
    and not I_LocalFaction egypt

    add_money egypt 200

    end_monitor

    monitor_event GeneralDevastatesTile FactionType byzantium
    and I_LocalFaction byzantium

    add_money byzantium 750

    end_monitor

    monitor_event GeneralDevastatesTile FactionType byzantium
    and not I_LocalFaction byzantium

    add_money byzantium 200

    end_monitor

    monitor_event GeneralDevastatesTile FactionType milan
    and I_LocalFaction milan

    add_money milan 750

    end_monitor

    monitor_event GeneralDevastatesTile FactionType milan
    and not I_LocalFaction milan

    add_money milan 200

    end_monitor

    monitor_event GeneralDevastatesTile FactionType moors
    and I_LocalFaction moors

    add_money moors 750

    end_monitor

    monitor_event GeneralDevastatesTile FactionType moors
    and not I_LocalFaction moors

    add_money moors 200

    end_monitor

    monitor_event GeneralDevastatesTile FactionType russia
    and I_LocalFaction russia

    add_money russia 750

    end_monitor

    monitor_event GeneralDevastatesTile FactionType russia
    and not I_LocalFaction russia

    add_money russia 200

    end_monitor

    monitor_event GeneralDevastatesTile FactionType mongols
    and I_LocalFaction mongols

    add_money mongols 1500

    end_monitor

    monitor_event GeneralDevastatesTile FactionType mongols
    and not I_LocalFaction mongols

    add_money mongols 3500

    end_monitor

    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||Settlements Conquered|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;/////////////////////////////Jerusalem\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;
    ;/////////Reconquest of Jerusalem by Crusaders\\\\\\\\\\\\\\
    monitor_event GeneralCaptureSettlement SettlementName Jerusalem
    and CharacterReligion catholic
    add_events
    event historic jerusalem_crusaders
    date 0 0
    end_add_events
    terminate_monitor
    end_monitor

    ;/////////Conquest of Jerusalem by Muslims\\\\\\\\\\\\\
    monitor_event GeneralCaptureSettlement SettlementName Jerusalem
    and CharacterReligion islam
    add_events
    event historic jerusalem_islam
    date 0 0
    end_add_events
    terminate_monitor
    end_monitor

    ;/////////Conquest of Jerusalem by non Crusader nor Muslims\\\\\\\\\\\\\
    ;monitor_event GeneralCaptureSettlement SettlementName Jerusalem
    ; and not CharacterReligion islam
    ; and not CharacterReligion catholic
    ; add_events
    ; event historic jerusalem_others
    ; date 0 0
    ; end_add_events
    ;terminate_monitor
    ;end_monitor

    ;/////////Conquest of Jerusalem by the Mongols\\\\\\\\\\\\\
    monitor_event GeneralCaptureSettlement SettlementName Jerusalem
    and CharacterReligion pagan
    add_events
    event historic jerusalem_mongols
    date 0 0
    end_add_events
    terminate_monitor
    end_monitor

    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;/////////////////////////////////Acre\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

    ;/////////Acre is Crusader\\\\\\\\\\\\\\
    monitor_event GeneralCaptureSettlement SettlementName Acre
    and CharacterReligion catholic
    add_events
    event historic acre_crusaders
    date 0 0
    end_add_events
    terminate_monitor
    end_monitor

    ;/////////Acre is Muslim\\\\\\\\\\\\\
    monitor_event GeneralCaptureSettlement SettlementName Acre
    and CharacterReligion islam
    add_events
    event historic acre_islam
    date 0 0
    end_add_events
    terminate_monitor
    end_monitor

    ;/////////Acre is not Crusader nor Muslim\\\\\\\\\\\\\
    ;monitor_event GeneralCaptureSettlement SettlementName Acre
    ; and not CharacterReligion islam
    ; and not CharacterReligion catholic
    ; add_events
    ; event historic acre_others
    ; date 0 0
    ; end_add_events
    ;terminate_monitor
    ;end_monitor

    ;///////////Acre is Mongol\\\\\\\\\\\\\
    monitor_event GeneralCaptureSettlement SettlementName Acre
    and CharacterReligion pagan
    add_events
    event historic acre_mongols
    date 0 0
    end_add_events
    terminate_monitor
    end_monitor

    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;/////////////////////////////////Krak des Chevaliers\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

    ;/////////krak_ is Crusader\\\\\\\\\\\\\\
    monitor_event GeneralCaptureSettlement SettlementName krak_
    and CharacterReligion catholic
    add_events
    event historic krak_crusaders
    date 0 0
    end_add_events
    terminate_monitor
    end_monitor

    ;/////////krak_ is Muslim\\\\\\\\\\\\\
    monitor_event GeneralCaptureSettlement SettlementName krak_
    and CharacterReligion islam
    add_events
    event historic krak_islam
    date 0 0
    end_add_events
    terminate_monitor
    end_monitor

    ;/////////krak_ is not Crusader nor Muslim\\\\\\\\\\\\\
    ;monitor_event GeneralCaptureSettlement SettlementName krak_
    ; and not CharacterReligion islam
    ; and not CharacterReligion catholic
    ; add_events
    ; event historic krak_others
    ; date 0 0
    ; end_add_events
    ;terminate_monitor
    ;end_monitor

    ;///////////krak_ is Mongol\\\\\\\\\\\\\
    monitor_event GeneralCaptureSettlement SettlementName krak_
    and CharacterReligion pagan
    add_events
    event historic krak_mongols
    date 0 0
    end_add_events
    terminate_monitor
    end_monitor

    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;/////////////////////////////////Cairo\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

    ;/////////Cairo is Crusader\\\\\\\\\\\\\\
    monitor_event GeneralCaptureSettlement SettlementName Cairo
    and CharacterReligion catholic
    add_events
    event historic cairo_crusaders
    date 0 0
    end_add_events
    terminate_monitor
    end_monitor

    ;/////////Cairo is Muslim\\\\\\\\\\\\\
    monitor_event GeneralCaptureSettlement SettlementName Cairo
    and CharacterReligion islam
    add_events
    event historic cairo_islam
    date 0 0
    end_add_events
    terminate_monitor
    end_monitor

    ;/////////Cairo is not Crusader nor Muslim\\\\\\\\\\\\\
    ;monitor_event GeneralCaptureSettlement SettlementName Cairo
    ; and not CharacterReligion islam
    ; and not CharacterReligion catholic
    ; add_events
    ; event historic cairo_others
    ; date 0 0
    ; end_add_events
    ;terminate_monitor
    ;end_monitor

    ;///////////Cairo is Mongol\\\\\\\\\\\\\
    monitor_event GeneralCaptureSettlement SettlementName Cairo
    and CharacterReligion pagan
    add_events
    event historic cairo_mongols
    date 0 0
    end_add_events
    terminate_monitor
    end_monitor

    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;/////////////////////////////////Constantinople\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

    ;/////////Constantinople is Crusader\\\\\\\\\\\\\\
    monitor_event GeneralCaptureSettlement SettlementName Constantinople
    and CharacterReligion catholic
    add_events
    event historic constantinople_crusaders
    date 0 0
    end_add_events
    terminate_monitor
    end_monitor

    ;/////////Constantinople is Muslim\\\\\\\\\\\\\
    monitor_event GeneralCaptureSettlement SettlementName Constantinople
    and CharacterReligion islam
    add_events
    event historic constantinople_islam
    date 0 0
    end_add_events
    terminate_monitor
    end_monitor

    ;/////////Constantinople is not Crusader nor Muslim\\\\\\\\\\\\\
    ;monitor_event GeneralCaptureSettlement SettlementName Constantinople
    ; and not CharacterReligion islam
    ; and not CharacterReligion catholic
    ; add_events
    ; event historic constantinople_others
    ; date 0 0
    ; end_add_events
    ;terminate_monitor
    ;end_monitor

    ;///////////Constantinople is Mongol\\\\\\\\\\\\\
    monitor_event GeneralCaptureSettlement SettlementName Constantinople
    and CharacterReligion pagan
    add_events
    event historic constantinople_mongols
    date 0 0
    end_add_events
    terminate_monitor
    end_monitor

    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;/////////////////////////////////Baghdad\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

    ;/////////Baghdad is Crusader\\\\\\\\\\\\\\
    monitor_event GeneralCaptureSettlement SettlementName Baghdad
    and CharacterReligion catholic
    add_events
    event historic baghdad_crusaders
    date 0 0
    end_add_events
    terminate_monitor
    end_monitor

    ;/////////Baghdad is Muslim\\\\\\\\\\\\\
    monitor_event GeneralCaptureSettlement SettlementName Baghdad
    and CharacterReligion islam
    add_events
    event historic baghdad_islam
    date 0 0
    end_add_events
    terminate_monitor
    end_monitor

    ;/////////Baghdad is not Crusader nor Muslim\\\\\\\\\\\\\
    ;monitor_event GeneralCaptureSettlement SettlementName Baghdad
    ; and not CharacterReligion islam
    ; and not CharacterReligion catholic
    ; add_events
    ; event historic baghdad_others
    ; date 0 0
    ; end_add_events
    ;terminate_monitor
    ;end_monitor

    ;///////////Baghdad is Mongol\\\\\\\\\\\\\
    monitor_event GeneralCaptureSettlement SettlementName Baghdad
    and CharacterReligion pagan
    add_events
    event historic baghdad_mongols
    date 0 0
    end_add_events
    terminate_monitor
    end_monitor

    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;/////////////////////////////////Antioch\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

    ;/////////Antioch is Crusader\\\\\\\\\\\\\\
    monitor_event GeneralCaptureSettlement SettlementName Antioch
    and CharacterReligion catholic
    add_events
    event historic antioch_crusaders
    date 0 0
    end_add_events
    terminate_monitor
    end_monitor

    ;/////////Antioch is Muslim\\\\\\\\\\\\\
    monitor_event GeneralCaptureSettlement SettlementName Antioch
    and CharacterReligion islam
    add_events
    event historic antioch_islam
    date 0 0
    end_add_events
    terminate_monitor
    end_monitor

    ;/////////Antioch is not Crusader nor Muslim\\\\\\\\\\\\\
    ;monitor_event GeneralCaptureSettlement SettlementName Antioch
    ; and not CharacterReligion islam
    ; and not CharacterReligion catholic
    ; add_events
    ; event historic antioch_others
    ; date 0 0
    ; end_add_events
    ;terminate_monitor
    ;end_monitor

    ;///////////Antioch is Mongol\\\\\\\\\\\\\
    monitor_event GeneralCaptureSettlement SettlementName Antioch
    and CharacterReligion pagan
    add_events
    event historic antioch_mongols
    date 0 0
    end_add_events
    terminate_monitor
    end_monitor

    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;/////////////////////////////////Damascus\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

    ;/////////Damascus is Crusader\\\\\\\\\\\\\\
    monitor_event GeneralCaptureSettlement SettlementName Damascus
    and CharacterReligion catholic
    add_events
    event historic damascus_crusaders
    date 0 0
    end_add_events
    terminate_monitor
    end_monitor

    ;/////////Damascus is Muslim\\\\\\\\\\\\\
    monitor_event GeneralCaptureSettlement SettlementName Damascus
    and CharacterReligion islam
    add_events
    event historic damascus_islam
    date 0 0
    end_add_events
    terminate_monitor
    end_monitor

    ;/////////Damascus is not Crusader nor Muslim\\\\\\\\\\\\\
    ;monitor_event GeneralCaptureSettlement SettlementName Damascus
    ; and not CharacterReligion islam
    ; and not CharacterReligion catholic
    ; add_events
    ; event historic damascus_others
    ; date 0 0
    ; end_add_events
    ;terminate_monitor
    ;end_monitor

    ;///////////Damascus is Mongol\\\\\\\\\\\\\
    monitor_event GeneralCaptureSettlement SettlementName Damascus
    and CharacterReligion pagan
    add_events
    event historic damascus_mongols
    date 0 0
    end_add_events
    terminate_monitor
    end_monitor

    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||MONGOL SCRIPTS|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

    monitor_event SackSettlement FactionType mongols
    and IsFactionAIControlled

    add_money mongols 1350

    end_monitor

    monitor_event OccupySettlement FactionType mongols
    and IsFactionAIControlled

    add_money mongols 250

    end_monitor

    monitor_event ExterminatePopulation FactionType mongols
    and IsFactionAIControlled

    add_money mongols 550

    end_monitor


    wait_monitors

    end_script




    what the heck is with this thing??



    ps: the log says nothing, either on * error or on * trace
    Last edited by Swagger; September 01, 2009 at 01:02 PM.
    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  2. #2
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Re: Wierd Problem in Campaign_Script

    oh forgot this, it's fixed somehow...
    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  3. #3
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Wierd Problem in Campaign_Script

    Must have been missing entries in text\historic_events.txt










  4. #4
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Wierd Problem in Campaign_Script

    EDIT: I'm now seeing both, so nevermind on that. Sometimes the script will get funky, just leave it and try something else and it seems to resolve itself.
    Last edited by Augustus Lucifer; September 03, 2009 at 03:11 PM.

  5. #5
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Re: Wierd Problem in Campaign_Script

    this script uses it, and works perfectly:

    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||Historical Time Period Background|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    ;||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

    monitor_event FactionTurnStart not FactionReligion pagan
    and not IsFactionAIControlled
    and I_TurnNumber = 0
    add_events
    event historic game_background
    date 0
    end_add_events
    terminate_monitor
    end_monitor
    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


Posting Permissions

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