Results 1 to 2 of 2

Thread: 4° Crusade script help!!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default 4° Crusade script help!!

    hello
    I tried to do an event on the Fourth Crusade ... I have relied on the script bulgarian uprising (I installed SS6.4, 2TPY)
    I have changed, and I would like to know from you if it is correct or there are mistakes (I've never built or modified a script before now)

    monitor_event FactionTurnStart FactionType france
    and I_TurnNumber = 208
    if not I_SettlementOwner Constantinople = byzantium
    spawn_army
    faction france
    character Baldwin, named character, age 34, x 105, y 200, label Baldwin_de_Hainault
    traits GoodCommander 4 , BattleDread 3 , StrategyDread 2 , PublicFaith 1 , NaturalMilitarySkill 2 , ofFranceName 1
    unit EE Bodyguard exp 2 armour 0 weapon_lvl 0
    unit French Feudal Knights exp 2 armour 0 weapon_lvl 0
    unit Light Men at Arms exp 2 armour 0 weapon_lvl 0
    unit Light Men at Arms exp 2 armour 0 weapon_lvl 0
    unit Armored Sergeants exp 2 armour 0 weapon_lvl 0
    unit Armored Sergeants exp 2 armour 0 weapon_lvl 0
    unit Crusader Sergeants exp 2 armour 0 weapon_lvl 0
    unit Crusader Sergeants exp 2 armour 0 weapon_lvl 0
    unit Dismounted Crusader Knights exp 2 armour 0 weapon_lvl 0
    unit Crossbow Militia exp 2 armour 0 weapon_lvl 0
    unit Crossbow Militia exp 2 armour 0 weapon_lvl 0
    unit Crossbow Militia exp 2 armour 0 weapon_lvl 0
    unit Dismounted Crusader Knights exp 2 armour 0 weapon_lvl 0
    unit Dismounted Crusader Knights exp 2 armour 0 weapon_lvl 0
    unit Crusader Knights exp 2 armour 0 weapon_lvl 0
    unit Crusader Knights exp 2 armour 0 weapon_lvl 0
    end
    set_event_counter Crusade_against_
    Christians 1
    add_money france 10000
    end_if
    if not I_SettlementOwner Thessalonica = byzantium
    spawn_army
    faction france
    character Louis, named character, age 30, x 242, y 136, label Louis_de_Blois
    traits GoodCommander 2 , BattleChivalry 3 , StrategyChivalry 2 , PublicFaith 1 , NaturalMilitarySkill 1
    unit EE Bodyguard exp 2 armour 0 weapon_lvl 0
    unit French Feudal Knights exp 2 armour 0 weapon_lvl 0
    unit Light Men at Arms exp 2 armour 0 weapon_lvl 0
    unit Light Men at Arms exp 2 armour 0 weapon_lvl 0
    unit Armored Sergeants exp 2 armour 0 weapon_lvl 0
    unit Armored Sergeants exp 2 armour 0 weapon_lvl 0
    unit Crusader Sergeants exp 2 armour 0 weapon_lvl 0
    unit Crusader Sergeants exp 2 armour 0 weapon_lvl 0
    unit Dismounted Crusader Knights exp 2 armour 0 weapon_lvl 0
    unit Crossbow Militia exp 2 armour 0 weapon_lvl 0
    unit Crossbow Militia exp 2 armour 0 weapon_lvl 0
    unit Crossbow Militia exp 2 armour 0 weapon_lvl 0
    unit Dismounted Crusader Knights exp 2 armour 0 weapon_lvl 0
    unit Dismounted Crusader Knights exp 2 armour 0 weapon_lvl 0
    unit Crusader Knights exp 2 armour 0 weapon_lvl 0
    unit Crusader Knights exp 2 armour 0 weapon_lvl 0
    end
    set_event_counter Crusade_against_
    Christians 1
    add_money france 10000
    end_if
    if not I_SettlementOwner Adrianople = byzantium
    spawn_army
    faction france
    character Henri, named character, age 30, x 267, y 147, label Henri_de_Flandre
    traits GoodCommander 2 , Bloodthirsty 2 , BattleDread 3
    unit EE Bodyguard exp 2 armour 0 weapon_lvl 0
    unit French Feudal Knights exp 2 armour 0 weapon_lvl 0
    unit Light Men at Arms exp 2 armour 0 weapon_lvl 0
    unit Light Men at Arms exp 2 armour 0 weapon_lvl 0
    unit Armored Sergeants exp 2 armour 0 weapon_lvl 0
    unit Armored Sergeants exp 2 armour 0 weapon_lvl 0
    unit Crusader Sergeants exp 2 armour 0 weapon_lvl 0
    unit Crusader Sergeants exp 2 armour 0 weapon_lvl 0
    unit Dismounted Crusader Knights exp 2 armour 0 weapon_lvl 0
    unit Crossbow Militia exp 2 armour 0 weapon_lvl 0
    unit Crossbow Militia exp 2 armour 0 weapon_lvl 0
    unit Crossbow Militia exp 2 armour 0 weapon_lvl 0
    unit Dismounted Crusader Knights exp 2 armour 0 weapon_lvl 0
    unit Dismounted Crusader Knights exp 2 armour 0 weapon_lvl 0
    unit Crusader Knights exp 2 armour 0 weapon_lvl 0
    unit Crusader Knights exp 2 armour 0 weapon_lvl 0
    end
    set_event_counter Crusade_against_
    Christians 1
    add_money france 10000
    end_if
    if I_EventCounter Crusade_against_
    Christians = 1
    historic_event Crusade_against_
    Christians
    end_if
    terminate_monitor
    end_monitor
     
    monitor_event FactionTurnStart FactionType france
    and IsFactionAIControlled
    and I_CharacterExists Baldwin_de_Hainault
    if I_SettlementOwner Constantinople = byzantium
    terminate_monitor
    end_if
    if I_SettlementUnderSiege Constantinople
    and I_TurnNumber = 100 ;if settlement under siege already, avoid ctd.
    terminate_monitor
    end_if
    if not I_CharacterTypeNearTile france, named_character, 0, 105, 200 ;if character not standing where it should, avoid ctd
    terminate_monitor
    end_if
    if I_TurnNumber = 102
    siege_settlement Baldwin_de_Hainaut, Constantinople, attack
    terminate_monitor
    end_if
    if I_TurnNumber = 100
    siege_settlement Baldwin_de_Hainaut, Constantinople, maintain
    end_if
    end_monitor
    monitor_event FactionTurnStart FactionType france
    and IsFactionAIControlled
    and I_CharacterExists Louis_de_Blois
    if I_SettlementOwner Thessalonica = byzantium
    terminate_monitor
    end_if
    if I_SettlementUnderSiege Thessalonica
    and I_TurnNumber = 100 ;if settlement under siege already, avoid ctd.
    terminate_monitor
    end_if
    if not I_CharacterTypeNearTile france, named_character, 0, 242, 136 ;if character not standing where it should, avoid ctd
    terminate_monitor
    end_if
    if I_TurnNumber = 102
    siege_settlement Louis_de_Blois, Thessalonica, attack
    terminate_monitor
    end_if
    if I_TurnNumber = 100
    siege_settlement Louis_de_Blois, Thessalonica, maintain
    end_if
    end_monitor
    monitor_event FactionTurnStart FactionType france
    and IsFactionAIControlled
    and I_CharacterExists Henri_de_Flandre
    if I_SettlementOwner Adrianople = byzantium
    terminate_monitor
    end_if
    if I_SettlementUnderSiege Adrianople
    and I_TurnNumber = 100 ;if settlement under siege already, avoid ctd.
    terminate_monitor
    end_if
    if not I_CharacterTypeNearTile france, named_character, 0, 267, 147 ;if character not standing where it should, avoid ctd
    terminate_monitor
    end_if
    if I_TurnNumber = 102
    siege_settlement Henri_de_Flandre, Adrianople, attack
    terminate_monitor
    end_if
    if I_TurnNumber = 100
    siege_settlement Henri_de_Flandre, Adrianople, maintain
    end_if
    end_monitor

  2. #2
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: 4° Crusade script help!!

    As we really don't know what you're trying to do its hard to say. The easiest way to test is to put it into the script and run the game and see what happens. You can check your log to see if any errors with the stuff you added appear.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

Posting Permissions

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