Results 1 to 7 of 7

Thread: need help with depopulation script

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: need help with depopulation script

    Try this syntax:
    Code:
    declare_counter break_counter
    monitor_event SettlementTurnStart Carthago
    and SettlementPopulationMaxedOut
    and I_CompareCounter break_counter = 0
    console_command add_population Carthago -7000
    set_counter break_counter 1
    end_monitor
    
    while TrueCondition
    if I_CompareCounter break_counter = 1
    set_counter break_counter 0
    end_if
    end_while
    Edit: As an afterthought it probably won't work very well. Could you test if it only executes once each time you press end turn when you provide no condition for the monitor?
    Last edited by alpaca; 06-20-2006 at 17:55.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO