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.

Editing DF2014 Talk:Noble

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.

You are editing a page for an older version of Dwarf Fortress ("Main" is the current version, not "DF2014"). Please make sure you intend to do this. If you are here by mistake, see the current page instead.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 10: Line 10:
 
== Monarch Population requirement ==
 
== 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?
 
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.
 

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Please sign comments with ~~~~

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)