WoC doesn't work with Modular Leaders.

Afforess

The White Wizard
Joined
Jul 31, 2007
Messages
12,239
Location
Austin, Texas
Say I want to edit an existing leader, in WoC format. I just want to edit the memory decays. So, it should look like this, correct?

Code:
<LeaderHeadInfo>
            <Type>LEADER_HTN</Type>
            <AndDependencyTypes>
                <DependencyType>LEADER_HTN</DependencyType>
            </AndDependencyTypes>
            <MemoryDecays>
                <MemoryDecay>
                    <MemoryType>MEMORY_GIVE_HELP</MemoryType>
                    <iMemoryRand>30</iMemoryRand>
                </MemoryDecay>
            </MemoryDecays>
</LeaderHeadInfo>

It works... but it doesn't. Sure, the memory decay gets changed just fine. But the Audio for the leader's diplomacy, get's reset to the Chinese Unification theme. I figured this was a problem in the CopyNonDefaults and the SDK, but as far as I could tell, it's set up properly. Any idea why this is occurring?

The only fix I've been told is to include the audio defines for the leader's diplomacy in the leaderheadinfo too, but that's a red flag to me that the CopyNonDefaults aren't working then.
 
Top Bottom