Bay 12 Games Forum

Dwarf Fortress => DF Modding => Topic started by: Deon on April 28, 2010, 09:05:23 am

Title: How to avoid nobles "disappearance".
Post by: Deon on April 28, 2010, 09:05:23 am
Code: [Select]
[POSITION:MILITIA_COMMANDER]
[NAME:militia commander:militia commanders]
[SITE]
[NUMBER:1]
[SQUAD:10:militia-dwarf:militia-dwarves]
[APPOINTED_BY:EXPEDITION_LEADER]
[APPOINTED_BY:MILITIA_CAPTAIN]
[APPOINTED_BY:MAYOR]
[APPOINTED_BY:SHERIFF]
[APPOINTED_BY:CAPTAIN_OF_THE_GUARD]
[APPOINTED_BY:BROKER]
[APPOINTED_BY:ARSENAL_DWARF]
[APPOINTED_BY:CHIEF_MEDICAL_DWARF]
[RESPONSIBILITY:MILITARY_STRATEGY]
[COMMANDER:MILITIA_CAPTAIN:ALL]
[PRECEDENCE:120]
[DO_NOT_CULL]
SOLDIER_COLOR]
[DUTY_BOUND]
[POSITION:MILITIA_CAPTAIN]
[NAME:militia captain:militia captains]
[SITE]
[NUMBER:AS_NEEDED]
[SQUAD:10:militia-dwarf:militia-dwarves]
[APPOINTED_BY:EXPEDITION_LEADER]
[APPOINTED_BY:MILITIA_COMMANDER]
[APPOINTED_BY:SHERIFF]
[APPOINTED_BY:CAPTAIN_OF_THE_GUARD]
[APPOINTED_BY:MAYOR]
[APPOINTED_BY:BROKER]
[APPOINTED_BY:ARSENAL_DWARF]
[APPOINTED_BY:CHIEF_MEDICAL_DWARF]
[PRECEDENCE:200]
[DO_NOT_CULL]
[DUTY_BOUND]
[MILITARY_SCREEN_ONLY]
[POSITION:SHERIFF]
[NAME:sheriff:sheriffs]
[SITE]
[NUMBER:1]
[RESPONSIBILITY:LAW_ENFORCEMENT]
[APPOINTED_BY:EXPEDITION_LEADER]
[APPOINTED_BY:MILITIA_CAPTAIN]
[APPOINTED_BY:MILITIA_COMMANDER]
[APPOINTED_BY:MAYOR]
[APPOINTED_BY:BROKER]
[APPOINTED_BY:ARSENAL_DWARF]
[APPOINTED_BY:CHIEF_MEDICAL_DWARF]
[REPLACED_BY:CAPTAIN_OF_THE_GUARD]
[PRECEDENCE:130]
[DO_NOT_CULL]
[COLOR:1:0:1]
[ACCOUNT_EXEMPT]
[DUTY_BOUND]
[REQUIRED_BOXES:1]
[REQUIRED_CABINETS:1]
[REQUIRED_RACKS:1]
[REQUIRED_STANDS:1]
[REQUIRED_OFFICE:100]
[REQUIRED_BEDROOM:100]
[REQUIRED_DINING:100]
[POSITION:CAPTAIN_OF_THE_GUARD]
[NAME:captain of the guard:captains of the guard]
[SITE]
[NUMBER:1]
[RESPONSIBILITY:LAW_ENFORCEMENT]
[SQUAD:10:fortress guard:fortress guards]
[APPOINTED_BY:MILITIA_CAPTAIN]
[APPOINTED_BY:MILITIA_COMMANDER]
[APPOINTED_BY:EXPEDITION_LEADER]
[APPOINTED_BY:MAYOR]
[APPOINTED_BY:MANAGER]
[APPOINTED_BY:BROKER]
[APPOINTED_BY:ARSENAL_DWARF]
[APPOINTED_BY:CHIEF_MEDICAL_DWARF]
[REQUIRES_POPULATION:50]
[PRECEDENCE:105]
[DO_NOT_CULL]
[COLOR:1:0:1]
[ACCOUNT_EXEMPT]
[DUTY_BOUND]
[REQUIRED_BOXES:1]
[REQUIRED_CABINETS:1]
[REQUIRED_RACKS:1]
[REQUIRED_STANDS:1]
[REQUIRED_OFFICE:250]
[REQUIRED_BEDROOM:250]
[REQUIRED_DINING:250]
[POSITION:EXPEDITION_LEADER]
[NAME:expedition leader:expedition leaders]
[SITE]
[NUMBER:1]
[APPOINTED_BY:MILITIA_CAPTAIN]
[APPOINTED_BY:MILITIA_COMMANDER]
[APPOINTED_BY:MANAGER]
[APPOINTED_BY:BROKER]
[APPOINTED_BY:ARSENAL_DWARF]
[APPOINTED_BY:CHIEF_MEDICAL_DWARF]
[APPOINTED_BY:SHERIFF]
[APPOINTED_BY:CAPTAIN_OF_THE_GUARD]
[REPLACED_BY:MAYOR]
[RULES_FROM_LOCATION]
[RESPONSIBILITY:MEET_WORKERS]
[RESPONSIBILITY:RECEIVE_DIPLOMATS]
[RESPONSIBILITY:MILITARY_GOALS]
[PRECEDENCE:110]
[DO_NOT_CULL]
[ACCOUNT_EXEMPT]
[DUTY_BOUND]
[POSITION:MAYOR]
[NAME:mayor:mayors]
[SITE]
[NUMBER:1]
[APPOINTED_BY:MILITIA_CAPTAIN]
[APPOINTED_BY:MILITIA_COMMANDER]
[APPOINTED_BY:MANAGER]
[APPOINTED_BY:BROKER]
[APPOINTED_BY:ARSENAL_DWARF]
[APPOINTED_BY:CHIEF_MEDICAL_DWARF]
[APPOINTED_BY:SHERIFF]
[APPOINTED_BY:CAPTAIN_OF_THE_GUARD]
[RESPONSIBILITY:MEET_WORKERS]
[RESPONSIBILITY:RECEIVE_DIPLOMATS]
[RESPONSIBILITY:MILITARY_GOALS]
[REQUIRES_POPULATION:50]
[RULES_FROM_LOCATION]
[ELECTED]
[PRECEDENCE:60]
[FLASHES]
[BRAG_ON_KILL]
[CHAT_WORTHY]
[DO_NOT_CULL]
[KILL_QUEST]
[COLOR:5:0:0]
[ACCOUNT_EXEMPT]
[DUTY_BOUND]
[DEMAND_MAX:2]
[MANDATE_MAX:1]
[REQUIRED_BOXES:2]
[REQUIRED_CABINETS:1]
[REQUIRED_RACKS:1]
[REQUIRED_STANDS:1]
[REQUIRED_OFFICE:500]
[REQUIRED_BEDROOM:500]
[REQUIRED_DINING:500]
[POSITION:MANAGER]
[NAME:manager:managers]
[SITE]
[NUMBER:1]
[APPOINTED_BY:MILITIA_CAPTAIN]
[APPOINTED_BY:MILITIA_COMMANDER]
[APPOINTED_BY:SHERIFF]
[APPOINTED_BY:CAPTAIN_OF_THE_GUARD]
[APPOINTED_BY:EXPEDITION_LEADER]
[APPOINTED_BY:MAYOR]
[APPOINTED_BY:BROKER]
[APPOINTED_BY:ARSENAL_DWARF]
[APPOINTED_BY:CHIEF_MEDICAL_DWARF]
[RESPONSIBILITY:MANAGE_PRODUCTION]
[PRECEDENCE:160]
[DO_NOT_CULL]
[COLOR:5:0:0]
[DUTY_BOUND]
[REQUIRED_OFFICE:1]
[POSITION:CHIEF_MEDICAL_DWARF]
[NAME:chief medical dwarf:chief medical dwarves]
[SITE]
[NUMBER:1]
[RESPONSIBILITY:HEALTH_MANAGEMENT]
[APPOINTED_BY:MILITIA_CAPTAIN]
[APPOINTED_BY:MILITIA_COMMANDER]
[APPOINTED_BY:SHERIFF]
[APPOINTED_BY:CAPTAIN_OF_THE_GUARD]
[APPOINTED_BY:EXPEDITION_LEADER]
[APPOINTED_BY:MAYOR]
[APPOINTED_BY:MANAGER]
[APPOINTED_BY:BROKER]
[PRECEDENCE:165]
[DO_NOT_CULL]
[COLOR:5:0:0]
[DUTY_BOUND]
[POSITION:BROKER]
[NAME:broker:brokers]
[SITE]
[NUMBER:1]
[RESPONSIBILITY:TRADE]
[APPOINTED_BY:MILITIA_CAPTAIN]
[APPOINTED_BY:MILITIA_COMMANDER]
[APPOINTED_BY:SHERIFF]
[APPOINTED_BY:CAPTAIN_OF_THE_GUARD]
[APPOINTED_BY:EXPEDITION_LEADER]
[APPOINTED_BY:MAYOR]
[APPOINTED_BY:MANAGER]
[APPOINTED_BY:ARSENAL_DWARF]
[APPOINTED_BY:CHIEF_MEDICAL_DWARF]
[PRECEDENCE:170]
[DO_NOT_CULL]
[COLOR:5:0:0]
[DUTY_BOUND]
[POSITION:ARSENAL_DWARF]
[NAME:arsenal dwarf:arsenal dwarves]
[SITE]
[NUMBER:1]
[RESPONSIBILITY:UPGRADE_SQUAD_EQUIPMENT]
[RESPONSIBILITY:EQUIPMENT_MANIFESTS]
[RESPONSIBILITY:SORT_AMMUNITION]
[APPOINTED_BY:MILITIA_CAPTAIN]
[APPOINTED_BY:MILITIA_COMMANDER]
[APPOINTED_BY:MANAGER]
[APPOINTED_BY:BROKER]
[APPOINTED_BY:CHIEF_MEDICAL_DWARF]
[APPOINTED_BY:SHERIFF]
[APPOINTED_BY:CAPTAIN_OF_THE_GUARD]
[REQUIRES_POPULATION:20]
[PRECEDENCE:179]
[DO_NOT_CULL]
[COLOR:5:0:0]
[DUTY_BOUND]
[REQUIRED_OFFICE:1]
[POSITION:BOOKKEEPER]
[NAME:bookkeeper:bookkeepers]
[SITE]
[NUMBER:1]
[RESPONSIBILITY:ACCOUNTING]
[APPOINTED_BY:MILITIA_CAPTAIN]
[APPOINTED_BY:MILITIA_COMMANDER]
[APPOINTED_BY:SHERIFF]
[APPOINTED_BY:CAPTAIN_OF_THE_GUARD]
[APPOINTED_BY:EXPEDITION_LEADER]
[APPOINTED_BY:MAYOR]
[APPOINTED_BY:MANAGER]
[APPOINTED_BY:BROKER]
[APPOINTED_BY:ARSENAL_DWARF]
[APPOINTED_BY:CHIEF_MEDICAL_DWARF]
[PRECEDENCE:180]
[DO_NOT_CULL]
[COLOR:5:0:0]
[DUTY_BOUND]
[REQUIRED_OFFICE:1]

