Results 1 to 3 of 3

Thread: This Script don't work

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    boboav's Avatar Decanus
    Join Date
    Sep 2009
    Location
    Italy
    Posts
    532

    Default This Script don't work

    declare_counter conquistadores
    set_counter conquistadores 0
    monitor_event SettlementTurnStart FactionType spain
    and I_TurnNumber = 1
    add_events
    event counter conquistadores_accepted
    event counter conquistadores_declined
    date 0
    end_add_events
    end_monitor

    monitor_event SettlementTurnStart FactionType spain
    and I_TurnNumber = 1
    historic_event conquistadores true
    end_monitor

    monitor_conditions I_TurnNumber = 2
    and I_EventCounter conquistadores_accepted = 1
    spawn_army
    faction spain
    character Aluar, named character, age 30, x 249, y 73, family
    traits GoodCommander 2
    unit NE Bodyguard exp 1 armour 0 weapon_lvl 0
    unit Conquistadores exp 1 armour 0 weapon_lvl 0
    unit Conquistadores exp 1 armour 0 weapon_lvl 0
    unit Conquistadores exp 1 armour 0 weapon_lvl 0
    unit Conquistadores exp 1 armour 0 weapon_lvl 0
    unit Conquistadores exp 1 armour 0 weapon_lvl 0
    unit Conquistadores exp 1 armour 0 weapon_lvl 0
    unit Conquistadores exp 1 armour 0 weapon_lvl 0
    unit Conquistadores exp 1 armour 0 weapon_lvl 0
    unit Conquistadores exp 1 armour 0 weapon_lvl 0
    unit Conquistadores exp 1 armour 0 weapon_lvl 0
    unit Conquistadores exp 1 armour 0 weapon_lvl 0
    unit Conquistadores exp 1 armour 0 weapon_lvl 0
    unit Conquistadores exp 1 armour 0 weapon_lvl 0
    unit Conquistadores exp 1 armour 0 weapon_lvl 0
    unit Conquistadores exp 1 armour 0 weapon_lvl 0
    end
    terminate_monitor
    end_monitor


    what is the problem???

  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: This Script don't work

    Moved to Workshop -> Text Editing and Scripting. If you aren't posting a tool, tutorial or resource please don't create threads in the tutorial section.

    You seem to be missing the wait_monitor line, which is required to keep monitoring the monitors until they are all terminated.
    Last edited by Squid; September 30, 2009 at 12:30 PM.
    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

  3. #3
    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: This Script don't work

    Shouldn't those have an underscore?

    add_events
    event counter conquistadores_accepted
    event counter conquistadores_declined
    date 0
    end_add_events










Posting Permissions

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