Page 1 of 1

Code for Space Retreat

Posted: Tue Jan 31, 2006 7:40 pm
by ImperialDroid
Ok I’m not going to argue who should get the credit its up to you. This should be credit-less because it was there in the game in the fist place it was only disabled in the demo by a header. To “Enable Sandbox Events” is responsible for space retreat. All code is in that xml

What you need to is go to this default root directory folder

C:\Program Files\LucasArts\Star Wars Empire at War Demo\GameData\Data\Xml\Ai\Players

And in Sandboxhumanplayer.xml your code should look like this:

<?xml version="1.0" ?>
<AIPlayerType>

<Name>SandboxHuman</Name>

<Personality>
<Focus> 0 </Focus>
<Aggressiveness> 0 </Aggressiveness>
</Personality>

<GoalSetExtensionSize>1</GoalSetExtensionSize>

<GoalProposalFunctionSets>
InterventionsGoalSet
</GoalProposalFunctionSets>
<Templates>
<Space>
All_Interventions_Template
Enable_Sandbox_Events_Template
</Space>
<Land>
All_Interventions_Template
Enable_Sandbox_Events_Template
</Land>
<Galactic>
All_Interventions_Template
Enable_Sandbox_Events_Template
</Galactic>
</Templates>

</AIPlayerType>

Posted: Tue Jan 31, 2006 8:20 pm
by ImperialDroid
Sandbox_Events_Template will work as well instead of Enable_Sandbox_Events_Template as it points to the xml template for retreat.

Posted: Tue Jan 31, 2006 8:33 pm
by dreadlordnyax
thanks a lot, this is awesome!!!