peterix/dfhack — pull request #140 by rh73 (2012-03-20 10:27:14+00:00)
Title: vampcheck - plugin which detects cursed creatures (vampires)

Vampcheck is a non-interactive plugin which checks for creatures who have been cursed:

If a cursor is active only the selected tile will be checked, otherwise the whole map.
By default vampires will only be counted without detailed output to make it more interesting.

Options:
detail - output full name, year of birth, year of curse and if creature is alive or deceased
nick - try to change the nickname to CURSE

The name and year of birth shown ingame might be fake, vamps like fake identities. Nicknames will not always show up properly ingame. In these cases the only 100% reliable method to check ingame if one specific dwarf is the vampire you are looking for is to put a cursor on the tile he is standing on.

Tested with dwarf vampires in fortress mode. Didn´t find any vampires in adventure mode so far, so I have no clue if the plugin will work there, too. Well, at least it doesn´t crash, so I do not check for game modes. I also don´t check exclusively for dwarves of the own civilization so in theory the plugin might work for other races as well as other types of curses (in case Toady adds more curses besides vampirism).

--
This being the first plugin I wrote for dfhack (and the first time using git, too) it may well be possible that I did something wrong. In that case some feedback would be great.