I have added this to the Eternal Suggestions board
here: as
Create XML dump of LegendsThis express goal of the voting is:
To allow the player to create a filedump of all/known legends in a single parsed file that could be either read raw or a mod written to parse the information for.
Ideally, the format would be extremely similar to what DF uses already, with a preface of message texts (I.E. the long data, so the parser could construct the messages as they are loaded).
Something like :
<eventtypes>
<eventtype no=23423>In YEAR, TARGET1 became a LISTJOBSVAR</eventtype
<events>
<lists>
<list = jobs>
<job>Butcher</job>
<job>Baker</job>
<job>Candlestickmaker</job>
</list>
</lists>
<event no=345434><year = 1220></year><target no=1>234234</target><eventtype no=23423 var=3></eventtype></event>
</events>
<units>
<unit no= 234234> <Name>Urist</name></unit>
</units>
and the parser would read event number 345434 and output "In 1220, Urist became a Candlestickmaker"
A good parser would be able to search for all instances of a number in all tags, or just target tags, or whatever.
Yes, I know the example is crap, but it's the concept that's important. Just close your eyes and imagine a program that creates simple HTML files for you to click through your legends at ease.