Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: [DFHack] Find historical figures (anyone!)  (Read 2132 times)

Sulter

  • Escaped Lunatic
    • View Profile
[DFHack] Find historical figures (anyone!)
« on: January 07, 2020, 01:57:28 pm »

Having trouble finding a specific person? The beast you want to slay isn't in its lair, and you can't find it? Where did the king go?!
I've made a script, which will locate historical figures.
Historical Figures is any creature with a name: https://dwarffortresswiki.org/index.php/DF2014:Historical_figure

Code: https://gist.github.com/Sulter/b4f24de0a7d4de845e8de23ff0fdec05

You can input a historical figure name (or part of name, in either translated or native language). And it will print out its position, together with your own.
This is whatever the historical figure is traveling the world, spawned in a site, or in a site but not spawned yet. If the historical figure is inside the same site as you (like in a town, fortress, lair etc.), it will tell you its local site coordinates (as well as your own).
The script is obviously most useful in adv-mode.

Examples:





« Last Edit: January 07, 2020, 02:02:08 pm by Sulter »
Logged