Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How to change when sieges occur.  (Read 1552 times)

TheLotusKing

  • Escaped Lunatic
  • Likes lotus's for their three mana
    • View Profile
How to change when sieges occur.
« on: December 03, 2021, 06:49:15 pm »

I'm trying to find out how much of a population you need to cause sieges to occur, and how to change that number, but can't find it in the raws, and I couldn't see it on the wiki (I might just be blind in both cases.) Does anyone know how to find this?
Logged

vjek

  • Bay Watcher
  • If it didn't work, change the world so it does.
    • View Profile
Re: How to change when sieges occur.
« Reply #1 on: December 03, 2021, 08:07:00 pm »

This is what has worked for me. YMMV.

In the save game folder (let's say it's region1), open this file with your favorite text editor:
region1/raw/objects/entity_default.txt

In that file, change these lines under the [ENTITY:EVIL] heading from:

   [PROGRESS_TRIGGER_POPULATION:2]
   [PROGRESS_TRIGGER_PRODUCTION:2]
   [PROGRESS_TRIGGER_TRADE:2]
   [PROGRESS_TRIGGER_POP_SIEGE:3]
   [PROGRESS_TRIGGER_PROD_SIEGE:0]
   [PROGRESS_TRIGGER_TRADE_SIEGE:0]


to, for example:

   [PROGRESS_TRIGGER_POPULATION:0]
   [PROGRESS_TRIGGER_PRODUCTION:1]
   [PROGRESS_TRIGGER_TRADE:0]
   [PROGRESS_TRIGGER_POP_SIEGE:0]
   [PROGRESS_TRIGGER_PROD_SIEGE:1]
   [PROGRESS_TRIGGER_TRADE_SIEGE:0]

To have goblin sieges show up once your created wealth exceeds 5000.

This is enumerated in the wiki here.
You can certainly use the other triggers, but for me, creating 5000 wealth is extremely easy, and so makes ensuring the trigger is met also very easy.
You cannot specify a particular population value, but as per the wiki, there are specific thresholds you can use. 
20 is the minimum, but, not all forts get 20 dwarves, so.. that's why I use created wealth.

If you change this value in the default raws instead of the saved game folder raws, all subsequent worlds will inherit this value.
« Last Edit: December 03, 2021, 08:18:46 pm by vjek »
Logged

TheLotusKing

  • Escaped Lunatic
  • Likes lotus's for their three mana
    • View Profile
Re: How to change when sieges occur.
« Reply #2 on: December 03, 2021, 08:50:12 pm »

Thank you!
Logged

Mobbstar

  • Bay Watcher
  • aka Mossbird
    • View Profile
    • my website
Re: How to change when sieges occur.
« Reply #3 on: December 04, 2021, 04:35:17 am »

If you change this value in the default raws instead of the saved game folder raws, all subsequent worlds will inherit this value.

Just to clarify, most changes to entity_default.lua do not work in saved games and require you to change the default raws and create a new world.  This particular case is an exception to the rule, it seems.