scachi
  • scachi
  • 50.25% (Neutral)
  • Private Topic Starter
13 years ago
Hello,

is it possible to change the engineers to be able to captures building of an ally force ?

Is found this in file LogicCommand.xml:
<LogicCommand
		Type="GARRISON_BUILDING"
		id="Command_CaptureBuilding"
		Options="NEED_TARGET_ENEMY_OBJECT">
		<SpecialPower>SpecialPowerCaptureControlPoint</SpecialPower>
		<AISpecialPowerInfo Heuristic="CAPTURE" Manager="TACTIC">
			<ObjectFilter Rule="ANY" Relationship="NEUTRAL ENEMIES" Include="HUSK STRUCTURE" Exclude="CIVILIAN_BUILDING"/>
		</AISpecialPowerInfo>
	</LogicCommand>
If copied this file to my mod folder, removed everything else from within this file and tried to set Options to "NEED_TARGET_ALLY_OBJECT", "NEED_TARGET_ENEMY_OBJECT NEED_TARGET_ALLY_OBJECT" and to "". I included edited file in my mod.xml but nothing changed. I could not command the unit to capture an ally building, the cursor does not change, even with ctrl key nothing happens.

Is it the wrong file, do I have to edit it somewhere else too or is it not possible at all ?

Sponsor
ZeroMD
13 years ago

Hello,

is it possible to change the engineers to be able to captures building of an ally force ?

Is found this in file LogicCommand.xml:

<LogicCommand
		Type="GARRISON_BUILDING"
		id="Command_CaptureBuilding"
		Options="NEED_TARGET_ENEMY_OBJECT">
		<SpecialPower>SpecialPowerCaptureControlPoint</SpecialPower>
		<AISpecialPowerInfo Heuristic="CAPTURE" Manager="TACTIC">
			<ObjectFilter Rule="ANY" Relationship="NEUTRAL ENEMIES" Include="HUSK STRUCTURE" Exclude="CIVILIAN_BUILDING"/>
		</AISpecialPowerInfo>
	</LogicCommand>
If copied this file to my mod folder, removed everything else from within this file and tried to set Options to "NEED_TARGET_ALLY_OBJECT", "NEED_TARGET_ENEMY_OBJECT NEED_TARGET_ALLY_OBJECT" and to "". I included edited file in my mod.xml but nothing changed. I could not command the unit to capture an ally building, the cursor does not change, even with ctrl key nothing happens.

Is it the wrong file, do I have to edit it somewhere else too or is it not possible at all ?

Originally Posted by: scachi 


I think that you need to add ALLIES in the Relationship attribute of the ObjectFilter

TRA AI developer / hacker, TRA developer, TRA Music hacker, RA3 Trancending  Mod creator
scachi
  • scachi
  • 50.25% (Neutral)
  • Private Topic Starter
13 years ago

Hello,

is it possible to change the engineers to be able to captures building of an ally force ?

Is found this in file LogicCommand.xml:

<LogicCommand
		Type="GARRISON_BUILDING"
		id="Command_CaptureBuilding"
		Options="NEED_TARGET_ENEMY_OBJECT">
		<SpecialPower>SpecialPowerCaptureControlPoint</SpecialPower>
		<AISpecialPowerInfo Heuristic="CAPTURE" Manager="TACTIC">
			<ObjectFilter Rule="ANY" Relationship="NEUTRAL ENEMIES" Include="HUSK STRUCTURE" Exclude="CIVILIAN_BUILDING"/>
		</AISpecialPowerInfo>
	</LogicCommand>
If copied this file to my mod folder, removed everything else from within this file and tried to set Options to "NEED_TARGET_ALLY_OBJECT", "NEED_TARGET_ENEMY_OBJECT NEED_TARGET_ALLY_OBJECT" and to "". I included edited file in my mod.xml but nothing changed. I could not command the unit to capture an ally building, the cursor does not change, even with ctrl key nothing happens.

Is it the wrong file, do I have to edit it somewhere else too or is it not possible at all ?

Originally Posted by: ZeroMD 


I think that you need to add ALLIES in the Relationship attribute of the ObjectFilter

Originally Posted by: scachi 



I thought the AISpecialPowerInfo tag is used for AI only and it does not matter for human players. Adding ALLIES didn't change anything. Setting Relationship to ALLIES only seems to have no effect too. I still could capture neutral and enemy buildings. Maybe I am missing something as the changes don't seems to have any effect.
Stratofortress-B-7
13 years ago
That would have worked greatly in the operations to take Geneva in the Soviet Campaign(:
The Pilot is having some, flashbacks, so to speak.
erum
  • erum
  • 50.25% (Neutral)
  • Private
12 years ago
thank you for your help and patience.