Results 1 to 4 of 4

Thread: How do I get events to fire on rebel turn?

Hybrid View

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

    Default How do I get events to fire on rebel turn?

    I have several factions set to spawn on different events. EG.
    Spoiler Alert, click show to read: 

    monitor_event GeneralCaptureSettlement SettlementName Antioch
    add_events
    event emergent_faction antioch
    date 0
    region Antioch_Province
    end_add_events
    spawn_army
    faction antioch
    character Bohemond, named character, age 35, x 451, y 71, family, portrait bohemond,
    traits GoodCommander 2 , NaturalMilitarySkill 1 , GoodDefender 1 , Intelligent 2 , ReligionStarter 1 , CrusaderHistory 3 , Fertile 1
    unit NE Bodyguard exp 4 armour 0 weapon_lvl 0
    unit Frankish Swordsmen exp 0 armour 1 weapon_lvl 0
    unit Frankish Swordsmen exp 0 armour 1 weapon_lvl 0
    unit Knights Hospitaller exp 0 armour 1 weapon_lvl 0
    unit NE Catapult exp 0 armour 0 weapon_lvl 0
    unit NE Catapult exp 0 armour 0 weapon_lvl 0
    unit NE Trebuchet exp 0 armour 0 weapon_lvl 0
    unit Hospitaller Sergeant exp 0 armour 1 weapon_lvl 0
    unit Hospitaller Sergeant exp 0 armour 1 weapon_lvl 0
    unit Hospitaller Sergeant exp 0 armour 1 weapon_lvl 0
    unit Hospitaller Sergeant exp 0 armour 1 weapon_lvl 0
    unit Knights of Edessa exp 0 armour 1 weapon_lvl 0
    unit Dismounted Knights of Antioch exp 0 armour 1 weapon_lvl 0
    unit Dismounted Knights of Antioch exp 0 armour 1 weapon_lvl 0
    unit Knights of Antioch exp 0 armour 1 weapon_lvl 0
    unit Hospitaller Crossbowmen exp 0 armour 1 weapon_lvl 0
    unit Hospitaller Crossbowmen exp 0 armour 1 weapon_lvl 0
    end
    terminate_monitor
    end_monitor

    Spoiler Alert, click show to read: 

    monitor_event CrusadeCalled TrueCondition
    add_events
    event emergent_faction teutonic_order
    date 0
    region Vilnius_Province
    end_add_events
    spawn_army
    faction teutonic_order
    character Gunther von Schwarzenburg, named character, age 36, x 386, y 152, family, portrait gunther,
    traits GoodCommander 2 , PublicFaith 1 , BattleChivalry 4 , ReligionStarter 1
    unit TO Bodyguard exp 3 armour 0 weapon_lvl 0
    unit Order Spearmen exp 1 armour 1 weapon_lvl 0
    unit Order Spearmen exp 1 armour 1 weapon_lvl 0
    unit Order Spearmen exp 1 armour 1 weapon_lvl 0
    unit Clergymen exp 1 armour 1 weapon_lvl 0
    unit Christ Knights exp 1 armour 0 weapon_lvl 0
    unit Ritterbruder exp 1 armour 0 weapon_lvl 0
    unit Halbbruder exp 1 armour 0 weapon_lvl 0
    unit Halbbruder exp 1 armour 0 weapon_lvl 0
    unit Dismounted Halbbruder exp 1 armour 0 weapon_lvl 0
    unit Dismounted Halbbruder exp 1 armour 0 weapon_lvl 0
    unit Dismounted Ritterbruder exp 1 armour 0 weapon_lvl 0
    unit Prussian Archers exp 0 armour 1 weapon_lvl 0
    unit Prussian Archers exp 0 armour 1 weapon_lvl 0
    unit Flagellants exp 1 armour 1 weapon_lvl 0
    unit Flagellants exp 1 armour 1 weapon_lvl 0
    end
    console_command diplomatic_stance teutonic_order papal_states allied
    console_command diplomatic_stance teutonic_order lithuania war
    terminate_monitor
    end_monitor

    These 'simple' scripts have taken me a great deal of work, with a lot of advice needed. Although I am quite happy with the way they work, I would feel much better about them if the factions emerged during the slave faction turn, rather than at the begining of the players turn. Any help welcome.

  2. #2
    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: How do I get events to fire on rebel turn?

    What would be the purpose of that?










  3. #3

    Default Re: How do I get events to fire on rebel turn?

    Quote Originally Posted by gigantus View Post
    What would be the purpose of that?
    The purpose would be to allow me to further add to the script, allowing me to tell the spawned army to attack the settlement. I'd rather this happened during the slave turn than at the begining of the players.

  4. #4
    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: How do I get events to fire on rebel turn?

    Not sure if it is possible. The script might be executed at the beginning of the players turn, not at the end. Alpaca might be able to tell you more.










Posting Permissions

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