AtomicTorch Studio Forums

VoidExpanse => Modding info => Topic started by: Acuru on July 20, 2017, 09:48:33 am

Title: How to make item unavaible in shop
Post by: Acuru on July 20, 2017, 09:48:33 am
I made new ore type with intention that it never be avaible to sell in station. I thought i done it good, but i saw it in one of capitals. Bellow is code for that ore, what im doing wrong?

Code: [Select]
<?xml version="1.0" encoding="utf-8"?>

<root>
<header>
<id>ae_ore_questite</id>
<title>Questite ore</title>
<description>Rare ore found in some asteroids. It has no practical use, but some collectors want it pretty badly.</description>
<enabled>1</enabled>
</header>

<gfx>
<icon>items/ore_and_goods/ae_ore_questite.png</icon>
</gfx>

<data>
<type>200</type>

<shops>
<shops_level>0</shops_level>
<faction_filter></faction_filter>
<faction_only>0</faction_only>
<faction_reputation>0</faction_reputation>
<price>1</price>
</shops>

<flags>
<flag>mineable</flag>
</flags>

<upgrades_max>0</upgrades_max>
<upgrades>
<!-- none -->
</upgrades>

<requirements>
<!-- none -->
</requirements>

<effects>
<!-- none -->
</effects>

<item_data>
<base_quantity_production>0</base_quantity_production>
<base_quantity_neutral>0</base_quantity_neutral>
<base_quantity_consumption>250</base_quantity_consumption>
<production_chance>0</production_chance>
<consumption_chance>0.5</consumption_chance>
</item_data>
</data>
</root>
Title: Re: How to make item unavaible in shop
Post by: Lurler on July 20, 2017, 09:30:41 pm
From what I can see it should work. Can't see any reason why it wouldn't...

I'm currently not in the office, but if you can wait for two weeks (sorry...) I will investigate the issue myself and help you with that.
Title: Re: How to make item unavaible in shop
Post by: ai_enabled on July 20, 2017, 09:30:55 pm
Try to set the price to 0.
Title: Re: How to make item unavaible in shop
Post by: Lurler on July 20, 2017, 09:34:43 pm
We had a discussion with ai_enabled and he had a great idea!
Just set the item level to above 60, for example 100, and it will never be available for sale!
Easy :)
Title: Re: How to make item unavaible in shop
Post by: Acuru on July 21, 2017, 07:24:51 am
Hmm... that shoul solve probblem