Results 1 to 7 of 7

Thread: campaign_script

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    diadok's Avatar Senator
    Join Date
    Nov 2006
    Location
    Paris
    Posts
    1,138

    Icon5 campaign_script

    missing something in campaign_script 1.05 ?

    spawn_army
    faction portugal
    character Aibars, named character, age 30, x 50, y 211, family
    traits GoodCommander 4 , Intelligent 2 , ReligionStarter 1 , BattleChivalry 3 , trategyChivalry 3, Loyal 3
    unit kypchak medium lancers exp 6 armour 0 weapon_lvl 1
    unit kypchak medium lancers exp 6 armour 0 weapon_lvl 1
    etc...


    this should be:

    spawn_army
    faction portugal
    character Aibars, named character, age 30, x 50, y 211, family
    traits GoodCommander 4 , Intelligent 2 , ReligionStarter 1 , BattleChivalry 3 , trategyChivalry 3, Loyal 3
    unit bodyguard kypchaks exp 7 armour 0 weapon 1
    unit kypchak medium lancers exp 6 armour 0 weapon_lvl 1
    unit kypchak medium lancers exp 6 armour 0 weapon_lvl 1


    there' s the same problem at the end, in "MAMLUK RISING", for the ayubids armies.

  2. #2
    Taneda Santôka's Avatar Artifex
    Join Date
    Jul 2006
    Location
    Begging around.
    Posts
    1,226

    Default Re: campaign_script

    On a similar note, I've never seen any garrison script in action, is it out or am I missing something?

  3. #3
    Achilla's Avatar Vicarius
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    2,577

    Default Re: campaign_script

    I haven't seen too, and one user proved garrison scripts to not work ... or at least perceived them as not-working. Anyway, like said, haven't seen any in action yet. If AI could place their troops in settlement instead of popping it outside ... yet, how to make AI do that? For a second I thought that free upkeep slots make AI garrison more troops in settlements along with decreased happiness bonus from garrisoning settlements and without happiness bonus of H and VH difficulties.
    Man is but a shadow of his former self, encased in feverish delusions of grandeur.
    Ignorance is your shield, knowledge is your weapon.
    Heart without reason is stupid, reason without heart is blind.


  4. #4
    CtrlAltDe1337's Avatar Praepositus
    Join Date
    Dec 2006
    Location
    Tennessee
    Posts
    5,424

    Default Re: campaign_script

    I've ad them work on Cairo.


  5. #5
    diadok's Avatar Senator
    Join Date
    Nov 2006
    Location
    Paris
    Posts
    1,138

    Default Re: campaign_script

    ;;;; QAHIRA
    monitor_event SettlementTurnStart SettlementName Qahira
    and I_SettlementUnderSiege Qahira
    and PercentageOfPopulationInGarrison < 20
    and not SettlementIsLocal
    if I_SettlementOwner Qahira = egypt
    create_unit Qahira, ayyubid ajnad spearmen, num 5, exp 4, arm 0, wep 0
    create_unit Qahira, levy me light archers, num 2, exp 0, arm 0, wep 0
    create_unit Qahira, ayyubid ajnad spearmen, num 5, exp 4, arm 0, wep 0
    end_if
    end_monitor

    we can see there is just 2 conditions: "< 20 units" and "owner = egypt".
    when i attack qahira or damas, no one of this troops appears :hmmm:

  6. #6
    Indefinitely Banned
    Join Date
    Jun 2006
    Location
    Calgary, Canada
    Posts
    13,967

    Default Re: campaign_script

    I've seen garrison scripts working fine.

  7. #7
    diadok's Avatar Senator
    Join Date
    Nov 2006
    Location
    Paris
    Posts
    1,138

    Default Re: campaign_script

    okaaaayyy, i understand, troops appears AFTER the turn of besieging is over.
    we didn' t see this very subtle way of 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
  •