Hey Guys... before I begin let me just say I have looked in to these links before posting here for help...
http://commandconque...read.php?t=1062
http://forums.revora...mp;#entry573217
Now... let me explain what I'm trying to do...
I duplicated the Bloodhound Support Power code from all these files
GDIPowerStore.xml
SpecialPowerTemplates.xml
PlayerPowerButtonTemplates.xml
PlayerSpellBook.xml
LogicCommand.xml
LogicCommandSet.xml
GDIArmory.xml
ObjectCreationLists.xml
Then renamed their IDs to 'Renegades' where ever I saw BloodHound except for the tags that reffered to images.
Then created these new files below.
GDIMammoth_Veteran.xml
GDIV35Ox_CallSupportRenegades.xml
and Copied over these eisting files as well.
GDIV35Ox_SummonedForVehicle.xml
GDIV35Ox.xml
I'm trying to create a Support Power that brings in 3 Veteran Mammoth Tanks. The support power will be available once the Tech Center is built.
Everything is fine in the Mod.xml file... I've included all those files in it...
Here's the code in each file.
GDIPowerStore.xml
<!--Support Renegades--> <OCLSpecialPower id="ModuleTag_CallSupportRenegades" SpecialPowerTemplate="SpecialPowerCallSupportRenegades" TriggerFX="FX_GDICallForTransportFlare" OCL="OCL_CallSupportRenegades" CreateLocation="CREATE_AT_EDGE_NEAR_SOURCE" />
SpecialPowerTemplates.xml
<SpecialPowerTemplate id="SpecialPowerCallSupportRenegades" Flags="NOT_CLIFF_CELL IS_PLAYER_POWER NO_FORBIDDEN_OBJECTS SHARED_SYNC" ReloadTime="300s" ForbiddenObjectRange="140" RadiusCursorRadius="140" TargetType="LOCATION" EvaEventToPlayWhenSelectingTarget="SelectSpecialPowerTarget" Money="-5000" InitiateAtLocationSound="GDI_Ox_VoiceReinforcements"> <ForbiddenObjectFilter Rule="ANY" Include="STRUCTURE" /> <GameDependency> <RequiredObject>GDIArmory</RequiredObject> </GameDependency> </SpecialPowerTemplate>
PlayerPowerButtonTemplates.xml
<TargetedPowerButton id="SpecialPowerCallSupportRenegades" RadiusCursor="TargetingDecalBloodhound"> <State Image="Button_PlayerPowerBloodhounds" Title="NAME:PlayerPowerBloodhound" TypeDescription="TYPE:PlayerPowerBloodhound" Description="DESC:PlayerPowerBloodhound" /> </TargetedPowerButton>I wanted to get the support power in game before making the string file for it so I just left the tags the same for those...
PlayerSpellBook.xml
<!-- GDI Call Support Renegades --> <PlayerPowerManager id="ModuleTag_PlayerPowerManager_CallSupportGDIRenegades" SpecialPowerTemplate="SpecialPowerCallSupportRenegades" />
LogicCommand.xml
<LogicCommand Type="SPECIAL_POWER" id="Command_CallSupportRenegades"> <SpecialPower>SpecialPowerCallSupportRenegades</SpecialPower> </LogicCommand> <LogicCommand Options="NEED_TARGET_POS" Type="SPECIAL_POWER" id="Command_CommandPostCallRenegades"> <SpecialPower>SpecialPowerCallSupportRenegades</SpecialPower> </LogicCommand>
LogicCommandSet.xml
I Entered this line of code in the GDIArmoryCommandSet and PlayerSpellBookCommandSet
<Cmd>Command_CommandPostCallRenegades</Cmd>
GDIArmory.xml
<OCLSpecialPower id="ModuleTag_CallSupportRenegades" SpecialPowerTemplate="SpecialPowerCallSupportRenegades" TriggerFX="FX_GDICallForTransportFlare" OCL="OCL_CallSupportRenegades" CreateLocation="CREATE_AT_EDGE_NEAR_SOURCE" /> <AISpecialPowerUpdate id="ModuleTag_CommandPostCallRenegadesAI" CommandButtonName="Command_CommandPostCallRenegades" ReinforceDistance="400.0" SpecialPowerRadius="300.0" SpecialPowerAIType="SPECIAL_POWER_REINFORCEMENT" />
ObjectCreationLists.xml
<ObjectCreationList id="OCL_CallSupportRenegades"> <CreateObject Options="IGNORE_ALL_OBJECTS DONT_SET_PRODUCER ISSUE_MOVE_AFTER_CREATION MOVE_USES_EVACUATE_AND_EXIT MOVE_TARGET_USES_OFFSET" Disposition="LIKE_EXISTING"> <Offset x="42" y="42" z="100"></Offset> <CreateObject>GDIV35Ox_CallSupportRenegades</CreateObject> </CreateObject> <CreateObject Options="IGNORE_ALL_OBJECTS DONT_SET_PRODUCER ISSUE_MOVE_AFTER_CREATION MOVE_USES_EVACUATE_AND_EXIT MOVE_TARGET_USES_OFFSET" Disposition="LIKE_EXISTING"> <Offset x="42" y="-42" z="100"></Offset> <CreateObject>GDIV35Ox_CallSupportRenegades</CreateObject> </CreateObject> <CreateObject Options="IGNORE_ALL_OBJECTS DONT_SET_PRODUCER ISSUE_MOVE_AFTER_CREATION MOVE_USES_EVACUATE_AND_EXIT MOVE_TARGET_USES_OFFSET" Disposition="LIKE_EXISTING"> <Offset x="90" y="0" z="100"></Offset> <CreateObject>GDIV35Ox_CallSupportRenegades</CreateObject> </CreateObject> </ObjectCreationList>
If anyone could help me figured out why it's not showing up when I place the Tech Center down in game... if anyone could tell... that would be much appreciated!!
Cheers!
SLHomie...