Thanks Drayath, 6th version of your script works for me and displays stuff in the dfhack console. This is just something from a new fort, testing shotguns that fire 8 pellets at once by material emissions:
http://www.bay12forums.com/smf/index.php?topic=118893.msg4218316#msg4218316 [DFHack]# ShowUnitSyndromes
Dwarves
wheat seedplot
- Shotgun battle saddle [196 of 300]
- - Add interaction [0-300] ability=Reload shotguns, delay=600, actionType=TODO, range=TODO, maxTargets=TODO
- Shotgun battle saddle [46 of 300]
- - Add interaction [0-300] ability=Reload shotguns, delay=600, actionType=TODO, range=TODO, maxTargets=TODO
blaze blotbud
- Shotgun battle saddle [196 of 300]
- - Add interaction [0-300] ability=Reload shotguns, delay=600, actionType=TODO, range=TODO, maxTargets=TODO
- Shotgun battle saddle [46 of 300]
- - Add interaction [0-300] ability=Reload shotguns, delay=600, actionType=TODO, range=TODO, maxTargets=TODO
EDIT: v6 works once, then spits a bunch of errors when I run it again. There isn't even anything in line 43 that could cause an error.
[DFHack]# ShowUnitSyndromes
E: Errno::ENOSPC: ./hack/scripts/ShowUnitSyndromes.rb:43:in `write': No space left on device
./hack/scripts/ShowUnitSyndromes.rb:43
./hack/scripts/ShowUnitSyndromes.rb:43
(eval):2:in `load'
(eval):2
(eval):2:in `catch'
(eval):2
I also have a feature request: Give me an option to print just one dwarf, filtered by name "ShowUnitSyndromes -u Urist" or something similar. Yes, I can generate a html, then reload it, then search in that, but it would be really convenient to have that info in the dfhack console, frame by frame.