Companions - BannerlordCE/TutorialCE GitHub Wiki

<!-- Companions  -->
<xs:element name="Companion">
	<xs:complexType>
		<!-- 
			Apply Consquences If used in an Option
		-->
		<xs:sequence>
			<xs:choice maxOccurs="unbounded" minOccurs="0">
				<xs:element ref="MultipleRestrictedListOfConsequences" />
				<!-- moved to options overrides the one in events if one exists .. -->
				<xs:element ref="PregnancyRiskModifier" minOccurs="0" />
				<xs:element ref="EscapeChance" minOccurs="0" />
				<!-- Gold Specification Couple it with ChangeGold/ChangeCaptorGold -->
				<xs:element ref="GoldTotal" minOccurs="0" />
				<xs:element ref="CaptorGoldTotal" minOccurs="0" />
				<!-- Number to decrease or increase based on flag -->
				<xs:element ref="RelationTotal" minOccurs="0" />
				<xs:element ref="MoraleTotal" minOccurs="0" />
				<xs:element ref="HealthTotal" minOccurs="0" />
				<xs:element ref="RenownTotal" minOccurs="0" />
				<!-- Referencing Multiple To Level -->
				<xs:element ref="SkillsToLevel" minOccurs="0" />
				<xs:element ref="TraitsToLevel" minOccurs="0" />
				<!-- Kingdom Options -->
				<xs:element ref="KingdomOptions" minOccurs="0" />
				<xs:element ref="ClanOptions" minOccurs="0" />
			</xs:choice>
		</xs:sequence>
		<!-- 
			Custom ID
		-->
		<xs:attribute name="Id" type="xs:string" />
		<!-- 
			Captor or Hero.

			"Hero" refers to Captive (In Captor/Captive Events) / Hero (In Random Events)
			"Captor" refers Captor
		-->
		<xs:attribute name="Ref" type="xs:string" />
		<!-- 
			Will check if Ref has a spouse and a Companion
			Indicates Type of Companion
			"Spouse" - Ref's Spouse
			"Companion" - Ref's Companion (Will loop through Ref's Companions if Use Conditions is found)
			"Both" - Ref's Both Spouse and Companions
		-->
		<xs:attribute name="Type" type="xs:string" />
		<!-- 
			Will check if Ref has a spouse and a Companion
			Indicates Type of Companion
			"Prisoner" - Prisoner in another party
			"Party" - In their own Party
			"Settlement" - In Settlement
			"Any" - Any Locations (Default)
			"Current Prisoner" - Prisoner in current party
			"Current" - Ref's Party
		-->
		<xs:attribute name="Location" type="xs:string" />
		<!-- 
			Use the event conditions of events before deciding to add it to the randomized list.

			"Name of Conditional Event" to reference conditions.
			"False" or missing to disable condition checkers.

			Work in progress
		-->
		<xs:attribute name="UseOtherConditions" type="xs:string" />
	</xs:complexType>
</xs:element>
⚠️ **GitHub.com Fallback** ⚠️