Create personalized configuration with a script

Your forum for all discussions around Modding.
Tommy M
Posts: 1
Joined: Tue Sep 26, 2023 10:26 am

Create personalized configuration with a script

Post by Tommy M »

Hi there,

I'm trying to add a new configuration to one of my scripts.
I want that the structure in the XML is alike that:

Code: Select all

<advancedHeadlight>
	<autoHeadlightConfigurations name="Automatic Headlight">
		<autoHeadlightConfiguration name="$l10n_configuration_valueYes" isDefault="true" price="0">
			<objectChange enabled="false" />
		</autoHeadlightConfiguration>
		<autoHeadlightConfiguration name="$l10n_configuration_valueNo" isDefault="false" price="400">
			<objectChange enabled="true" />
		</autoHeadlightConfiguration>
	</autoHeadlightConfigurations>
</advancedHeadlight>
Is there someone that know how to do that?