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 "DF2014 Talk:Noble"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(Creating page - requested by 94.11.137.110 (talk | contribs))
 
 
(10 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<!-- DELETE THIS LINE -->{{newpage|type=cp|94.11.137.110}}
+
== Diplomat ==
 +
 
 +
I managed to have a citizen appointed as a diplomat in a vanilla game, however, I did do quite a bit of dwarfery before it happened [http://www.bay12forums.com/smf/index.php?board=11.0 Forum Post], [http://dffd.bay12games.com/file.php?id=12728 Save Game 0.43.05]
 +
 
 +
== King on embark ==
 +
 
 +
I noticed (in v40.02) that one of the seven embark dwarves had the title "king" (with all of the demands associated). More research into the conditions of becoming mountainhome (and obtaining nobles) seems required. --[[User:MathFox|MathFox]] ([[User talk:MathFox|talk]]) 18:44, 11 July 2014 (UTC)
 +
* There have been reports of that happening if your civilization has no king (or is entirely extinct).  If you have no monarch, and no heir, then ''someone'' gets chosen as the new king.  The exact means by which this choice is made may need investigation, but it can definitely be one of your starting seven if the conditions are right. --[[User:Greycat|Greycat]] ([[User talk:Greycat|talk]]) 19:03, 11 July 2014 (UTC)
 +
 
 +
== Monarch Population requirement ==
 +
In d_init.txt, it says "Keep in mind that your population must be at least 80 to get a king". The current article says that a monarch requires 140 population. Which is it?
 +
 
 +
== Human and goblin nobles ==
 +
 
 +
Human and goblin nobles aren't in raw. Add human and goblin nobles to wiki. --[[Special:Contributions/93.77.222.197|93.77.222.197]] 13:19, 25 March 2019 (UTC)
 +
 
 +
== Foreign units being elected to non-fort positions? ==
 +
 
 +
I've had it happen a few times where the game would pause and give me an election announcement, but the unit and position aren't a part of my fort.
 +
 
 +
I'm like, assuming that this is related to either religions (like your dwarves voting for some religious figure that isn't a part of your fort), or to agents (where someone in your fort has an allegiance somewhere else), but it wasn't noted in the wiki. Should it maybe be a part of this article? Or does it need way more research before we should add it to the wiki, I can only really guess at the cause so I'm not sure if that's reliable enough to bother adding until we know more about it.
 +
 
 +
== Fixing a forced administrator - for dummies (meaning me :P) ==
 +
 
 +
Big thanks to HawkslayerHawkslayer from reddit for the guide, but I struggled with it, so I made my own interpretation. This might make even less sense to others, but I'll put it here so I don't lose it.
 +
 
 +
 
 +
'''Select your administrator with (v), or (z) from the units screen.'''
 +
 
 +
 
 +
'''In DFhack, type lua.'''
 +
 
 +
 
 +
=====This is a function that prints the stuff in the table. Copy this into lua.=====
 +
 
 +
 
 +
function desc( thing )
 +
 
 +
for key, value in pairs(thing) do
 +
 
 +
print('\t', key, value)
 +
 
 +
end
 +
 
 +
end
 +
 
 +
 
 +
=====Shows unit's position and other stuff, so you can verify you have the right person.=====
 +
 
 +
desc(dfhack.units.getNoblePositions(unit)[1].position)
 +
 
 +
 
 +
======Shows what unit's noble position can do======
 +
 
 +
desc(dfhack.units.getNoblePositions(unit)[1].position.responsibilities)
 +
 
 +
 
 +
======Enables responsibilities======
 +
 
 +
dfhack.units.getNoblePositions(unit)[1].position.responsibilities[#] = true
 +
 
 +
 
 +
'''Job #'s - can be viewed (but not changed) at gui/gm-editor under meeting'''
 +
 
 +
manage_production [4] (manager's job)
 +
 
 +
trade [5] (broker)
 +
 
 +
accounting [6] (bookkeeper)
 +
 
 +
military_goals [18] (enables missions)
 +
 
 +
military_strategy [19] (militia commander)
 +
 
 +
health_management [24] (chief medical dwarf)
 +
 
 +
 
 +
======Type these three to enable a squad for your administrator.======
 +
 
 +
dfhack.units.getNoblePositions(unit)[1].position.squad_size = 10
 +
 
 +
dfhack.units.getNoblePositions(unit)[1].position.squad[0]="soldier"
 +
 
 +
dfhack.units.getNoblePositions(unit)[1].position.squad[1]="soldiers"
 +
 
 +
 
 +
=====Since you're using DFhack anyway, you might want to use make-monarch to bring in another noble to manage tasks when your administrator is out on missions.=====
 +
Note that your new ruler will likely leave the fortress if you retire it.
 +
 
 +
 
 +
=====Does.. something. Did not really use.=====
 +
 
 +
for index, data in pairs(dfhack.units.getNoblePositions(unit)) do
 +
 
 +
print(index)
 +
 
 +
desc(data)
 +
 
 +
end
 +
 
 +
 
 +
====THINGS THAT I TRIED, BUT DO NOT WORK====
 +
 
 +
======Enable your administrator to assign nobles======
 +
 
 +
load a fort with the job you need, might need to be from the same civ
 +
 
 +
select the unit with the job you want
 +
 
 +
paste the function desc listed earlier to re-enable it
 +
 
 +
do the stuff below
 +
 
 +
 
 +
======Lists the positions that can assign the selected unit's job======
 +
 
 +
desc(dfhack.units.getNoblePositions(unit)[1].position.appointed_by)
 +
 
 +
 
 +
======Edits the positions that can assign the selected unit's job======
 +
 
 +
dfhack.units.getNoblePositions(unit)[1].position.appointed_by[0] = #
 +
 
 +
 
 +
'''Code id #'s (can be viewed under other stuff as listed earlier''')
 +
 
 +
expedition leader [8]
 +
 
 +
mayor [9]
 +
 
 +
militia commander [4]
 +
 
 +
forced administrator [21]
 +
 
 +
 
 +
======Sets your administrator to be replaced by a mayor?======
 +
 
 +
dfhack.units.getNoblePositions(unit)[1].position.replaced_by = 9
 +
 
 +
 
 +
I waited a year for an election... the administrator re-elected himself as administrator.

Latest revision as of 14:49, 15 June 2023

Diplomat[edit]

I managed to have a citizen appointed as a diplomat in a vanilla game, however, I did do quite a bit of dwarfery before it happened Forum Post, Save Game 0.43.05

King on embark[edit]

I noticed (in v40.02) that one of the seven embark dwarves had the title "king" (with all of the demands associated). More research into the conditions of becoming mountainhome (and obtaining nobles) seems required. --MathFox (talk) 18:44, 11 July 2014 (UTC)

  • There have been reports of that happening if your civilization has no king (or is entirely extinct). If you have no monarch, and no heir, then someone gets chosen as the new king. The exact means by which this choice is made may need investigation, but it can definitely be one of your starting seven if the conditions are right. --Greycat (talk) 19:03, 11 July 2014 (UTC)

Monarch Population requirement[edit]

In d_init.txt, it says "Keep in mind that your population must be at least 80 to get a king". The current article says that a monarch requires 140 population. Which is it?

Human and goblin nobles[edit]

Human and goblin nobles aren't in raw. Add human and goblin nobles to wiki. --93.77.222.197 13:19, 25 March 2019 (UTC)

Foreign units being elected to non-fort positions?[edit]

I've had it happen a few times where the game would pause and give me an election announcement, but the unit and position aren't a part of my fort.

I'm like, assuming that this is related to either religions (like your dwarves voting for some religious figure that isn't a part of your fort), or to agents (where someone in your fort has an allegiance somewhere else), but it wasn't noted in the wiki. Should it maybe be a part of this article? Or does it need way more research before we should add it to the wiki, I can only really guess at the cause so I'm not sure if that's reliable enough to bother adding until we know more about it.

Fixing a forced administrator - for dummies (meaning me :P)[edit]

Big thanks to HawkslayerHawkslayer from reddit for the guide, but I struggled with it, so I made my own interpretation. This might make even less sense to others, but I'll put it here so I don't lose it.


Select your administrator with (v), or (z) from the units screen.


In DFhack, type lua.


This is a function that prints the stuff in the table. Copy this into lua.[edit]

function desc( thing )

for key, value in pairs(thing) do

print('\t', key, value)

end

end


Shows unit's position and other stuff, so you can verify you have the right person.[edit]

desc(dfhack.units.getNoblePositions(unit)[1].position)


Shows what unit's noble position can do[edit]

desc(dfhack.units.getNoblePositions(unit)[1].position.responsibilities)


Enables responsibilities[edit]

dfhack.units.getNoblePositions(unit)[1].position.responsibilities[#] = true


Job #'s - can be viewed (but not changed) at gui/gm-editor under meeting

manage_production [4] (manager's job)

trade [5] (broker)

accounting [6] (bookkeeper)

military_goals [18] (enables missions)

military_strategy [19] (militia commander)

health_management [24] (chief medical dwarf)


Type these three to enable a squad for your administrator.[edit]

dfhack.units.getNoblePositions(unit)[1].position.squad_size = 10

dfhack.units.getNoblePositions(unit)[1].position.squad[0]="soldier"

dfhack.units.getNoblePositions(unit)[1].position.squad[1]="soldiers"


Since you're using DFhack anyway, you might want to use make-monarch to bring in another noble to manage tasks when your administrator is out on missions.[edit]

Note that your new ruler will likely leave the fortress if you retire it.


Does.. something. Did not really use.[edit]

for index, data in pairs(dfhack.units.getNoblePositions(unit)) do

print(index)

desc(data)

end


THINGS THAT I TRIED, BUT DO NOT WORK[edit]

Enable your administrator to assign nobles[edit]

load a fort with the job you need, might need to be from the same civ

select the unit with the job you want

paste the function desc listed earlier to re-enable it

do the stuff below


Lists the positions that can assign the selected unit's job[edit]

desc(dfhack.units.getNoblePositions(unit)[1].position.appointed_by)


Edits the positions that can assign the selected unit's job[edit]

dfhack.units.getNoblePositions(unit)[1].position.appointed_by[0] = #


Code id #'s (can be viewed under other stuff as listed earlier)

expedition leader [8]

mayor [9]

militia commander [4]

forced administrator [21]


Sets your administrator to be replaced by a mayor?[edit]

dfhack.units.getNoblePositions(unit)[1].position.replaced_by = 9


I waited a year for an election... the administrator re-elected himself as administrator.