• Welcome to AtomicTorch Studio Forums.
 

How to make item unavaible in shop

Started by Acuru, July 20, 2017, 09:48:33 AM

Acuru

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?

<?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>

Lurler

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.

ai_enabled


Lurler

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 :)

Acuru