how to alter ware prices?

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

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

balogt
Posts: 773
Joined: Thu, 18. Dec 03, 09:00
x3

how to alter ware prices?

Post by balogt »

just to see if anyone knows specifiacally how to. I made a mod with a content, and the approrpaite fodler where I copies the original wares.xml and just changed a couple values. the game doesn't recognize the changes though. im guess I need a smaller file that has coding to append the original value, vs using the whole wares.sml file. anyone know how to do this?
thanks
Glimpse
Posts: 141
Joined: Thu, 29. Apr 10, 14:05
x4

Re: how to alter ware prices?

Post by Glimpse »

I used this method for altering paint mod prices. Hope it helps!

Code: Select all

<?xml version="1.0" encoding="utf-8"?> 
<diff> 
	<replace sel="/wares/ware[@id='paintmod_0001']/price">
		<price min="75000" average="150000" max="225000" />
	</replace>
</diff>

Return to “X4: Foundations - Scripts and Modding”