Skip to content

Relation Filter Target Profile Bug #350

Description

@XGNXLency

When using Relation as a filter in a Target Profile, if a player has at least 500 reputation with a faction, the AI considers them as part of the faction, not friendly which makes filtering by Friends as a relation pointless. This used to work, only broke within one of the last 2 updates of the mod. Here's my target profile which I used to test:

<?xml version="1.0"?>
<Definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <EntityComponents>
    <EntityComponent xsi:type="MyObjectBuilder_InventoryComponentDefinition">
      <Id>
          <TypeId>Inventory</TypeId>
          <SubtypeId>SupportTargetProfile</SubtypeId>
      </Id>
      <Description>
      [RivalAI Target]
      
      [UseCustomTargeting:true]
      [Target:PlayerAndGrid]
      [TimeUntilTargetAcquisition:2]
      [TimeUntilNextEvaluation:5]
      [MaxDistance:40000]
      
      [UseTargetRefresh:true]
      [TimeUntilNextRefresh:10]
      
      [MatchAllFilters:OutsideOfSafezone]
      [MatchAnyFilters:PlayerControlled]

      [MatchAllFilters:Relation]
      [//Relations:Friends]
      [Relations:Faction]
      
      [MatchAnyFilters:Owner]
      [Owners:Player]
      [OnlyGetFromEntityOwner:false]
      
      [PrioritizePlayerControlled:true]
      
      [GetTargetBy:ClosestDistance]
      </Description>
    </EntityComponent>
  </EntityComponents>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions