v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Advanced Entity Position Mechanics"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (Entity category)
 
(19 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
{{Quality|Fine}}
 
{{Quality|Fine}}
 
{{Modding}}
 
{{Modding}}
{{stub}}
 
  
 
= Introduction =  
 
= Introduction =  
Line 7: Line 6:
 
[http://www.bay12forums.com/smf/index.php?topic=182239.0 Discussion thread on the forum]
 
[http://www.bay12forums.com/smf/index.php?topic=182239.0 Discussion thread on the forum]
  
This article is the result of an investigation into the mechanisms involved in entity positions. It can be useful for modders or advanced players to understand how this part of Dwarf Fortress works.
+
This article is the result of an investigation into the mechanisms involved in entity positions. It can be useful for modders or advanced players to understand how this part of ''Dwarf Fortress'' works.
  
 
==What is an entity?==
 
==What is an entity?==
Line 18: Line 17:
 
There are two basic types of positions that are customizable: '''civ(ilization)''' level and '''site level'''. Positions with the tag [SITE] are at site level, positions without the tag [SITE] are at 'civ level'. These two types of nobles can be considered '''loosely related systems'''. There are a few places where they can interact with each other.
 
There are two basic types of positions that are customizable: '''civ(ilization)''' level and '''site level'''. Positions with the tag [SITE] are at site level, positions without the tag [SITE] are at 'civ level'. These two types of nobles can be considered '''loosely related systems'''. There are a few places where they can interact with each other.
  
Citizen-level positions are in charge of the civilization as a whole, managing national trade, laws, and wars. These are, for example, the vanilla [[monarch]], [[princes]], [[diplomat]] and [[general]].
+
Civ-level positions are in charge of the civilization as a whole, managing national trade, laws, and wars. These are, for example, the vanilla [[monarch]], [[princes]], [[diplomat]] and [[general]].
  
 
'''LAND_HOLDERS''' nobles are also positions at civ-level. These units are members of the national government, but have gained hold over some land or site. Once they do, they move to that place, but their position is still regarded as a civ-level position.
 
'''LAND_HOLDERS''' nobles are also positions at civ-level. These units are members of the national government, but have gained hold over some land or site. Once they do, they move to that place, but their position is still regarded as a civ-level position.
Line 24: Line 23:
 
Site-level position holders are members of a site government (subsidiary to the civilization), and manage local affairs in that location. These are, for example, the [[mayor]], the [[sheriff]] and the [[broker]].
 
Site-level position holders are members of a site government (subsidiary to the civilization), and manage local affairs in that location. These are, for example, the [[mayor]], the [[sheriff]] and the [[broker]].
 
==Table of interaction between different position-levels==
 
==Table of interaction between different position-levels==
In this table, the possible interactions between different position levels are summerized.  
+
In this table, the possible interactions between different position levels are summarized.  
 
The header row shows the positions defining the tokens.
 
The header row shows the positions defining the tokens.
  
The left colllumn shows the position type that is referred.
+
The left column shows the position type that is referred.
 
Example:   
 
Example:   
 
{| {{prettytable}}
 
{| {{prettytable}}
Line 41: Line 40:
 
* <span style="color:blue">Possible in mods</span></br>
 
* <span style="color:blue">Possible in mods</span></br>
 
* <span style="color:red">Not possible</span></br>
 
* <span style="color:red">Not possible</span></br>
* <span style="color:orange">possible to some extend.</span></br>
+
* <span style="color:orange">possible to some extent.</span></br>
 
* <span style="color:gray">not yet fully investigated.</span></br>
 
* <span style="color:gray">not yet fully investigated.</span></br>
 
{| {{prettytable}}
 
{| {{prettytable}}
Line 94: Line 93:
 
Nobles from your civilization can come to live at your fortress. This happens in vanilla with landholders such as [[Baron]], [[Count]] and [[Duke]], with the Monarch, but sometimes also with non-landed LAND_HOLDERS.
 
Nobles from your civilization can come to live at your fortress. This happens in vanilla with landholders such as [[Baron]], [[Count]] and [[Duke]], with the Monarch, but sometimes also with non-landed LAND_HOLDERS.
  
When a civ-level noble becomes a citizen at your location, his position is shown among the site-level positions in your [[nobles screen]]. They appears to function as a site-level noble. They may have demands, mandates, squads and the like. They can appoint nobles at the site-level.
+
When a civ-level noble becomes a citizen at your location, their position is shown among the site-level positions in your [[nobles screen]]. They appear to function as a site-level noble. They may have demands, mandates, squads and the like. They can appoint nobles at the site-level.
  
 
If they have certain RESPONSIBILITY's, they do the tasks that go with them.
 
If they have certain RESPONSIBILITY's, they do the tasks that go with them.
  
 
=General=
 
=General=
==Fortress-mode, world-gen and their differences==
+
==Fortress mode, world-gen and their differences==
 
Their are a few differences in how positions function, between fortress-mode (normal play-mode) and the world generation (world-gen).  
 
Their are a few differences in how positions function, between fortress-mode (normal play-mode) and the world generation (world-gen).  
  
In '''fortress-mode''', the player has some control over the appointment of nobles, limited by elections, automatic filled-in positions and succession rules. Pre-fortress mode, which is refered to as '''world-gen''', the game will always attempt to assign nobles whenever possible. It is subjected to the same rules as in fortress-mode, but there are some exceptions. In '''World Automation''', which is the thing that happens in the world while you play fortress mode, it seems as if the same rules are applied as fortress mode.  
+
In '''fortress mode''', the player has some control over the appointment of nobles, limited by elections, automatic filled-in positions and succession rules. Pre-fortress mode, which is referred to as '''world-gen''', the game will always attempt to assign nobles whenever possible. It is subjected to the same rules as in fortress-mode, but there are some exceptions. In '''World Automation''', which is the thing that happens in the world while you play fortress mode, it seems as if the same rules are applied as fortress mode.  
  
A difference between Player-fortress-mode and world-gen, is causes by visibility (see below). Positions that are not visible by the player and thus not available for assignment, will be available in world-gen and will thus be automatically assigned.
+
A difference between player-fortress-mode and world-gen, is causes by visibility (see below). Positions that are not visible by the player and thus not available for assignment, will be available in world-gen and will thus be automatically assigned.
  
 
In fortress mode, a position that is both ELECTED and APPOINTED_BY, cannot be appointed by the player and is also not elected, and can thus not be filled. But in world-gen sites however, these positions are automatically filled.
 
In fortress mode, a position that is both ELECTED and APPOINTED_BY, cannot be appointed by the player and is also not elected, and can thus not be filled. But in world-gen sites however, these positions are automatically filled.
Line 110: Line 109:
 
Positions with AS_NEEDED are almost never created and filled in world-gen (depending on its RESPONSIBILITY's), but can always be used in player mode.
 
Positions with AS_NEEDED are almost never created and filled in world-gen (depending on its RESPONSIBILITY's), but can always be used in player mode.
  
A positions can in fortress mode be filled by the same unit. A unit can gain multiple positions in fortess-mode, for example because of [[elections]]. This will not happen in world-gen mode: a unit can only have one position. See also remarks on 'embark' and 'Loosing a position'.
+
A position can, in fortress mode, be filled by the same unit. A unit can gain multiple positions in fortress-mode, for example because of [[elections]]. This will not happen in world-gen mode: a unit can only have one position. See also remarks on 'embark' and 'Losing a position'.
  
 
In world-gen, SUCCESSION between civ-levels en SITE-levels may happen. This will not happen in fortress-mode, or even off-site in World Automation.
 
In world-gen, SUCCESSION between civ-levels en SITE-levels may happen. This will not happen in fortress-mode, or even off-site in World Automation.
Line 119: Line 118:
 
A unit can hold multiple positions in its civilisation OR site-entity, however this does not happen in world-gen. Only at player-managed sites units can be holding multiple positions at once. (It is probably not possible for a unit to hold a position in two different civilisations or two different sites. )
 
A unit can hold multiple positions in its civilisation OR site-entity, however this does not happen in world-gen. Only at player-managed sites units can be holding multiple positions at once. (It is probably not possible for a unit to hold a position in two different civilisations or two different sites. )
  
In world-gen, if there are to many positions to be filled, they simply stay empty until more units are available.  
+
In world-gen, if there are too many positions to be filled, they simply stay empty until more units are available.  
  
In world-gen, a unit at a site might inherrit a civ-level position and still remains a member of the local goverment. When this happens however, they move to the capital.
+
In world-gen, a unit at a site might inherit a civ-level position and still remains a member of the local government. When this happens however, they move to the capital.
  
In world-gen, if a unit gains a new position, either inherrited or otherwise, it drops the previous one. If a unit assumes a civ-position in fortress mode, it leaves the current position.  
+
In world-gen, if a unit gains a new position, either inherited or otherwise, it drops the previous one. If a unit assumes a civ-position in fortress mode, it leaves the current position.  
  
 
If a unit holds the same (site-)position multiple times, it has no additional effect.
 
If a unit holds the same (site-)position multiple times, it has no additional effect.
  
If a unit holdes multiple different positions of the same entity, he has all those positions responsibilities and properties stacked up. It is presumable that the demands for those combined positions are determined by the highest.
+
If a unit holds multiple different positions of the same entity, he has all those positions responsibilities and properties stacked up. It is presumable that the demands for those combined positions are determined by the highest.
 
   
 
   
 
A unit holding a position with a succession-token CAN be assigned another position with a (different) succession-token.  
 
A unit holding a position with a succession-token CAN be assigned another position with a (different) succession-token.  
Line 133: Line 132:
 
A unit holding a position with a squad-position cannot hold another squad-position. It is dropped from the first, when it gets its second assigned.  
 
A unit holding a position with a squad-position cannot hold another squad-position. It is dropped from the first, when it gets its second assigned.  
 
A unit holding a position with a succession-token cannot be assigned to a squad-position. The unit is simply not available. It works the other way around, though.
 
A unit holding a position with a succession-token cannot be assigned to a squad-position. The unit is simply not available. It works the other way around, though.
 +
 
=RESPONSIBILITY=
 
=RESPONSIBILITY=
If a civ-noble having certain responsibilites arrives at a site and start to live there, it will perform the tasks coming with that responsibility. This means that a civ-manager wil do managing, while he's a citizen of your fortress.
+
If a civ noble having certain responsibilities arrives at a site and start to live there, it will perform the tasks coming with that responsibility. This means that a civ manager will do management while he's a citizen of your fortress.
  
 
The only AS_NEEDED-position that is created in world-gen is that of the responsibility DELIVERS_MESSAGES, of a site level.
 
The only AS_NEEDED-position that is created in world-gen is that of the responsibility DELIVERS_MESSAGES, of a site level.
Line 148: Line 148:
 
Warning: Do not mistake "availability" for "visibility"!  
 
Warning: Do not mistake "availability" for "visibility"!  
  
Of all the possible positions existing in your sites entity, there may only some available.  
+
Of all the possible positions existing in your site's entity, there may only be some available.  
 
* Positions with [REQUIRES_POPULATION] require the population to have a specific size.
 
* Positions with [REQUIRES_POPULATION] require the population to have a specific size.
 
* Positions with [REQUIRES_MARKET] will only appear in "large" sites (which may have different rules for different site types). This tag has no effect in fort mode.
 
* Positions with [REQUIRES_MARKET] will only appear in "large" sites (which may have different rules for different site types). This tag has no effect in fort mode.
Line 154: Line 154:
 
 
 
Only the replaced positions are culled and are no longer available.  
 
Only the replaced positions are culled and are no longer available.  
A position that requires a certain population will become available, even if it doesnt have [APPOINTED_BY] or [ELECTED]. In that case, see 'automatic assignment' and 'assumption'
+
A position that requires a certain population will become available, even if it doesn't have [APPOINTED_BY] or [ELECTED]. In that case, see 'automatic assignment' and 'assumption'
  
In fortress-mode, in some cases 'succession' is evaluated immidiatly after a position becomes available. See: Succession.
+
In fortress-mode, in some cases 'succession' is evaluated immediately after a position becomes available. See: Succession.
 
==Visibility of positions==
 
==Visibility of positions==
 
A position might be available, but can still be invisible for the player in the [[nobles screen]]. The positions with their respective holders are visible for players:
 
A position might be available, but can still be invisible for the player in the [[nobles screen]]. The positions with their respective holders are visible for players:
 
* All site-positions that are already filled-in (even if they could not be re-filled-in considering current conditions)
 
* All site-positions that are already filled-in (even if they could not be re-filled-in considering current conditions)
* Site-positions that are apointable by a filled-in site position
+
* Site-positions that are appointable by a filled-in site position
 
* Civ-positions of units that are also a citizen of your fortress.
 
* Civ-positions of units that are also a citizen of your fortress.
 
If a position becomes available, for example because a certain pop number has reached or if it is available from the start(like expedition leader), als long as it cannot be appointed, it still is INVISIBLE for the player.  
 
If a position becomes available, for example because a certain pop number has reached or if it is available from the start(like expedition leader), als long as it cannot be appointed, it still is INVISIBLE for the player.  
  
It might strike as odd, may a position becomes filled automaticly in fortress mode, when that position is not even visible. This might be the case if the current holder of a non-appoinable position dies or succeeds another position. Regardless of player-visibility, these positions will be automaticly filled in if the nescesary requisitions are met. It might happen with the expedition-leader.
+
It might strike someone as odd, if a position becomes filled automatically in fortress mode, when that position is not even visible. This might be the case if the current holder of a non-appointable position dies or succeeds another position. Regardless of player-visibility, these positions will be automatically filled in if the necessary requisitions are met. It might happen with the expedition-leader.
  
A situation with a non-visible but available position, is for example when a position is solely appointed by the expedion leader, when the expedion leader's position is left vacant. It can no longer be appointed by the player and is invisible. Then, it gets automatically assumed, proving that the position still was available.  
+
A situation with a non-visible but available position, is for example when a position is solely appointed by the expedition leader, when the expedition leader's position is left vacant. It can no longer be appointed by the player and is invisible. Then, it gets automatically assumed, proving that the position still was available.  
  
 
=NUMBER=
 
=NUMBER=
Line 172: Line 172:
  
 
If the ruling position (with PRECEDENCE of 1) has a NUMBER higher than 1, a random unit of the ones holding these positions is shown as 'head of state' in the embark screen.
 
If the ruling position (with PRECEDENCE of 1) has a NUMBER higher than 1, a random unit of the ones holding these positions is shown as 'head of state' in the embark screen.
==Automatic spreadin of assumed, non-singular positions==
+
==Automatic spreading of assumed, non-singular positions==
If there are civ-positions that have a NUMBER higher then '1' and which are assumed (not APPOINTED_BY or ELECTED) but are '''not DUTY_BOUND''', these are automatically spread among the civilisation, based on population. If there are a number of '''20''' available slots of that position, they spread among a cilivation with a combined population of, for example, 1000 of which your fortress has 100 (10%), '''2''' of your fortress' citizens will assume that position.  
+
If there are civ-positions that have a NUMBER higher then '1' and which are assumed (not APPOINTED_BY or ELECTED) but are '''not DUTY_BOUND''', these are automatically spread among the civilisation, based on population. If there are a number of '''20''' available slots of that position, they spread among a civilization with a combined population of, for example, 1000 of which your fortress has 100 (10%), '''2''' of your fortress' citizens will assume that position.  
This may probably also work with elected and appointed positions, but that may be depending on the death of the current holders and this needs more testing. Assumpion works within a day, anyway.  
+
This may probably also work with elected and appointed positions, but that may be depending on the death of the current holders and this needs more testing. Assumption works within a day, anyway.  
  
 
==AS_NEEDED==
 
==AS_NEEDED==
These positions can be created automaticly by the game in world-gen. This however only works with  
+
These positions can be created automatically by the game in world-gen. This, however, only works with  
* LAND_HOLDER's
+
* [LAND_HOLDER]'s
 
* squad commanders (needs more testing)
 
* squad commanders (needs more testing)
 
* Messengers at sites
 
* Messengers at sites
  
For all other types of positions, the're not created in world-gen, even if they are defined with RESPONSIBILITY's. For example, even in war, The game wouldn't create a MILITARY_GOALS position, if they have AS_NEEDED as number.  
+
For all other types of positions, they're not created in world-gen, even if they are defined with RESPONSIBILITY's. For example, even in war, The game wouldn't create a MILITARY_GOALS position, if they have AS_NEEDED as number.  
  
However, in fortress-mode / playermode, these positions can be created by the player at will.
+
However, in fortress-mode / player mode, these positions can be created by the player at will.
  
 
Positions with AS_NEEDED need to be created first, before any symbols are assignable as 'symbols' (objects) for the position holder to carry or wear.
 
Positions with AS_NEEDED need to be created first, before any symbols are assignable as 'symbols' (objects) for the position holder to carry or wear.
Line 194: Line 194:
 
The token REPLACED_BY:position means that once the replacing position reaches its required population-number, the 'to-be-replaced' position will disappear. This is defined in REQUIRES_POPULATION. These tags are closely related to eachother and seem to only have a meaningfull function if combined. Nobles with REQUIRES_POPULATION require the population to have a specific size.  
 
The token REPLACED_BY:position means that once the replacing position reaches its required population-number, the 'to-be-replaced' position will disappear. This is defined in REQUIRES_POPULATION. These tags are closely related to eachother and seem to only have a meaningfull function if combined. Nobles with REQUIRES_POPULATION require the population to have a specific size.  
  
This works on civ-level as well os on site-level, but those systems are in this mechanic strictly seperated. Site-level positions cannot be replaced by civ-level positions and visa versa. This makes sense, because they both depend on their own population-count. When using REQUIRES_POPULATION on civ-level, it counts the total population of the civilisation.  
+
This works on civ-level as well as on site-level, but those systems are in this mechanic strictly separated. Site-level positions cannot be replaced by civ-level positions and visa versa. This makes sense, because they both depend on their own population-count. When using REQUIRES_POPULATION on civ-level, it counts the total population of the civilisation.  
  
 
==Effect of replacement==
 
==Effect of replacement==
  
Replacement is immediate. The current holding unit looses the position. Even before succession_by_position-rules are applied.  
+
Replacement is immediate. The current holding unit loses the position, even before succession_by_position-rules are applied.  
  
Replacement is also complete. A position with a number of 1 wil replace all the slots of a position with a higher number of slots.  
+
Replacement is also complete. A position with a number of 1 will replace all the slots of a position with a higher number of slots.  
  
 
Even if the next position is available but not VISIBLE, replacement still takes place.  
 
Even if the next position is available but not VISIBLE, replacement still takes place.  
Line 207: Line 207:
 
The unit immediately looses its position.
 
The unit immediately looses its position.
  
In legends, replacement is mentioned as: "(unit name) ceeded to be (position name)"
+
In legends, replacement is mentioned as: "(unit name) ceded to be (position name)"
  
The replacement of a AS_NEEDED position empties the positions slot forever. In fotress-mode It may seem as if you can create new slots and appoint new units in the nobles-screen, but this is made undone, as soon as you close the window.  
+
The replacement of an AS_NEEDED position empties the position's slot forever. In fortress-mode, it may seem as if you can create new slots and appoint new units in the nobles-screen, but this is made undone, as soon as you close the window.  
  
 
==Evaluation of replacement and required_population==
 
==Evaluation of replacement and required_population==
  
The game does not constantly check if positions need to become available or need to be replaced. This is know behaviour with for example the mayor. He won't appear automaticly if the needed population is reached. The positions need to be "evaluated". It is not known when this will be done without any player interaction. Players can trigger the evaluation-mechanism by (re)assigning any random site position.  
+
The game does not constantly check if positions need to become available or need to be replaced. This is known behaviour with, for example, the mayor. He won't appear automatically if the needed population is reached. The positions need to be "evaluated". It is not known when this will be done without any player interaction. Players can trigger the evaluation-mechanism by (re)assigning any random site position.  
  
 
==LAND_HOLDER replacement==
 
==LAND_HOLDER replacement==
Line 219: Line 219:
 
The landholder-chain uses replacement differently. It does not empty the position completely, but uses it for succession to the next level's position. REPLACE_BY is required to let that system work properly. This also means that the way in which landholders succeed (replace + as_needed) does not work in any other way.  
 
The landholder-chain uses replacement differently. It does not empty the position completely, but uses it for succession to the next level's position. REPLACE_BY is required to let that system work properly. This also means that the way in which landholders succeed (replace + as_needed) does not work in any other way.  
  
Replacement between LAND_HOLDERS and other site- or civ positions does not work, in any way. Only the vanilla replacement-sequence between levels of LAND_HOLDERs does work. If the token is omitted for land-holders, the land-holder-chain is broken, so replacement is required for the landholder-systeem to work.
+
Replacement between LAND_HOLDERS and other site- or civ positions does not work, in any way. Only the vanilla replacement-sequence between levels of LAND_HOLDERs does work. If the token is omitted for land-holders, the land-holder-chain is broken, so replacement is required for the landholder-system to work.
  
 
REQUIRES_POPULATION does not work in the landholder-chain.  
 
REQUIRES_POPULATION does not work in the landholder-chain.  
Line 225: Line 225:
 
==What does not work==
 
==What does not work==
  
Attention: If a position cannot be appointed, for example because of 'mutual appointment', it still exists accoring to replacements mechanics and wil replace other positions if so defined. If a certain position(a) will be replaced by the baron's-assistant, which can only be appointed by the land_holder baron, than thas position(a) still will be replaced from the start of the game, even if no baron or his assistant is ever present.
+
Attention: If a position cannot be appointed, for example because of 'mutual appointment', it still exists according to replacements mechanics and will replace other positions if so defined. If a certain position(a) will be replaced by the baron's-assistant, which can only be appointed by the land_holder baron, than that position(s) still will be replaced from the start of the game, even if no baron or his assistant is ever present.
  
 
A position that is replaced by a somehow not-fillable position, is still replaced. This counts for mutual-appointing positions, replacement by not-yet assigned landholders, replacement by AS_NEEDED - positions, or replacement by not-yet-appointed positions.  
 
A position that is replaced by a somehow not-fillable position, is still replaced. This counts for mutual-appointing positions, replacement by not-yet assigned landholders, replacement by AS_NEEDED - positions, or replacement by not-yet-appointed positions.  
Line 244: Line 244:
 
==Who can take a position==
 
==Who can take a position==
  
* If so defined, a unit needs the be the right caste and/or class. It does not seem to work with creature-types.  
+
* If so defined, a unit needs to be the right caste and/or class. It does not seem to work with creature types.  
 
* The unit needs to be a member of that site or its parent civ-government.  
 
* The unit needs to be a member of that site or its parent civ-government.  
* It needs to be CAN_LEARN or INTELLIGEND (SLOW_LEARNER cannot take positions) or otherwise be able to think.
+
* It needs to be CAN_LEARN or INTELLIGENT (SLOW_LEARNER cannot take positions) or otherwise be able to think.
 
* It needs to be an adult.
 
* It needs to be an adult.
  
 
==Appointment==
 
==Appointment==
  
Positions that have a [APPOINTED_BY:position]-token require that position to exist, to be available and appointed. Any position that is APPOINTED_BY can be appointed if the appointER's position is filled in.  
+
Positions that have a [APPOINTED_BY:position]-token require that position to exist, to be available and appointed. Any position that is APPOINTED_BY can be appointed if the appointer's position is filled in.  
For site-positions to be appointed, it is required that the appointER as present at that location.
+
For site-positions to be appointed, it is required that the appointer is present at that location.
  
 
If the appointing unit is temporary not present or if that position is not filled, positions depending on it cannot be appointed. This is the case with [[militia captains]], when the [[militia commander]] is on a [[mission]].  
 
If the appointing unit is temporary not present or if that position is not filled, positions depending on it cannot be appointed. This is the case with [[militia captains]], when the [[militia commander]] is on a [[mission]].  
Line 262: Line 262:
 
''In contrary of what it said in the wiki so far, it is tested and confirmed, that civ-level nobles also CAN appoint site-level nobles. They need to be at that site to do so. Landholders can appoint both site-level and civ-level nobles. These systems are therefore not as separate as was assumed.''
 
''In contrary of what it said in the wiki so far, it is tested and confirmed, that civ-level nobles also CAN appoint site-level nobles. They need to be at that site to do so. Landholders can appoint both site-level and civ-level nobles. These systems are therefore not as separate as was assumed.''
  
'''Mutual appointment''' cannot take place. If these are the only requisits of the position, then the positions will never appear or get filled. These unfillable positions can be put to good use, for example to replace a position that is no longer needed, without creating a new one.
+
'''Mutual appointment''' cannot take place. If these are the only requisites of the position, then the positions will never appear or get filled. These unfillable positions can be put to good use, for example to replace a position that is no longer needed, without creating a new one.
  
If a APPOINTED_BY-token referres to to a non-existing positions code, it has the effect as if the appointment-token doesnt exist att all.
+
If a APPOINTED_BY-token refers to a non-existing position's code, it has the effect as if the appointment-token doesn't exist at all.
  
 
===Automatic appointment in world-gen and on civ-level===
 
===Automatic appointment in world-gen and on civ-level===
  
Outside of fortress-mode, the game will always attempt to appoint nobles whenever possible, als long as these positions are '''available'''. Even if they are invisible to the player.
+
Outside of fortress mode, the game will always attempt to appoint nobles whenever possible, as long as these positions are '''available''', even if they are invisible to the player.
 
It shows this message in legends:  "(unit name) has been appointed to the position of (position name)"
 
It shows this message in legends:  "(unit name) has been appointed to the position of (position name)"
  
In word-gen all, positions become available and are automaticly appointed, taking population- and appointment-requirements in consideration.  
+
In world-gen, all positions become available and are automatically appointed, taking population- and appointment-requirements in consideration.  
  
 
Positions that are REPLACED_BY are culled and wont be filled.
 
Positions that are REPLACED_BY are culled and wont be filled.
Line 277: Line 277:
 
If a citizen of your fortress holds a civ-position that can appoint another civ-level position, the appointment will happen automatically and without player intervention. It may happen that another citizen of your fortress is appointed by that unit, creating civ-level position holders in your fortress. But it is unknown what is required to force this effect.
 
If a citizen of your fortress holds a civ-position that can appoint another civ-level position, the appointment will happen automatically and without player intervention. It may happen that another citizen of your fortress is appointed by that unit, creating civ-level position holders in your fortress. But it is unknown what is required to force this effect.
  
===Manual appointments by a player in fortress mode===
+
===Manual appointments by the player in fortress mode===
In fortressmode, the positions that need to be appointed stay empty on embark and it is for the player to apppoint those. A player can appoint a unit to any available position, according to the herabove mentioned conditions. The player takes the role of the automatic appointment-system. The player has no direct control over elections, successions and replacement. There are some differences in what is possible at world-gen sites and at player-controlled sites.
+
In fortress mode, the positions that need to be appointed stay empty on embark. and it is for the player to appoint those. A player can appoint a unit to any available position, according to the hereabove mentioned conditions. The player takes the role of the automatic appointment-system. The player has no direct control over elections, successions and replacement. There are some differences in what is possible at world-gen sites and at player-controlled sites.
  
* A position that is appointed by a unit present as a fortress citizen, can be appointed, re-appointed or left vacant. This means also by civ-level nobles, living as a citizen in your fortress. Not when they are only visiting, like the diplomat.
+
* A position that is appointed by a unit present as a fortress citizen, can be appointed, re-appointed or left vacant. This means also by civ-level nobles, living as a citizen in your fortress; not when they are only visiting, like the diplomat.
 
* A position that is APPOINTED_BY a unit present as the land_holder of your site, can be appointed, reassigned or left vacant.
 
* A position that is APPOINTED_BY a unit present as the land_holder of your site, can be appointed, reassigned or left vacant.
* A position that has SUCCESSION BY_HEIR or BY_POSITION can 'initially' be appointed and also re-appoined or left vacant, but as soon as the [[nobles screen'' closes, it cannot longer be replaced or left vacant. From then on, the succession-rules determine who gains that position when the current holder looses the position.
+
* A position that has SUCCESSION BY_HEIR or BY_POSITION can 'initially' be appointed and also re-appointed or left vacant, but as soon as the [[nobles]] screen closes, ''it can not longer be replaced or left vacant''. From then on, the succession-rules determine who gains that position when the current holder loses the position.
 
* A position that is ELECTED nor APPOINTED_BY, can always be (re-)appointed by the player. This is the case with the [[Expedition leader]]. If it is left vacant however, it cannot be appointed, but will assumed shortly after.  
 
* A position that is ELECTED nor APPOINTED_BY, can always be (re-)appointed by the player. This is the case with the [[Expedition leader]]. If it is left vacant however, it cannot be appointed, but will assumed shortly after.  
* A position that is both ELECTED and appointed by, cannot be appointed by the player. In contrary to world-gen sites. It's slot is visible, but it doesnt show the +-sign. This is either by AS_NEEDED as by a fixed number. Even if the position somehow gets filled (re)assignment is never possible
+
* A position that is both ELECTED and appointed by, cannot be appointed by the player. In contrary to world-gen sites. It's slot is visible, but it doesn't show the +-sign. This is either by AS_NEEDED as by a fixed number. Even if the position somehow gets filled (re)assignment is never possible
* A player can appoint a number of units to a position, as much as the NUMBER-token dictates. If it is AS_NEEDED, the player may create as many slots if he likes, also in contrary of world-gen-sites.  
+
* A player can appoint a number of units to a position, as much as the NUMBER-token dictates. If it is AS_NEEDED, the player may create as many slots as they like, also in contrary of world-gen-sites.  
* A Civ-position can never be appointed, even if the apointING Civ-noble is a citizen of your fortress. A civ position also never can be re-assigned or left vacant, would that position be defined as appointed by a site-position.
+
* A civ-position can never be appointed, even if the appointing civ noble is a citizen of your fortress. A civ position also never can be re-assigned or left vacant, would that position be defined as appointed by a site-position.
  
 
==Election==
 
==Election==
Line 292: Line 292:
 
Read more in [[Elections]]
 
Read more in [[Elections]]
  
The message that is shown, is: "(creature name) has been elected to the position of  (position name)"
+
The message that is shown is: "(creature name) has been elected to the position of  (position name)"
  
 
In worldgen, there is no functional difference between ELECTED and non-appointment, except that elected nobles tend to have high social skills and/or skills related to the position, while non-elected ones are assigned randomly.
 
In worldgen, there is no functional difference between ELECTED and non-appointment, except that elected nobles tend to have high social skills and/or skills related to the position, while non-elected ones are assigned randomly.
  
A election goes before succession.  
+
An election goes before succession.  
  
 
A position that is also APPOINTED_BY gets never elected. Even if the position somehow gets filled, (re)-elections wont happen. So, it doesn't seem possible to have a elected position become available from a certain land_holder's level.  
 
A position that is also APPOINTED_BY gets never elected. Even if the position somehow gets filled, (re)-elections wont happen. So, it doesn't seem possible to have a elected position become available from a certain land_holder's level.  
Line 302: Line 302:
 
A ELECTED civ-(or LAND_HOLDER)-position at your site will never be (re)-elected in fortress-mode. So real (re-)election only works with SITE-positions.  
 
A ELECTED civ-(or LAND_HOLDER)-position at your site will never be (re)-elected in fortress-mode. So real (re-)election only works with SITE-positions.  
  
When a settlement gets up a level in the LANDHOLDER-track, a election is happening, in which the current electable positions undergo a new election-round.
+
When a settlement gets up a level in the LANDHOLDER-track, an election is happening, in which the current electable positions undergo a new election-round.
  
 
==Assumption==
 
==Assumption==
  
A position that is not APPOINTED_BY nor ELECTED, or is appointed by positions that are not available in your site or civ, it will be assumable by a random dwarf. If it has responsibilities that require certain skills, then these are taken into consideration. (verify)
+
A position that is not APPOINTED_BY nor ELECTED, or is appointed by positions that are not available in your site or civ, it will be assumable by a random dwarf. If it has responsibilities that require certain skills, then these are taken into consideration. {{verify}}
  
 
The message that is shown in Legends-mode, is: "(unit name) has assumed the position of (position name)". This make also take place in fortress mode, which then shows this message to the player.  
 
The message that is shown in Legends-mode, is: "(unit name) has assumed the position of (position name)". This make also take place in fortress mode, which then shows this message to the player.  
Line 312: Line 312:
 
If a assumable position becomes empty, it will be assumed within a day. This is the case when you leave the position of expedition-leader vacant. It also happens with civ-entities.  
 
If a assumable position becomes empty, it will be assumed within a day. This is the case when you leave the position of expedition-leader vacant. It also happens with civ-entities.  
  
Assumable positions that have become empty will not be assumed if that position has a valid SUCCESSION -successor. In that case, the successor inherrits the position.  
+
Assumable positions that have become empty will not be assumed if that position has a valid SUCCESSION -successor. In that case, the successor inherits the position.  
  
 
Even positions that are somehow invisible because they cannot be directly APPOINTED_BY players, can be assumed.  
 
Even positions that are somehow invisible because they cannot be directly APPOINTED_BY players, can be assumed.  
  
When you embark, the assumable positions are automatically assigned to a random unit. If there are multiple of this positions at embark, they all are assigned to the same unit.   
+
When you embark, the assumable positions are automatically assigned to a random unit. If there are multiple of these positions at embark, they all are assigned to the same unit. However, if these positions have a [ACCEPTED_CLASS] or [REJECTED_CLASS] - token, a fitting dwarf is appointed for each of these positions. Using the ACCEPTED or REJECTED-tokens, you can make sure that initial positions are evenly distributed at embark, and that not only one dwarf has all of the titles.   
  
A position that has an appointer, which got replaced because of REPLACED_BY, it will not become assumable. Also positions that have a AS_NEEDED appointer that is not yet filled (or ever), wil also not be assumed.
+
If a dwarf in fortress-mode assumes a position, that has already another position, it will leave the current position empty. When that position also is assumed, then this will continue until all positions have a dwarf appointed to it, with no other position.
 +
 
 +
A position that has an appointer, which got replaced because of REPLACED_BY, will not become assumable. Also positions that have a AS_NEEDED appointer that is not yet filled (or ever), will also not be assumed.
  
 
==Succession==
 
==Succession==
Line 324: Line 326:
 
If a position-holder dies or advances to a new position via succession, the position will be granted to another unit based on the SUCCESSION tag. If they have an heir or the succeeding position exists, that unit will be assigned. If not, a new one will be appointed according to the usual rules. De succeeding dwarf will also lose its previous position. The message that is shown, is: "(creature name) being the rightful heir, has inherited the position of (position name)"
 
If a position-holder dies or advances to a new position via succession, the position will be granted to another unit based on the SUCCESSION tag. If they have an heir or the succeeding position exists, that unit will be assigned. If not, a new one will be appointed according to the usual rules. De succeeding dwarf will also lose its previous position. The message that is shown, is: "(creature name) being the rightful heir, has inherited the position of (position name)"
  
Succession works both at site-level as at civ-level, both in world-gen and in fortress-mode. Succesion by position on Civ-level is also visible and functional in fortress-mode. If both civ-level nobles are a citizen of your fortress, succession is applied visually.
+
Succession works both at site-level as at civ-level, both in world-gen and in fortress-mode. Succession by position on Civ-level is also visible and functional in fortress-mode. If both civ-level nobles are a citizen of your fortress, succession is applied visually.
  
 
Vanilla example: The [[druid]] is succeeded by the [[acolyte]]. This means that as soon as the druid dies, the acolyte takes over.  
 
Vanilla example: The [[druid]] is succeeded by the [[acolyte]]. This means that as soon as the druid dies, the acolyte takes over.  
  
When a position that is succeeded by position becomes available, immediatly it is checked if a position-successor is available and the position is filled with that unit.  
+
When a position that is succeeded by position becomes available, immediately it is checked if a position-successor is available and the position is filled with that unit.  
  
 
It is possible to assign multiple levels of SUCCESSION:BY_POSITION, creating a line of positions where the death of one causes all those "below" them to advance.
 
It is possible to assign multiple levels of SUCCESSION:BY_POSITION, creating a line of positions where the death of one causes all those "below" them to advance.
Line 340: Line 342:
 
* The precedence of the succeeding-position
 
* The precedence of the succeeding-position
  
When a position is defined with a Succession-type, that unit cannot have another position that has a Squad-type. If the succesion-position itself has a squad, than it can be assignent another position with a squad, but then it will loose the previous succesion-one. See further details by "Squad"
+
When a position is defined with a Succession-type, that unit cannot have another position that has a Squad-type. If the succession-position itself has a squad, than it can be assigned another position with a squad, but then it will loose the previous succesion-one. See further details by "Squad"
  
 
Assumed positions can also be succeeded by position, if the current holder dies.  
 
Assumed positions can also be succeeded by position, if the current holder dies.  
  
If the successor is a AS_NEEDED-position, the used unit will leave a vacant position-slot on its removal by succession. This empty slot remains a real slot, which will only be cleaned up, if you (un)appoint a unit to this position-series. It isn't cleaned up after regular position-validation.
+
If the successor is an AS_NEEDED position, the used unit will leave a vacant position-slot on its removal by succession. This empty slot remains a real slot, which will only be cleaned up, if you (un)appoint a unit to this position-series. It isn't cleaned up after regular position-validation.
  
A Civ-level position of a unit living at your site might be inherrited by a unit holding that does not currently live at your site. This unfortinately moves you civ-noble off site.
+
A Civ-level position of a unit living at your site might be inherited by a unit holding that does not currently live at your site. This, unfortunately, moves your civ-noble off site.
 
This may also happen with the land-holder of your site, for example when it is succeeded by another civ-level position.  
 
This may also happen with the land-holder of your site, for example when it is succeeded by another civ-level position.  
 
Its needs further testing, if the landholder somehow can be called back.  
 
Its needs further testing, if the landholder somehow can be called back.  
Line 354: Line 356:
 
Succession can work when combining site positions with civ-level positions or land_holders, but only in world-gen mode. In fortress-mode, it cannot be combined.  There it only works with combining the same level of nobles, with Landholders regarded as civ-level.  
 
Succession can work when combining site positions with civ-level positions or land_holders, but only in world-gen mode. In fortress-mode, it cannot be combined.  There it only works with combining the same level of nobles, with Landholders regarded as civ-level.  
  
So, in fortress mode, A site's position cannot succeed a landholder's position and it cannot succeed another type of civ-level position, and vica versa.  
+
So, in fortress mode, a site's position cannot succeed a landholder's position and it cannot succeed another type of civ-level position, and vice versa.  
 
This wont work even if the positions:
 
This wont work even if the positions:
 
* are AS_NEEDED or having a fixed number.
 
* are AS_NEEDED or having a fixed number.
Line 361: Line 363:
 
===Succession BY_HEIR===
 
===Succession BY_HEIR===
  
When a heir is needed for succession, all children and then other relatives are validated. They cannot take the position if their status does not allow the position. For example if they have become the member of another civilisation. See: "Who can take a position". If the unit has no valid heir on that location, the position may go to a unit living on another site. This may cause the title of Landholder of some land be inherritd by a unit living somewhere else. That might be a problem, because then you loose your landholders.
+
When a heir is needed for succession, all children and then other relatives are validated. They cannot take the position if their status does not allow the position. For example if they have become the member of another civilisation. See: "Who can take a position". If the unit has no valid heir on that location, the position may go to a unit living on another site. This may cause the title of Landholder of some land to be inherited by a unit living somewhere else. That might be a problem, because then you lose your landholders.
  
 
===Premature Succession===
 
===Premature Succession===
  
There are some cases where succession by position is applied too early, when a position initially becomes available. It is filled in by the succession-mechanism, without player interaction. This is probably a bug, but it can be exploited to create some interesting textures. When a position first becomes available, the game will check whether there is a valid successor-by-position. Then this unit is immediately assigned for this new position. If this happens in Fortress mode with a position that can also be appointed by a unit present, succession is activated before the player has a chance to appointed a holder.
+
There are some cases where '''SUCCESSION:BY_POSITION''' is applied too early: immediately when a position initially becomes available. It is filled in by the succession-mechanism, without player interference. This is probably a bug, but it can be exploited to create some interesting structures. When a position first becomes available, the game will check whether there is a valid successor-by-position. Then this unit is immediately assigned for this new position. If this happens in Fortress mode with a position that can also be appointed by a unit present, succession is activated before the player has a chance to appoint a holder.
Using premature succession, a ELECTED + APPOINTEN_BY position can be filled, but assignment or elections wont happen. It seems so have no other benefits.  
+
Using premature succession, a ELECTED + APPOINTED_BY position can be filled, but assignment or elections wont happen. It seems to have no other benefits.  
  
This only applies to Fortress-mode, not in world-gen, but can be used with both site and civ-level nobles.  
+
This only applies to Fortress mode, not in world-gen, but can be used with both site and civ-level nobles.  
  
 
This applies to:
 
This applies to:
Line 376: Line 378:
 
* The successable (site/civ) position is APPOINTED_BY the LAND_HOLDER-position, that has just been created because your site's level is elevated. It happens when the diplomat leaves the area. Presumably because landholders are also AS_NEEDED.
 
* The successable (site/civ) position is APPOINTED_BY the LAND_HOLDER-position, that has just been created because your site's level is elevated. It happens when the diplomat leaves the area. Presumably because landholders are also AS_NEEDED.
 
 
It is nót applied when:
+
It is not applied when:
 
* An AS_NEEDED successable position-slot is just created by the player, that has a filled succeeding position. (AS_NEEDED- positions always need to be appointed after they are created)
 
* An AS_NEEDED successable position-slot is just created by the player, that has a filled succeeding position. (AS_NEEDED- positions always need to be appointed after they are created)
* The successing position is filled after the successable position becomes available. Then its to late.  
+
* The successing position is filled after the successable position becomes available. Then its too late.  
 
* The position can be appointed by another position(site/civ) with a fixed number, that is just appointed.
 
* The position can be appointed by another position(site/civ) with a fixed number, that is just appointed.
 
* Anything world-gen
 
* Anything world-gen
* The succeeding position is replaced by the succesable position. In that case, the unit is first removed by the replacement, before the succession-mechanism had the chance to use that unit.
+
* The succeeding position is REPLACED_BY the succesable position. In that case, the unit is first removed from the position by the replacement, before the succession-mechanism had the chance to use that unit.
  
 
===What does not work===
 
===What does not work===
  
* A circular succesion-loop let the game crash.
+
* A circular succession-loop let the game crash.
 
* Succession plays no role during elections. Elections have priority
 
* Succession plays no role during elections. Elections have priority
  
=Loosing a position=
+
=Losing a position=
  
A unit can loose a positiion, when
+
A unit can lose a position, when
 
* It dies
 
* It dies
 
* It succeeds another position
 
* It succeeds another position
* Is is assigned to another SQUAD-holding position
+
* It is assigned to another SQUAD-holding position
* Is commits a crime and is convicted.
+
* It commits a crime and is convicted.
 
* Another unit is ELECTED for the position
 
* Another unit is ELECTED for the position
* Its position is becomes replaced
+
* Its position becomes replaced
* Another unit is appointed by the player or the position is left vacant.  
+
* Another unit is appointed by the player, or the position is left vacant.  
* it has assumed a civ-level- position, as this always leaved the previous position vacant.
+
* It has assumed a civ-level-position, as this always leaves the previous position vacant.
  
 
=Embarkment=
 
=Embarkment=
  
 
Two types of positions are automaticly filled by embark.  
 
Two types of positions are automaticly filled by embark.  
* Positions without appointed_by or elected. All these positions, even with a NUMBER higher than 1, are all filled with the same, single, random dwarf.
+
* Positions without appointed_by or elected (assumable). All these positions, even with a NUMBER higher than 1, are all filled with the same, single, random dwarf.
 +
* * A exception to this rule is when these positions have a REJECTED_CLASS-token or a ACCEPTED_CLASS-token. These positions are distributed evenly, considering the given creature class.
 
* Positions that are elected are filled-in by the normal election rules.
 
* Positions that are elected are filled-in by the normal election rules.
  
Positions that have a defined appointment are never initially filled at embark.
+
Positions that have a defined appointer are never initially filled at embark.
  
 
=Land Holders=
 
=Land Holders=
  
A Land-holder is a '''special civ-level noble''' who gets a certain piece of land to hold, when that land gains a certain level. This is determinded by the tag LAND_HOLDER and by the landholder triggers in the game's settings. In vanilla, these are the baron, the count and the duke.  
+
A Land-holder is a '''special civ-level noble''' who gets a certain piece of land to hold, when that land gains a certain level. This is determined by the tag LAND_HOLDER and by the landholder triggers in the game's settings. In vanilla, these are the baron, the count and the duke.  
  
 
==Functioning of the regular landholder-chain==
 
==Functioning of the regular landholder-chain==
Line 421: Line 424:
 
* No SITE (so civ) tag in that position.
 
* No SITE (so civ) tag in that position.
 
* Replaced_by the next level landholder
 
* Replaced_by the next level landholder
If a land-holder is defined with differentiating properties, it wil function like a regular noble. A higher-up landholder that lacks the required tokens or connections will then not be used in elevation.  
+
If a land-holder is defined with differentiating properties, it will function like a regular noble. A higher-up landholder that lacks the required tokens or connections will then not be used in elevation.  
  
 
If a fortress meets the trigger for a new LAND_HOLDER tier when a caravan leaves, then the next time the outpost liaison or equivalent arrives, they will offer to make you an official colony, which will allow you to select all positions for that LAND_HOLDER level. Each time they appear, the outpost liaison will only promote your fortress one tier up the LAND_HOLDER track.  
 
If a fortress meets the trigger for a new LAND_HOLDER tier when a caravan leaves, then the next time the outpost liaison or equivalent arrives, they will offer to make you an official colony, which will allow you to select all positions for that LAND_HOLDER level. Each time they appear, the outpost liaison will only promote your fortress one tier up the LAND_HOLDER track.  
Line 429: Line 432:
 
==Appointment==
 
==Appointment==
  
This mechanism differs from the regular methods of position management. It ignores all regular appoinment- and election rules, so it more or less functions like automatic assingment. A landholder is in vanilla appointed by the monarch. Changing this doesn't seem to do anything. If he is appointed by a site-position, a not-yet-existing civ-position, or not apponted at all: the systeem keeps working regularly.  
+
This mechanism differs from the regular methods of position management. It ignores all regular appointment- and election rules, so it more or less functions like automatic assingment. A landholder is in vanilla appointed by the monarch. Changing this doesn't seem to do anything. If he is appointed by a site-position, a not-yet-existing civ-position, or not appointed at all: the system keeps working regularly.  
  
 
A landholder can appoint civ-positions and site positions. This works as expected: the positions only are appointed then when that landholder becomes available on civ-level or when he arrives at that site for site-level positions.  
 
A landholder can appoint civ-positions and site positions. This works as expected: the positions only are appointed then when that landholder becomes available on civ-level or when he arrives at that site for site-level positions.  
  
If your rank of landholder is the first of its rank in the realm, and he is the sole appointer of some civ-position, then immediatly as he gains the title, he will appoint the empty civ-slots. This may happen on your site, but the frequency and certainty is hard to determine.
+
If your rank of landholder is the first of its rank in the realm, and is the sole appointer of some civ-position, then immediately as it gains the title, it will appoint the empty civ-slots. This may happen on your site, but the frequency and certainty is hard to determine.
  
 
==Succession==
 
==Succession==
  
 
Succession-rules are applied to some extend:
 
Succession-rules are applied to some extend:
* In world-gen it does work according to succession rules, and site-positions can be used here.  This means that a site-position or a civ-position can inherrit a landholders-positon and vica versa.
+
* In world-gen it does work according to succession rules, and site-positions can be used here.  This means that a site-position or a civ-position can inherit a landholders-positon and vice versa.
* In fortress-mode, once a landholder has been appointed, it then can inherrit civ-level positions, and vica versa. This means that your baron can become king.  
+
* In fortress-mode, once a landholder has been appointed, it then can inherit civ-level positions, and vica versa. This means that your baron can become king.  
* Succession-rules do not apply within the land-holder chain. A count will not inherrit a barons land. This is because succession does not work well with the AS_NEEDED token.
+
* Succession-rules do not apply within the land-holder chain; a count will not inherit a baron's land. This is because succession does not work well with the AS_NEEDED token.
* Premature succession works in fortressmode with landholders. If a unit gets a landholdersposition and that landholder is the appointer of an yet-empty position, which is defined as succeeding from a third one, then the succession is immideatly applied. The landholder himself can even be the successor of a newly created position.
+
* Premature succession works in fortress mode with landholders. If a unit gets a landholdersposition and that landholder is the appointer of an yet-empty position, which is defined as succeeding from a third one, then the succession is immediately applied. The landholder himself can even be the successor of a newly created position.
* A landholders-position is in fortressmode not successable by a site-position or visa versa
+
* A landholder's position is, in fortress mode, not successable by a site-position or visa versa
  
 
==Nomination==
 
==Nomination==
  
The player is able to nominate a unit to become the land_holder. This only works with level 1. The player can select all units, only limitied by the PRECEDENCE of the current units positions.
+
The player is able to nominate a unit to become the land_holder. This only works with level 1. The player can select all units, only limited by the PRECEDENCE of the current units positions.
  
 
A unit that has a position with a PRECEDENCE lower or equal as that of the landholders-position, cannot be selected. This means that a baron (or count) from another site or the monarch or cannot be selected, because their precenence is lower or equal.  
 
A unit that has a position with a PRECEDENCE lower or equal as that of the landholders-position, cannot be selected. This means that a baron (or count) from another site or the monarch or cannot be selected, because their precenence is lower or equal.  
Line 455: Line 458:
 
In mods, up to 10 levels of land_holder may be defined.  
 
In mods, up to 10 levels of land_holder may be defined.  
  
If a landholder is replaced by a wrong landholdernumer (1 replaced by 3), then the number 3 is still correctly attached to the settlement.  
+
If a landholder is replaced by a wrong landholder number (1 replaced by 3), then the number 3 is still correctly attached to the settlement.  
  
If the current landholder has the highest available landholder-numer, then the next elevation will happen. The diplomat will not elevate your fortress to a higher position. Even if that position might be REPLACED_BY a lower landholder.  
+
If the current landholder has the highest available landholder number, then the next elevation will not happen. The diplomat will not elevate your fortress to a higher position. Even if that position might be REPLACED_BY a lower landholder.  
  
 
These chains do work:
 
These chains do work:
Line 469: Line 472:
 
==Moving landholders==
 
==Moving landholders==
  
It may happen that a land-holder no longer lives at the site of which he is the landholder of. This happends when the current landholder dies, leaving the title to an heir living somewhere else.  
+
It may happen that a land-holder no longer lives at the site of which he is the landholder of. This happens when the current landholder dies, leaving the title to an heir living somewhere else.  
  
To prevent this from happening, you can make his succession from heir and make sure that his kids live at your site. Or, you can make his position succeeded by another civ-position, and make it so that this civ-position is somehow available on your site. But if multiple of these positions exist, it cannot be geranteed that a citizen of your fortress wil inherrit the title.  
+
To prevent this from happening, you can make his succession from heir and make sure that his kids live at your site. Or, you can make his position succeeded by another civ-position, and make it so that this civ-position is somehow available on your site. But if multiple of these positions exist, it cannot be guaranteed that a citizen of your fortress will inherit the title.  
  
In world-gen, a landholder lacking the DUTY_BOUND-token will also move to the site he likes, accoring to legends mode.  
+
In world-gen, a landholder lacking the DUTY_BOUND-token will also move to the site he likes, according to legends mode.  
  
 
==Replacement by a generic civ-position==
 
==Replacement by a generic civ-position==
  
If a landholder is replaced by a AS_NEEDED non-landerholder civ-position, then this will work: the current landholder looses that title upon settlement-elevation and gains that civ-title. However, the civ-title lacks the landholder-property of being attached to the land. It wil not show the name of the settlement allong the poistions-name. So no "minister of Shovelmounts"
+
If a landholder is replaced by a AS_NEEDED non-landholder civ-position, then this will work: the current landholder loses that title upon settlement-elevation and gains that civ-title. However, the civ-title lacks the landholder-property of being attached to the land. It wil not show the name of the settlement alongside the position's name. So no "minister of Shovelmounts"
 +
 
 +
If a landholder is replaced by a general AS_NEEDED civ-position, that itself is also replaced by a generic AS_NEEDED civ-position, then firstly the elevation is executed and also the unit gains that new position. However, he immideatly looses it. Because a AS_NEEDED position that is replaced by another position can be filled initially, but units wont be able to hold that title.
  
If a landholder is replaced by a general AS_NEEDED civ-position, that itself is also replaced by a generic AS_NEEDED civ-position, then firstly the elevation is executed and also the unit gains that new position. However, he immideatly looses it. Because a AS_NEEDED postion that is replaced by another position can be filled initially, but units wont be able to hold that title.
+
==Landholder with fixed number==
  
Landholder with fixed number
+
A Landholders position that has a fixed number will be created and filled directly when the civilisation is born. So this position slot is then not available for the regular landholder-mechanic and will also not be used. That landholder will thus not be attached to a settlement.  
Also, a Landholders-position that has a fixed number wil be created and filled directly when the civilitation is born. So this positions-lot is then not available for the regular landholder-mechanic and will also not be used. That landholder will thus not be attached to a settlement.  
 
  
 
It doesn't matter if the landholders position is connected to the regular landholder's-chain by the REPLACE_BY-token.  
 
It doesn't matter if the landholders position is connected to the regular landholder's-chain by the REPLACE_BY-token.  
Line 488: Line 492:
 
==Responsibilities==
 
==Responsibilities==
  
When given a certain RESPONSIBILITY, a landholder may function as regular civ-level nobles. If the position has responsibility TRADE or OUTPOST_NEGOTIATING, then the landholder functions both as diplomat and as actual land holder. A landholder with the MILITARY_STRATEGY-responsitibilty will travel arround taming creatures in world-gen, according to legends-mode.  
+
When given a certain RESPONSIBILITY, a landholder may function as regular civ-level nobles. If the position has responsibility TRADE or OUTPOST_NEGOTIATING, then the landholder functions both as diplomat and as actual land holder. A landholder with the MILITARY_STRATEGY responsibility will travel around taming creatures in world-gen, according to legends-mode.  
  
 
Besides that, the responsibilities work the same as with any other at your site living position-holder, civ or otherwise.  
 
Besides that, the responsibilities work the same as with any other at your site living position-holder, civ or otherwise.  
Line 496: Line 500:
 
==Squad assignment==
 
==Squad assignment==
  
Squads can be assignet, even if the leaders position has no holder. This seems to be the case if the number is fixed (1) or if the position is assignet by a non-military position.
+
Squads can be assigned, even if the leader position has no holder. This seems to be the case if the number is fixed (1) or if the position is assigned by a non-military position.
  
A specific unit can only have one position associated with a squad. If he gains another 'squiad holding position', he is unassigned of the first one. This does not work with a 0-squad, so only 1+squads are taken into considerationso this technice can possibly by used to distribute all positions equally among all citizends. It does however not work with election and assumption.  
+
A specific unit can only have one position associated with a squad. If it gains another 'squad holding position', it is unassigned of the first one. This does not work with a 0-squad, so only 1+squads are taken into consideration; so this technique can possibly be used to distribute all positions equally among all citizens. It does however not work with election and assumption.  
  
If a civ-level position is associated with a squad and he gets a site-level squad-holding position assigned, he looses the current civ-position.  
+
If a civ-level position is associated with a squad and it gets a site-level squad-holding position assigned, it loses the current civ-position.  
  
 
Squads can get really messed up, if you make the position (or multiple) either elected or not-elected and not-appointed, then this can cause the game to assign multiple squads to the same unit. Automatic assignment and election does not take squads in account, but the nobles-screen does. This can cause the positions to be cleared as the game figures out that they have more than one position, and immidiatly get elected or assumed again.  
 
Squads can get really messed up, if you make the position (or multiple) either elected or not-elected and not-appointed, then this can cause the game to assign multiple squads to the same unit. Automatic assignment and election does not take squads in account, but the nobles-screen does. This can cause the positions to be cleared as the game figures out that they have more than one position, and immidiatly get elected or assumed again.  
Line 525: Line 529:
  
 
{{Category|Modding}}
 
{{Category|Modding}}
 +
{{Category|Entities}}
 
{{Category|Guides}}
 
{{Category|Guides}}

Latest revision as of 04:02, 14 November 2024


Introduction[edit]

Discussion thread on the forum

This article is the result of an investigation into the mechanisms involved in entity positions. It can be useful for modders or advanced players to understand how this part of Dwarf Fortress works.

What is an entity?[edit]

An entity is an organizational structure. It can have relationships with other entities. An entity is usually known as a civilization or a "site government", but merchant guilds, religious organizations, and bandit groups are also entities. An entity can have positions. In most cases these are hardcoded and generated by the game, but with civilizations and sites they can be customized with the raw entities.

What is a position?[edit]

A position is a special relationship between a unit and an entity. The unit holding a position has a larger influence over that entity as other citizens. Positions are mostly known as nobles, but in this article the technical term is used.

Position levels (Site/Civ) and their interaction[edit]

There are two basic types of positions that are customizable: civ(ilization) level and site level. Positions with the tag [SITE] are at site level, positions without the tag [SITE] are at 'civ level'. These two types of nobles can be considered loosely related systems. There are a few places where they can interact with each other.

Civ-level positions are in charge of the civilization as a whole, managing national trade, laws, and wars. These are, for example, the vanilla monarch, princes, diplomat and general.

LAND_HOLDERS nobles are also positions at civ-level. These units are members of the national government, but have gained hold over some land or site. Once they do, they move to that place, but their position is still regarded as a civ-level position.

Site-level position holders are members of a site government (subsidiary to the civilization), and manage local affairs in that location. These are, for example, the mayor, the sheriff and the broker.

Table of interaction between different position-levels[edit]

In this table, the possible interactions between different position levels are summarized. The header row shows the positions defining the tokens.

The left column shows the position type that is referred. Example:

referred position-type LAND_HOLDER
civilization (baron is) APPOINTED_BY:MONARCH

color coding:

  • Exists in vanilla
  • Possible in mods
  • Not possible
  • possible to some extent.
  • not yet fully investigated.
referred position-type Civilization SITE LAND_HOLDER CONQUERED_SITE
civilization APPOINTED_BY
COMMANDER
REPLACED_BY
SUCCESSION
APPOINTED_BY
COMMANDER
REPLACED_BY
SUCCESSION (1)
APPOINTED_BY
COMMANDER
REPLACED_BY
SUCCESSION
APPOINTED_BY
COMMANDER
REPLACED_BY
SUCCESSION
SITE APPOINTED_BY
COMMANDER
REPLACED_BY
SUCCESSION (2)
APPOINTED_BY
COMMANDER
REPLACED_BY
SUCCESSION
APPOINTED_BY (3)
COMMANDER
REPLACED_BY
SUCCESSION (4)
APPOINTED_BY
COMMANDER
REPLACED_BY
SUCCESSION
LAND_HOLDER APPOINTED_BY
COMMANDER
REPLACED_BY (6)
SUCCESSION
APPOINTED_BY
COMMANDER
REPLACED_BY
SUCCESSION (5)
APPOINTED_BY
COMMANDER
REPLACED_BY (7)
SUCCESSION (8)
APPOINTED_BY
COMMANDER
REPLACED_BY
SUCCESSION
CONQUERED_SITE APPOINTED_BY
COMMANDER
REPLACED_BY
SUCCESSION
APPOINTED_BY
COMMANDER
REPLACED_BY
SUCCESSION
APPOINTED_BY
COMMANDER
REPLACED_BY
SUCCESSION
APPOINTED_BY
COMMANDER
REPLACED_BY
SUCCESSION

Remarks:

  1. Works only in world-gen, if an unit with that civ-position is present at the site.
  2. Works only in world-gen, the site-position holding unit will then move to the capital.
  3. is completely ignored
  4. Works only in world-gen.
  5. Works only in world-gen.
  6. wont appear at all
  7. This is neccesary for the landholder-chain to work property. It doensn't work otherwise.
  8. This works only outsite of the landholder-chain, so when landholders are simply regarded as civ-level nobles. might also work in world-gen

Civ-level nobles living at your site[edit]

Nobles from your civilization can come to live at your fortress. This happens in vanilla with landholders such as Baron, Count and Duke, with the Monarch, but sometimes also with non-landed LAND_HOLDERS.

When a civ-level noble becomes a citizen at your location, their position is shown among the site-level positions in your nobles screen. They appear to function as a site-level noble. They may have demands, mandates, squads and the like. They can appoint nobles at the site-level.

If they have certain RESPONSIBILITY's, they do the tasks that go with them.

General[edit]

Fortress mode, world-gen and their differences[edit]

Their are a few differences in how positions function, between fortress-mode (normal play-mode) and the world generation (world-gen).

In fortress mode, the player has some control over the appointment of nobles, limited by elections, automatic filled-in positions and succession rules. Pre-fortress mode, which is referred to as world-gen, the game will always attempt to assign nobles whenever possible. It is subjected to the same rules as in fortress-mode, but there are some exceptions. In World Automation, which is the thing that happens in the world while you play fortress mode, it seems as if the same rules are applied as fortress mode.

A difference between player-fortress-mode and world-gen, is causes by visibility (see below). Positions that are not visible by the player and thus not available for assignment, will be available in world-gen and will thus be automatically assigned.

In fortress mode, a position that is both ELECTED and APPOINTED_BY, cannot be appointed by the player and is also not elected, and can thus not be filled. But in world-gen sites however, these positions are automatically filled.

Positions with AS_NEEDED are almost never created and filled in world-gen (depending on its RESPONSIBILITY's), but can always be used in player mode.

A position can, in fortress mode, be filled by the same unit. A unit can gain multiple positions in fortress-mode, for example because of elections. This will not happen in world-gen mode: a unit can only have one position. See also remarks on 'embark' and 'Losing a position'.

In world-gen, SUCCESSION between civ-levels en SITE-levels may happen. This will not happen in fortress-mode, or even off-site in World Automation.

In fortress-mode, premature SUCCESSION may happen. This will not happen in world-gen-mode.

Units holding multiple positions (in multiple entities)[edit]

A unit can hold multiple positions in its civilisation OR site-entity, however this does not happen in world-gen. Only at player-managed sites units can be holding multiple positions at once. (It is probably not possible for a unit to hold a position in two different civilisations or two different sites. )

In world-gen, if there are too many positions to be filled, they simply stay empty until more units are available.

In world-gen, a unit at a site might inherit a civ-level position and still remains a member of the local government. When this happens however, they move to the capital.

In world-gen, if a unit gains a new position, either inherited or otherwise, it drops the previous one. If a unit assumes a civ-position in fortress mode, it leaves the current position.

If a unit holds the same (site-)position multiple times, it has no additional effect.

If a unit holds multiple different positions of the same entity, he has all those positions responsibilities and properties stacked up. It is presumable that the demands for those combined positions are determined by the highest.

A unit holding a position with a succession-token CAN be assigned another position with a (different) succession-token.

A unit holding a position with a squad-position cannot hold another squad-position. It is dropped from the first, when it gets its second assigned. A unit holding a position with a succession-token cannot be assigned to a squad-position. The unit is simply not available. It works the other way around, though.

RESPONSIBILITY[edit]

If a civ noble having certain responsibilities arrives at a site and start to live there, it will perform the tasks coming with that responsibility. This means that a civ manager will do management while he's a citizen of your fortress.

The only AS_NEEDED-position that is created in world-gen is that of the responsibility DELIVERS_MESSAGES, of a site level.

World-gen effects of the RESPONSIBILITY of available positions[edit]

It is possible to cause civs and individual sites to change their behavior substantially when they reach a certain size by controlling nobles.

  • If a site can only appoint a position with [MILITARY_GOALS] after reaching a particular size, that site will not send armies on missions until the required size is reached.
  • A civ-level LAW_MAKING position is required for the civilization to have any kind of cohesion. Without it, sites will be constantly embroiled in territorial disputes and civil wars will be commonplace.
  • MILITARY_STRATEGY positions go out and tame wild animals. This makes your civ gain those animals as domesticated and also brings them in sieges.

Availability and visibility[edit]

Availability of (new) positions[edit]

Warning: Do not mistake "availability" for "visibility"!

Of all the possible positions existing in your site's entity, there may only be some available.

  • Positions with [REQUIRES_POPULATION] require the population to have a specific size.
  • Positions with [REQUIRES_MARKET] will only appear in "large" sites (which may have different rules for different site types). This tag has no effect in fort mode.
  • Positions that are appointed by positions that have a AS_NEEDED number. The appointable positions only become available after a appoiner-position-slot is created. This works also on civ-level. If a position is appointed by a Land-holder, it only becomes available, when that level of landholder is created.

Only the replaced positions are culled and are no longer available. A position that requires a certain population will become available, even if it doesn't have [APPOINTED_BY] or [ELECTED]. In that case, see 'automatic assignment' and 'assumption'

In fortress-mode, in some cases 'succession' is evaluated immediately after a position becomes available. See: Succession.

Visibility of positions[edit]

A position might be available, but can still be invisible for the player in the nobles screen. The positions with their respective holders are visible for players:

  • All site-positions that are already filled-in (even if they could not be re-filled-in considering current conditions)
  • Site-positions that are appointable by a filled-in site position
  • Civ-positions of units that are also a citizen of your fortress.

If a position becomes available, for example because a certain pop number has reached or if it is available from the start(like expedition leader), als long as it cannot be appointed, it still is INVISIBLE for the player.

It might strike someone as odd, if a position becomes filled automatically in fortress mode, when that position is not even visible. This might be the case if the current holder of a non-appointable position dies or succeeds another position. Regardless of player-visibility, these positions will be automatically filled in if the necessary requisitions are met. It might happen with the expedition-leader.

A situation with a non-visible but available position, is for example when a position is solely appointed by the expedition leader, when the expedition leader's position is left vacant. It can no longer be appointed by the player and is invisible. Then, it gets automatically assumed, proving that the position still was available.

NUMBER[edit]

A position might be defined with a number. In that case, as many as defined can be available. If the positions become available, in world-gen and when embarking, they are all filled-in completely.

If the ruling position (with PRECEDENCE of 1) has a NUMBER higher than 1, a random unit of the ones holding these positions is shown as 'head of state' in the embark screen.

Automatic spreading of assumed, non-singular positions[edit]

If there are civ-positions that have a NUMBER higher then '1' and which are assumed (not APPOINTED_BY or ELECTED) but are not DUTY_BOUND, these are automatically spread among the civilisation, based on population. If there are a number of 20 available slots of that position, they spread among a civilization with a combined population of, for example, 1000 of which your fortress has 100 (10%), 2 of your fortress' citizens will assume that position. This may probably also work with elected and appointed positions, but that may be depending on the death of the current holders and this needs more testing. Assumption works within a day, anyway.

AS_NEEDED[edit]

These positions can be created automatically by the game in world-gen. This, however, only works with

  • [LAND_HOLDER]'s
  • squad commanders (needs more testing)
  • Messengers at sites

For all other types of positions, they're not created in world-gen, even if they are defined with RESPONSIBILITY's. For example, even in war, The game wouldn't create a MILITARY_GOALS position, if they have AS_NEEDED as number.

However, in fortress-mode / player mode, these positions can be created by the player at will.

Positions with AS_NEEDED need to be created first, before any symbols are assignable as 'symbols' (objects) for the position holder to carry or wear.

Positions with AS_NEEDED cannot be created and then ELECTED in fortress-mode. It only works with APPOINTED_BY.

Replacement and Required Population[edit]

The token REPLACED_BY:position means that once the replacing position reaches its required population-number, the 'to-be-replaced' position will disappear. This is defined in REQUIRES_POPULATION. These tags are closely related to eachother and seem to only have a meaningfull function if combined. Nobles with REQUIRES_POPULATION require the population to have a specific size.

This works on civ-level as well as on site-level, but those systems are in this mechanic strictly separated. Site-level positions cannot be replaced by civ-level positions and visa versa. This makes sense, because they both depend on their own population-count. When using REQUIRES_POPULATION on civ-level, it counts the total population of the civilisation.

Effect of replacement[edit]

Replacement is immediate. The current holding unit loses the position, even before succession_by_position-rules are applied.

Replacement is also complete. A position with a number of 1 will replace all the slots of a position with a higher number of slots.

Even if the next position is available but not VISIBLE, replacement still takes place.

If a position is replaced, it is completely gone. It cannot be appointed, succeeded, elected or assumed any longer. The unit immediately looses its position.

In legends, replacement is mentioned as: "(unit name) ceded to be (position name)"

The replacement of an AS_NEEDED position empties the position's slot forever. In fortress-mode, it may seem as if you can create new slots and appoint new units in the nobles-screen, but this is made undone, as soon as you close the window.

Evaluation of replacement and required_population[edit]

The game does not constantly check if positions need to become available or need to be replaced. This is known behaviour with, for example, the mayor. He won't appear automatically if the needed population is reached. The positions need to be "evaluated". It is not known when this will be done without any player interaction. Players can trigger the evaluation-mechanism by (re)assigning any random site position.

LAND_HOLDER replacement[edit]

The landholder-chain uses replacement differently. It does not empty the position completely, but uses it for succession to the next level's position. REPLACE_BY is required to let that system work properly. This also means that the way in which landholders succeed (replace + as_needed) does not work in any other way.

Replacement between LAND_HOLDERS and other site- or civ positions does not work, in any way. Only the vanilla replacement-sequence between levels of LAND_HOLDERs does work. If the token is omitted for land-holders, the land-holder-chain is broken, so replacement is required for the landholder-system to work.

REQUIRES_POPULATION does not work in the landholder-chain.

What does not work[edit]

Attention: If a position cannot be appointed, for example because of 'mutual appointment', it still exists according to replacements mechanics and will replace other positions if so defined. If a certain position(a) will be replaced by the baron's-assistant, which can only be appointed by the land_holder baron, than that position(s) still will be replaced from the start of the game, even if no baron or his assistant is ever present.

A position that is replaced by a somehow not-fillable position, is still replaced. This counts for mutual-appointing positions, replacement by not-yet assigned landholders, replacement by AS_NEEDED - positions, or replacement by not-yet-appointed positions.

Replacement does not work, if the replaced position is a land_holder, even with civ-positions. In that case, LAND_HOLDER's position is not replaced. It does not matter if AS_NEEDED is used or a fixed number and it also does not matter, what type of position the replacER is.

So this only works (correctly) with positions that become available by REQUIRES_POPULATION.

Gaining a position[edit]

There are several ways a unit can gain a position:

  • Appointment: A unit is appointed by another unit or by the player.
  • Election: A unit is elected by and among the members of the entity
  • Assumption: A position is neither elected or appointed: a random unit just simply 'takes' the position
  • Succession: a unit is the valid successor of this position(A), either by its current position(B) or because he is that position(A)-holder's heir.

Available positions will automatically be assigned to a random civ member when a new site/civ is created.

Who can take a position[edit]

  • If so defined, a unit needs to be the right caste and/or class. It does not seem to work with creature types.
  • The unit needs to be a member of that site or its parent civ-government.
  • It needs to be CAN_LEARN or INTELLIGENT (SLOW_LEARNER cannot take positions) or otherwise be able to think.
  • It needs to be an adult.

Appointment[edit]

Positions that have a [APPOINTED_BY:position]-token require that position to exist, to be available and appointed. Any position that is APPOINTED_BY can be appointed if the appointer's position is filled in. For site-positions to be appointed, it is required that the appointer is present at that location.

If the appointing unit is temporary not present or if that position is not filled, positions depending on it cannot be appointed. This is the case with militia captains, when the militia commander is on a mission.

A site-position cannot appoint a civ-position or LAND_HOLDER, in anyway, whatsoever.

Civ-level positions can appoint other civ-level positions and site-level positions can appoint other site-level positions.

In contrary of what it said in the wiki so far, it is tested and confirmed, that civ-level nobles also CAN appoint site-level nobles. They need to be at that site to do so. Landholders can appoint both site-level and civ-level nobles. These systems are therefore not as separate as was assumed.

Mutual appointment cannot take place. If these are the only requisites of the position, then the positions will never appear or get filled. These unfillable positions can be put to good use, for example to replace a position that is no longer needed, without creating a new one.

If a APPOINTED_BY-token refers to a non-existing position's code, it has the effect as if the appointment-token doesn't exist at all.

Automatic appointment in world-gen and on civ-level[edit]

Outside of fortress mode, the game will always attempt to appoint nobles whenever possible, as long as these positions are available, even if they are invisible to the player. It shows this message in legends: "(unit name) has been appointed to the position of (position name)"

In world-gen, all positions become available and are automatically appointed, taking population- and appointment-requirements in consideration.

Positions that are REPLACED_BY are culled and wont be filled.

If a citizen of your fortress holds a civ-position that can appoint another civ-level position, the appointment will happen automatically and without player intervention. It may happen that another citizen of your fortress is appointed by that unit, creating civ-level position holders in your fortress. But it is unknown what is required to force this effect.

Manual appointments by the player in fortress mode[edit]

In fortress mode, the positions that need to be appointed stay empty on embark. and it is for the player to appoint those. A player can appoint a unit to any available position, according to the hereabove mentioned conditions. The player takes the role of the automatic appointment-system. The player has no direct control over elections, successions and replacement. There are some differences in what is possible at world-gen sites and at player-controlled sites.

  • A position that is appointed by a unit present as a fortress citizen, can be appointed, re-appointed or left vacant. This means also by civ-level nobles, living as a citizen in your fortress; not when they are only visiting, like the diplomat.
  • A position that is APPOINTED_BY a unit present as the land_holder of your site, can be appointed, reassigned or left vacant.
  • A position that has SUCCESSION BY_HEIR or BY_POSITION can 'initially' be appointed and also re-appointed or left vacant, but as soon as the nobles screen closes, it can not longer be replaced or left vacant. From then on, the succession-rules determine who gains that position when the current holder loses the position.
  • A position that is ELECTED nor APPOINTED_BY, can always be (re-)appointed by the player. This is the case with the Expedition leader. If it is left vacant however, it cannot be appointed, but will assumed shortly after.
  • A position that is both ELECTED and appointed by, cannot be appointed by the player. In contrary to world-gen sites. It's slot is visible, but it doesn't show the +-sign. This is either by AS_NEEDED as by a fixed number. Even if the position somehow gets filled (re)assignment is never possible
  • A player can appoint a number of units to a position, as much as the NUMBER-token dictates. If it is AS_NEEDED, the player may create as many slots as they like, also in contrary of world-gen-sites.
  • A civ-position can never be appointed, even if the appointing civ noble is a citizen of your fortress. A civ position also never can be re-assigned or left vacant, would that position be defined as appointed by a site-position.

Election[edit]

Read more in Elections

The message that is shown is: "(creature name) has been elected to the position of (position name)"

In worldgen, there is no functional difference between ELECTED and non-appointment, except that elected nobles tend to have high social skills and/or skills related to the position, while non-elected ones are assigned randomly.

An election goes before succession.

A position that is also APPOINTED_BY gets never elected. Even if the position somehow gets filled, (re)-elections wont happen. So, it doesn't seem possible to have a elected position become available from a certain land_holder's level.

A ELECTED civ-(or LAND_HOLDER)-position at your site will never be (re)-elected in fortress-mode. So real (re-)election only works with SITE-positions.

When a settlement gets up a level in the LANDHOLDER-track, an election is happening, in which the current electable positions undergo a new election-round.

Assumption[edit]

A position that is not APPOINTED_BY nor ELECTED, or is appointed by positions that are not available in your site or civ, it will be assumable by a random dwarf. If it has responsibilities that require certain skills, then these are taken into consideration.[Verify]

The message that is shown in Legends-mode, is: "(unit name) has assumed the position of (position name)". This make also take place in fortress mode, which then shows this message to the player.

If a assumable position becomes empty, it will be assumed within a day. This is the case when you leave the position of expedition-leader vacant. It also happens with civ-entities.

Assumable positions that have become empty will not be assumed if that position has a valid SUCCESSION -successor. In that case, the successor inherits the position.

Even positions that are somehow invisible because they cannot be directly APPOINTED_BY players, can be assumed.

When you embark, the assumable positions are automatically assigned to a random unit. If there are multiple of these positions at embark, they all are assigned to the same unit. However, if these positions have a [ACCEPTED_CLASS] or [REJECTED_CLASS] - token, a fitting dwarf is appointed for each of these positions. Using the ACCEPTED or REJECTED-tokens, you can make sure that initial positions are evenly distributed at embark, and that not only one dwarf has all of the titles.

If a dwarf in fortress-mode assumes a position, that has already another position, it will leave the current position empty. When that position also is assumed, then this will continue until all positions have a dwarf appointed to it, with no other position.

A position that has an appointer, which got replaced because of REPLACED_BY, will not become assumable. Also positions that have a AS_NEEDED appointer that is not yet filled (or ever), will also not be assumed.

Succession[edit]

If a position-holder dies or advances to a new position via succession, the position will be granted to another unit based on the SUCCESSION tag. If they have an heir or the succeeding position exists, that unit will be assigned. If not, a new one will be appointed according to the usual rules. De succeeding dwarf will also lose its previous position. The message that is shown, is: "(creature name) being the rightful heir, has inherited the position of (position name)"

Succession works both at site-level as at civ-level, both in world-gen and in fortress-mode. Succession by position on Civ-level is also visible and functional in fortress-mode. If both civ-level nobles are a citizen of your fortress, succession is applied visually.

Vanilla example: The druid is succeeded by the acolyte. This means that as soon as the druid dies, the acolyte takes over.

When a position that is succeeded by position becomes available, immediately it is checked if a position-successor is available and the position is filled with that unit.

It is possible to assign multiple levels of SUCCESSION:BY_POSITION, creating a line of positions where the death of one causes all those "below" them to advance.

A position can have multiple tokens with position-succession. It seems to be random which one is used. Its is not always:

  • The first or last defined token
  • The first or last appointed unit

Not yet tested:

  • Age, unit-id or other possible variables
  • The precedence of the succeeding-position

When a position is defined with a Succession-type, that unit cannot have another position that has a Squad-type. If the succession-position itself has a squad, than it can be assigned another position with a squad, but then it will loose the previous succesion-one. See further details by "Squad"

Assumed positions can also be succeeded by position, if the current holder dies.

If the successor is an AS_NEEDED position, the used unit will leave a vacant position-slot on its removal by succession. This empty slot remains a real slot, which will only be cleaned up, if you (un)appoint a unit to this position-series. It isn't cleaned up after regular position-validation.

A Civ-level position of a unit living at your site might be inherited by a unit holding that does not currently live at your site. This, unfortunately, moves your civ-noble off site. This may also happen with the land-holder of your site, for example when it is succeeded by another civ-level position. Its needs further testing, if the landholder somehow can be called back.

SITE and civ-combined succession[edit]

Succession can work when combining site positions with civ-level positions or land_holders, but only in world-gen mode. In fortress-mode, it cannot be combined. There it only works with combining the same level of nobles, with Landholders regarded as civ-level.

So, in fortress mode, a site's position cannot succeed a landholder's position and it cannot succeed another type of civ-level position, and vice versa. This wont work even if the positions:

  • are AS_NEEDED or having a fixed number.
  • Are LAND_HOLDER

Succession BY_HEIR[edit]

When a heir is needed for succession, all children and then other relatives are validated. They cannot take the position if their status does not allow the position. For example if they have become the member of another civilisation. See: "Who can take a position". If the unit has no valid heir on that location, the position may go to a unit living on another site. This may cause the title of Landholder of some land to be inherited by a unit living somewhere else. That might be a problem, because then you lose your landholders.

Premature Succession[edit]

There are some cases where SUCCESSION:BY_POSITION is applied too early: immediately when a position initially becomes available. It is filled in by the succession-mechanism, without player interference. This is probably a bug, but it can be exploited to create some interesting structures. When a position first becomes available, the game will check whether there is a valid successor-by-position. Then this unit is immediately assigned for this new position. If this happens in Fortress mode with a position that can also be appointed by a unit present, succession is activated before the player has a chance to appoint a holder. Using premature succession, a ELECTED + APPOINTED_BY position can be filled, but assignment or elections wont happen. It seems to have no other benefits.

This only applies to Fortress mode, not in world-gen, but can be used with both site and civ-level nobles.

This applies to:

  • The successable position is created, because the REQUIRES_POPULATION is reached
  • The successable position can be APPOINTED_BY another position of the same level (site/civ), that has just been created because that ones REQUIRES_POPULATION was reached.
  • The successable position can be appointed by another SITE - AS_NEEDED-position, that has just been created and filled.
  • The successable (site/civ) position is APPOINTED_BY the LAND_HOLDER-position, that has just been created because your site's level is elevated. It happens when the diplomat leaves the area. Presumably because landholders are also AS_NEEDED.

It is not applied when:

  • An AS_NEEDED successable position-slot is just created by the player, that has a filled succeeding position. (AS_NEEDED- positions always need to be appointed after they are created)
  • The successing position is filled after the successable position becomes available. Then its too late.
  • The position can be appointed by another position(site/civ) with a fixed number, that is just appointed.
  • Anything world-gen
  • The succeeding position is REPLACED_BY the succesable position. In that case, the unit is first removed from the position by the replacement, before the succession-mechanism had the chance to use that unit.

What does not work[edit]

  • A circular succession-loop let the game crash.
  • Succession plays no role during elections. Elections have priority

Losing a position[edit]

A unit can lose a position, when

  • It dies
  • It succeeds another position
  • It is assigned to another SQUAD-holding position
  • It commits a crime and is convicted.
  • Another unit is ELECTED for the position
  • Its position becomes replaced
  • Another unit is appointed by the player, or the position is left vacant.
  • It has assumed a civ-level-position, as this always leaves the previous position vacant.

Embarkment[edit]

Two types of positions are automaticly filled by embark.

  • Positions without appointed_by or elected (assumable). All these positions, even with a NUMBER higher than 1, are all filled with the same, single, random dwarf.
  • * A exception to this rule is when these positions have a REJECTED_CLASS-token or a ACCEPTED_CLASS-token. These positions are distributed evenly, considering the given creature class.
  • Positions that are elected are filled-in by the normal election rules.

Positions that have a defined appointer are never initially filled at embark.

Land Holders[edit]

A Land-holder is a special civ-level noble who gets a certain piece of land to hold, when that land gains a certain level. This is determined by the tag LAND_HOLDER and by the landholder triggers in the game's settings. In vanilla, these are the baron, the count and the duke.

Functioning of the regular landholder-chain[edit]

The distinct difference between an landholder and a regular civ-level noble, is that a landholder may gain the position of landholder "of (sitename)" They are then seen as ruler of a particular site.

For a land_holders position to function as so, it has a few requirements:

  • NUMBER:AS_NEEDED
  • The first landholder-number of 1 is defined.
  • No SITE (so civ) tag in that position.
  • Replaced_by the next level landholder

If a land-holder is defined with differentiating properties, it will function like a regular noble. A higher-up landholder that lacks the required tokens or connections will then not be used in elevation.

If a fortress meets the trigger for a new LAND_HOLDER tier when a caravan leaves, then the next time the outpost liaison or equivalent arrives, they will offer to make you an official colony, which will allow you to select all positions for that LAND_HOLDER level. Each time they appear, the outpost liaison will only promote your fortress one tier up the LAND_HOLDER track.

The landholders LAND_NAME is not required for the functioning of this system. If omitted, messages will be shown with a more generic text.

Appointment[edit]

This mechanism differs from the regular methods of position management. It ignores all regular appointment- and election rules, so it more or less functions like automatic assingment. A landholder is in vanilla appointed by the monarch. Changing this doesn't seem to do anything. If he is appointed by a site-position, a not-yet-existing civ-position, or not appointed at all: the system keeps working regularly.

A landholder can appoint civ-positions and site positions. This works as expected: the positions only are appointed then when that landholder becomes available on civ-level or when he arrives at that site for site-level positions.

If your rank of landholder is the first of its rank in the realm, and is the sole appointer of some civ-position, then immediately as it gains the title, it will appoint the empty civ-slots. This may happen on your site, but the frequency and certainty is hard to determine.

Succession[edit]

Succession-rules are applied to some extend:

  • In world-gen it does work according to succession rules, and site-positions can be used here. This means that a site-position or a civ-position can inherit a landholders-positon and vice versa.
  • In fortress-mode, once a landholder has been appointed, it then can inherit civ-level positions, and vica versa. This means that your baron can become king.
  • Succession-rules do not apply within the land-holder chain; a count will not inherit a baron's land. This is because succession does not work well with the AS_NEEDED token.
  • Premature succession works in fortress mode with landholders. If a unit gets a landholdersposition and that landholder is the appointer of an yet-empty position, which is defined as succeeding from a third one, then the succession is immediately applied. The landholder himself can even be the successor of a newly created position.
  • A landholder's position is, in fortress mode, not successable by a site-position or visa versa

Nomination[edit]

The player is able to nominate a unit to become the land_holder. This only works with level 1. The player can select all units, only limited by the PRECEDENCE of the current units positions.

A unit that has a position with a PRECEDENCE lower or equal as that of the landholders-position, cannot be selected. This means that a baron (or count) from another site or the monarch or cannot be selected, because their precenence is lower or equal.

The token GENDER does not work here: also units with the wrong gender (sorry) can be selected.

Levels[edit]

In mods, up to 10 levels of land_holder may be defined.

If a landholder is replaced by a wrong landholder number (1 replaced by 3), then the number 3 is still correctly attached to the settlement.

If the current landholder has the highest available landholder number, then the next elevation will not happen. The diplomat will not elevate your fortress to a higher position. Even if that position might be REPLACED_BY a lower landholder.

These chains do work:

  • 1 -> 2a - > 2b -> 3
  • 1 -> 3 -> 2 -> 4

These chains do not work:

  • 2 -> 3 (need to start at 1)
  • 1 -> 4 -> 2 -> 3 (stops after 4 as the highest)

Moving landholders[edit]

It may happen that a land-holder no longer lives at the site of which he is the landholder of. This happens when the current landholder dies, leaving the title to an heir living somewhere else.

To prevent this from happening, you can make his succession from heir and make sure that his kids live at your site. Or, you can make his position succeeded by another civ-position, and make it so that this civ-position is somehow available on your site. But if multiple of these positions exist, it cannot be guaranteed that a citizen of your fortress will inherit the title.

In world-gen, a landholder lacking the DUTY_BOUND-token will also move to the site he likes, according to legends mode.

Replacement by a generic civ-position[edit]

If a landholder is replaced by a AS_NEEDED non-landholder civ-position, then this will work: the current landholder loses that title upon settlement-elevation and gains that civ-title. However, the civ-title lacks the landholder-property of being attached to the land. It wil not show the name of the settlement alongside the position's name. So no "minister of Shovelmounts"

If a landholder is replaced by a general AS_NEEDED civ-position, that itself is also replaced by a generic AS_NEEDED civ-position, then firstly the elevation is executed and also the unit gains that new position. However, he immideatly looses it. Because a AS_NEEDED position that is replaced by another position can be filled initially, but units wont be able to hold that title.

Landholder with fixed number[edit]

A Landholders position that has a fixed number will be created and filled directly when the civilisation is born. So this position slot is then not available for the regular landholder-mechanic and will also not be used. That landholder will thus not be attached to a settlement.

It doesn't matter if the landholders position is connected to the regular landholder's-chain by the REPLACE_BY-token.

Responsibilities[edit]

When given a certain RESPONSIBILITY, a landholder may function as regular civ-level nobles. If the position has responsibility TRADE or OUTPOST_NEGOTIATING, then the landholder functions both as diplomat and as actual land holder. A landholder with the MILITARY_STRATEGY responsibility will travel around taming creatures in world-gen, according to legends-mode.

Besides that, the responsibilities work the same as with any other at your site living position-holder, civ or otherwise.

Army-stuff[edit]

Squad assignment[edit]

Squads can be assigned, even if the leader position has no holder. This seems to be the case if the number is fixed (1) or if the position is assigned by a non-military position.

A specific unit can only have one position associated with a squad. If it gains another 'squad holding position', it is unassigned of the first one. This does not work with a 0-squad, so only 1+squads are taken into consideration; so this technique can possibly be used to distribute all positions equally among all citizens. It does however not work with election and assumption.

If a civ-level position is associated with a squad and it gets a site-level squad-holding position assigned, it loses the current civ-position.

Squads can get really messed up, if you make the position (or multiple) either elected or not-elected and not-appointed, then this can cause the game to assign multiple squads to the same unit. Automatic assignment and election does not take squads in account, but the nobles-screen does. This can cause the positions to be cleared as the game figures out that they have more than one position, and immidiatly get elected or assumed again.

Positions that cannot have a squad-position:

  • A site- or civ-position with a defined successor cannot be appointed a squad-holding-position.
  • The other way around however does work. If a site-position with a successor is appointed to a unit that has already a squad-holding position, it does work. But when that squad position is assigned to another unit, it cannot be assigned back.
  • A squad-holding position with a formed squad cannot be appointed to another squad holding position.

If a position had some squad-members, it cannot be left vacant. First, the squad has to be disbanded, then the position may be cleared.

Further testing[edit]

The following questions may need additional testing. Feel free to add or answer

  • Everything regarding COMMANDING and army-structure
  • Everything regarding CONQUERED_SITE, but it is presumably just like site. But what if you combine SITE or LAND_HOLDER with it?
  • What are the exact requirements for a position to function as militia commander, so that squads can be created? I've not figured out this exactly.
  • Stuff about the monarch, its arrival and its entourage.
  • It seems that the monarch cannot be appointed manager. Why exactly? Precedence?
  • can replaced positions be recreated?