OpenXcom Forum

Modding => Help => Topic started by: FlayedOne on March 13, 2022, 09:19:57 am

Title: Selling prices equal 0 mod
Post by: FlayedOne on March 13, 2022, 09:19:57 am
Hello,

I'm trying to make a mod for myself that will change all the prices of all items to 0 to force the XCom to rely on Council funding only.

Is there an option I'm missing for creating a rule working for all items, or do I have to create a rule for each an every object?

Is there any way to make it compatible with mods adding more items?
Title: Re: Selling prices equal 0 mod
Post by: Solarius Scorch on March 13, 2022, 03:40:19 pm
Hello,

I'm trying to make a mod for myself that will change all the prices of all items to 0 to force the XCom to rely on Council funding only.

Is there an option I'm missing for creating a rule working for all items, or do I have to create a rule for each an every object?

Is there any way to make it compatible with mods adding more items?

You have to do it for every item. Luckily vanilla has very little items, not worth worrying about.

I don't think there's a way to reset all prices globally, so nothing to do about other mods.
Title: Re: Selling prices equal 0 mod
Post by: FlayedOne on March 13, 2022, 11:01:54 pm
Thank you for the response.

That's what I was afraid of.
Title: Re: Selling prices equal 0 mod
Post by: Meridian on March 13, 2022, 11:06:27 pm
You can set it globally (in OXCE) using:

Code: [Select]
sellPriceCoefficient: [0, 0, 0, 0, 0]
Title: Re: Selling prices equal 0 mod
Post by: FlayedOne on March 14, 2022, 07:22:30 pm
Thats exactly what I've been looking for. Thanks!