How to prevent a merchant from selling an item

Smitty

Member
Reaction score
20
Anyone got any idea how I can remove an item from a merchant after it is bought, and then add it again later? neutral building- remove item from market doesn't seem to work :(
 

Frozen Solid

New Member
Reaction score
0
If item is sold:

Events-
Unit - (Marketplace) (Unit) 0246 <gen> Sells an item (from shop)

Conditions-
(Item-type of (Sold Item)) Equal to (Item name)

Actions-
Neutral Building - Remove (Item name you chose) from (Selling unit)

If you want item back:

Events-
Whatever event you want....

Conditions-
Whatever condition you want.....

Actions-
Neutral Building - Add (Item Name) to (Marketplace or Shop??) with (any Number) in stock and a max stock of (Any Number)

------------------------------------------------------------------------------------------------------------------------
If that doesnt help then refer to this topic.

http://www.thehelper.net/forums/showthread.php/108659-using-triggers-to-add-remove-item-from-shop
 

Smitty

Member
Reaction score
20
That's the action I'm using. I've used it about 3 different ways now, and it just doesn't remove the item from the shop. I have no idea why.

EDIT: Could there be some gameplay constant or tech equivalent field that I have to change? And while I'm at it, how can I stop an active item from having charges, so it's essentially unlimited?
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
Not sure about the first, but for the second you have to set Stats - Number of Charges to 0 and Stats - Perishable to False in the Object Editor.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top