Results 1 to 4 of 4

Thread: Whats wrong with this script?

Hybrid View

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

    Default Whats wrong with this script?

    I can't get the event to trigger at all.
    Spoiler Alert, click show to read: 


    declare_counter papal_start
    declare_counter rome_rally
    set_counter papal_start 0
    set_counter rome_rally 0
    ;Pope / Rome / Roman_Province / Power_Centre
    declare_counter Rome_siege
    monitor_conditions not I_SettlementUnderSiege Rome
    set_counter Rome_siege 0
    end_monitor
    monitor_conditions I_SettlementUnderSiege Rome
    and I_CompareCounter Rome_siege = 0
    if I_SettlementOwner Rome = papal_states
    and I_CompareCounter papal_start 0
    create_unit Rome, Papal Guard, num 2, exp 0, arm 1, wep 0
    end_if
    set_counter Rome_siege 1
    set_counter rome_rally 1
    end_monitor
    monitor_conditions I_SettlementUnderSiege Rome
    and I_CompareCounter rome_rally = 1
    add_events historic_event faith_rally
    end_add_events
    end_monitor
    Last edited by Eothese; August 12, 2008 at 11:15 AM.

  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: Whats wrong with this script?

    Empty line after end_monitor?










  3. #3

    Default Re: Whats wrong with this script?

    Problem solved, it was the add_events and end_add_events that caused the problem. I only figured it out by staring at the America Discovered script until I saw the difference.
    Cheers for your continued attention gigantus, you have proved to be a constant and relieable source of useful advice.
    + rep to you good sir!

  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: Whats wrong with this script?

    One is glad to be of service










Posting Permissions

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