diff --git a/scripts/exportlegends.lua b/scripts/exportlegends.lua
index 19664402b..16e4ac286 100644
--- a/scripts/exportlegends.lua
+++ b/scripts/exportlegends.lua
@@ -241,6 +241,20 @@ function export_more_legends_xml()
end
file:write("\t\t\n")
end
+ for positionK,positionV in pairs(entityV.positions.own) do
+ file:write("\t\t\n")
+ file:write("\t\t\t"..positionV.id.."\n")
+ if positionV.name[0] ~= "" then file:write("\t\t\t"..positionV.name[0].."\n") end
+ if positionV.name_male[0] ~= "" then file:write("\t\t\t"..positionV.name_male[0].."\n") end
+ if positionV.name_female[0] ~= "" then file:write("\t\t\t"..positionV.name_female[0].."\n") end
+ if positionV.spouse[0] ~= "" then file:write("\t\t\t"..positionV.spouse[0].."\n") end
+ if positionV.spouse_male[0] ~= "" then file:write("\t\t\t"..positionV.spouse_male[0].."\n") end
+ if positionV.spouse_female[0] ~= "" then file:write("\t\t\t"..positionV.spouse_female[0].."\n") end
+ file:write("\t\t\n")
+ end
+ for idx,id in pairs(entityV.histfig_ids) do
+ file:write("\t\t"..id.."\n")
+ end
for id, link in ipairs(entityV.children) do
file:write("\t\t"..link.."\n")
end