Skip to content

Configuring

SphereII edited this page Sep 18, 2024 · 1 revision

Configuring

The ConfigurationBlock contains settings that enable and customize the properties.

 

<property class="AdvancedPlayerFeatures" >

        

    <!-- Enables item weight encumbrance on the Player bag -->

    <property name="Encumbrance" value="false" />

 

    <!-- how much encumbrance before "max" threshold is set, and penalties are incurred. -->

    <!-- MaxEncumbrance value can be over-ridden by having a cvar of the same name on the player -->

    <!-- The CVar value will over-ride his value. -->

    <property name="MaxEncumbrance" value="10000" />

 

    <!-- This cvar value will be placed on the player and will be a percentage of encumbrance. -->

    <!-- 1f = at max encumbrance. 1.5, 50% over encumbrance -->

    <property name="EncumbranceCVar" value="encumbranceCVar" />

                

    <!-- Include Tool belt? -->

    <property name="Encumbrance_ToolBelt" value="false" />

                

    <!-- Include equipment ? -->

    <property name="Encumbrance_Equipment" value="false" />

                

    <!-- Each item that does not have a ItemWeight property will be weighed at this value. -->

    <property name="MinimumWeight" value="0.1" />

</property>        

 

The MimumWeight property sets a minimum weight for all items in the game. 

 

This property can be over-ridden on any items.xml or a blocks.xml using the ItemWeight property.

 

<property name="ItemWeight" value="10" />

 

 

You can use the following xml pattern to modfy these features:

 

<set xpath="/blocks/block[@name='ConfigFeatureBlock']/property[@class='AdvancedPlayerFeatures']/property[@name='Encumbrance']/@value">true</set>

<set xpath="/blocks/block[@name='ConfigFeatureBlock']/property[@class='AdvancedPlayerFeatures']/property[@name='Encumbrance_ToolBelt']/@value">true</set>

<set xpath="/blocks/block[@name='ConfigFeatureBlock']/property[@class='AdvancedPlayerFeatures']/property[@name='Encumbrance_Equipment']/@value">true</set>

<set xpath="/blocks/block[@name='ConfigFeatureBlock']/property[@class='AdvancedPlayerFeatures']/property[@name='MinimumWeight']/@value">1</set>


Created with the Personal Edition of HelpNDoc: Easy CHM and documentation editor

0-SCore

Table of contents

Clone this wiki locally