Results 1 to 6 of 6

Thread: Help with script

Hybrid View

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

    Default Help with script

    Hi, i need some help. I try to add DLV's garrison script to Portvcale but when I siege a city it doesnt' spawn the soldiers. Anybody could help me? Thanks

  2. #2
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,851
    Blog Entries
    10

    Default Re: Help with script

    Try it like this: or use and with both


    declare_counter Cracow_siege
    monitor_conditions not I_SettlementUnderSiege Cracow
    set_counter Cracow_siege 0
    end_monitor
    monitor_conditions I_SettlementUnderSiege Cracow
    and if I_CompareCounter Cracow_siege = 0
    if and I_SettlementOwner Cracow = poland
    create_unit Cracow, Dismounted Polish Nobles, num 2, exp 0, arm 0, wep 0
    create_unit Cracow, EE Peasant Archers, num 3, exp 0, arm 0, wep 0
    create_unit Cracow, EE Spearmen, num 3, exp 0, arm 0, wep 0
    create_unit Cracow, EE Spear Militia, num 2, exp 0, arm 0, wep 0
    console_command add_money poland, -3000
    end_if
    set_counter Cracow_siege 1
    end_monitor

  3. #3

    Default Re: Help with script

    Thank you very much now it works perfectly

  4. #4
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,851
    Blog Entries
    10

    Default Re: Help with script

    Welcome.

  5. #5

    Default Re: Help with script

    I'm sorry, please let me question.


    I want to have swiss pikemen mercs come trainable when the york is occupied by my faction
    plz plz help me.. how to script it??

  6. #6

    Default Re: Help with script

    Look at the crusades campaign script to see how the unique units are scripted there.

Posting Permissions

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