Can you help me create a new a specific newgame setup please?

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
samuraiogc
Posts: 1
Joined: Wed, 31. Jul 19, 17:01
x4

Can you help me create a new a specific newgame setup please?

Post by samuraiogc » Wed, 31. Jul 19, 19:21

I saw lots of guides on how to create custom new games setups but none one them showed how to start with custom faction reps.

I want to start with +10 reputation with the argon, how can i do that?

teleportationwars
Posts: 158
Joined: Fri, 12. Jul 19, 14:03

Re: Can you help me create a new a specific newgame setup please?

Post by teleportationwars » Thu, 1. Aug 19, 00:03

you can do it in md with <add_faction_relation faction="faction.player" otherfaction="faction.argon" value="10" />

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13298
Joined: Sun, 15. Feb 04, 20:12
x4

Re: Can you help me create a new a specific newgame setup please?

Post by euclid » Thu, 1. Aug 19, 10:44

This is the definition from common.xsd found in the libraries folder:

Code: Select all

<xs:element name="add_faction_relation">
        <xs:annotation>
          <xs:documentation>
            Add global faction relation
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attributeGroup ref="action" />
          <xs:attribute name="faction" type="faction" use="required" />
          <xs:attribute name="otherfaction" type="faction" use="required" />
          <xs:attribute name="value" type="expression" use="required">
            <xs:annotation>
              <xs:documentation>
                Relation boost value
              </xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute name="reason" type="relationchangereasonlookup" use="required">
            <xs:annotation>
              <xs:documentation>
                The reason for relationship change
              </xs:documentation>
            </xs:annotation>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
The "value" ranges between 0 and 1 (rank 10 = 0.01, rank 20 = 0.1 and rank 30 = 1.0). Also the "reason" is a requirement. Hence, for a rank 10, you should do something like this:

Code: Select all

<add_faction_relation faction="faction.argon" otherfaction="faction.player" value="0.01" reason="relationchangereason.killedobject"/>	
Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

Post Reply

Return to “X4: Foundations - Scripts and Modding”