It replaces noble positions in entity_default.txt for dwarves.

This way even if your exp. leader dies you can appoint other nobles if you have any other nobles.
Title: Re: How to avoid nobles "disappearance".
Post by: Zangi on April 28, 2010, 09:12:18 am
I see... so if you lose one or several of your appointed nobles, you still have the others to prevent the loss from happening.  Unless you lose them all at once.  Thanks.

How does Mayor work out here?  Still only elected?
Title: Re: How to avoid nobles "disappearance".
Post by: Deon on April 28, 2010, 09:55:00 am
You can appoint him any time, but I think that he will be changed from time to time based on elections.
Title: Re: How to avoid nobles "disappearance".
Post by: Cubittus on April 28, 2010, 11:59:06 am
Nice idea Deon.

I've just looked through the stock positions raws and came up with a logical structure of how positions might be reappointed when they are lost.
I've tried to keep the relationships reasonably realistic.

The first chart shows the standard positions and you can see how the Mayor is a single point of failure.
The second chart shows appointment changes that would give better disaster recovery.

Spoiler (click to show/hide)

Here are the position raws that should implement this: (not tested)
Spoiler (click to show/hide)
Title: Re: How to avoid nobles "disappearance".
Post by: Zaranthan on April 28, 2010, 01:01:17 pm
Sa-WEET! I like the interdependence of the various manager-dorfs. Just gotta remember to appoint a Manager other than the Expedition Leader.
Title: Re: How to avoid nobles "disappearance".
Post by: Lancensis on April 28, 2010, 01:30:24 pm
Upon seeing the thread title, I thought it was a plot to stop people killing off their nobles, and was already thinking of ways to get 'round whatever Deon had planned...
Title: Re: How to avoid nobles "disappearance".
Post by: Deon on April 28, 2010, 01:52:34 pm
Quote
a plot to stop people killing off their nobles

[DEMAND_MAX:0]
[MANDATE_MAX:0]
Title: Re: How to avoid nobles "disappearance".
Post by: Lancensis on April 28, 2010, 03:16:53 pm
Too easy. I was expecting Steel skin, and no thought centre for movement.
Title: Re: How to avoid nobles "disappearance".
Post by: Zaranthan on April 30, 2010, 08:51:18 am
Too easy. I was expecting Steel slade skin, and no thought centre for movement organs.
Title: Re: How to avoid nobles "disappearance".
Post by: Lancensis on April 30, 2010, 09:06:14 am
Still doable. Even if you give them building destroyer
Title: Re: How to avoid nobles "disappearance".
Post by: Deon on April 30, 2010, 09:58:54 am
Also apparently this does not work... Some nobles should be picked by playet/elected otherwise they cannot pick each other because it becomes a closed circle. There's an easier fix: add "elected" to expedition leader, and you shouldn't have much troubles with his death anymore.