Results 1 to 4 of 4

Thread: Population script

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    StaefanBatory's Avatar Civis
    Join Date
    Feb 2009
    Location
    Cracow, Poland
    Posts
    187

    Default Population script

    Hi,
    I need script about reduce population in AI cities or castles.

    I made a simple script:

    Code:
        monitor_event FactionTurnStart FactionIsLocal
        and IsSettlementAIControlled Cracow
        and I_TurnNumber = 0
    console_command add_population Cracow -2000
        end_monitor
    I try write a condition and IsSettlementAIControlled Cracow, but it isn't work. I need this script only for AI, not for player.

    Any sugestions ?

  2. #2

    Default Re: Population script

    Did you make that condition up?
    Try;
    Code:
    and not SettlementIsLocal Cracow

  3. #3
    StaefanBatory's Avatar Civis
    Join Date
    Feb 2009
    Location
    Cracow, Poland
    Posts
    187

    Default Re: Population script

    Thanks, but I solved this using very, very much scripts
    14.000 lines in campaign_script but it works

  4. #4
    Germanicu5's Avatar Will buy spare time...
    Join Date
    Feb 2009
    Location
    Not Zee Germany
    Posts
    2,101

    Default Re: Population script

    It should take exactly 800 lines - one monitor, terminates after execution - provided that you assign right factions to settlements.

    monitor_event FactionTurnStart FactionIsLocal

    if I_SettlementOwner Cracow = Poland
    and ! I_LocalFaction Poland
    console_command add_population Cracow -2000
    end_if
    if I_SettlementOwner XXX = YYY
    and ! I_LocalFaction YYY
    console_command add_population XXX -2000
    end_if
    terminate_monitor
    end_monitor

    or

    monitor_event SettlementTurnStart SettlementName Cracow
    and ! SettlementIsLocal

    console_command add_population Cracow -2000

    terminate_monitor
    end_monitor

    Regards
    Last edited by Germanicu5; April 18, 2011 at 07:46 PM.
    I have no memory of this place.

Posting Permissions

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