DFHack / dfhack

Memory hacking library for Dwarf Fortress and a set of tools that use it
Other
1.88k stars 476 forks source link

Additional filters/sorting criteria for creature/dwarf selection #4150

Open ong-yinggao98 opened 10 months ago

ong-yinggao98 commented 10 months ago

Additional filters and sorting criteria could be useful additions to various dwarf selection screens, such as:

myk002 commented 10 months ago
  • Filter for peasants (or any player-chosen profession) for the military recruitment panel

Is this not possible via the search function? If you search for "Peasant", won't only peasants be listed?

  • Sorting by (and displaying) social skills for captain of the guard and baron selection

That might be possible for the captain of the guard, but are social skills useful for that position? The "elevate to baron" screen was recently extended to show item preferences, which most players seem to care about more than social skills for that position. I'm not sure if there's room for two annotations in that list.

  • Sorting by appraiser for broker (these tend to get swamped by social skills)

Searching for "appraisal" (not the spelling) will show units with just the appraisal skill. It isn't sorted, though, and I agree that that would be a useful change

  • Filter for dwarves without craftable preferences for baron selection

This is already done -- try the latest beta

ong-yinggao98 commented 10 months ago

That might be possible for the captain of the guard, but are social skills useful for that position? The "elevate to baron" screen was recently extended to show item preferences, which most players seem to care about more than social skills for that position. I'm not sure if there's room for two annotations in that list.

Captain of the guard uses social skills to interrogate at least according to the wiki.

Is this not possible via the search function? If you search for "Peasant", won't only peasants be listed?

Searching for "appraisal" (not the spelling) will show units with just the appraisal skill. It isn't sorted, though, and I agree that that would be a useful change

Ah, silly me, I thought the search bar would just be for names. Does search just scan the list entries for those that contain the strings? If so, is that behaviour documented somewhere I missed?

This is already done -- try the latest beta

Got it, thanks!

myk002 commented 10 months ago

The docs currently say "You can search for a dwarf by name by typing in the Search field." so either I'm wrong or the docs need updating on that point.

We generally don't have access to the exact string being displayed, but we do synthesize something similar to search

myk002 commented 10 months ago

ok, docs need updating: image

ong-yinggao98 commented 10 months ago

For clarity to "new" users, might I also recommend either