I have encountered an interesting issue while coding lords. I'm not sure if its a bug or not but it definitely worth raising to your attention.
If i have the code set up like this so that the spouse is dead, it causes the game to create new heroes (I know it sounds weird but it happens).
(The last three Heroes in the pictures have been added by the game
And this causes a reflection error as it for some reason tries to re add the heroes. If I remove the
part from the code the error stops affecting the game. I don't know if this is something that you guys are aware of or if its something that needs fixing either way I'm making sure your aware of it.
XML:
<Heroes>
<Hero id="lord_ala_sac_2_1" is_noble="true" spouse="Hero.lord_ala_sac_2_2" faction="Faction.clan_ala_sac" />
<Hero id="lord_ala_sac_2_2" is_noble="true" alive="false" spouse="Hero.lord_ala_sac_2_1" faction="Faction.clan_ala_sac" />
<Hero id="lord_ala_sac_2_3" is_noble="true" father="Hero.lord_ala_sac_2_1" mother="Hero.lord_ala_sac_2_2" faction="Faction.clan_ala_sac" />
</Heroes>
(The last three Heroes in the pictures have been added by the game
XML:
Alive="false"