Selling items put it back in the shop to sell

megaflame566

New Member
Reaction score
4
You know how the shops have a certain amount of an item in a shop like 3 gauntlets well i was wondering how i trigger it so that if i buy one but dont want it anymore and sell it the item goes back from 2 left to 3
 

Yoshii

New Member
Reaction score
74
You know how the shops have a certain amount of an item in a shop like 3 gauntlets well i was wondering how i trigger it so that if i buy one but dont want it anymore and sell it the item goes back from 2 left to 3
a unit pawn an item
cond: item is of type X
action:neutral building set the stock of item type X to VAR +1

there is no "set stokc of item type X to amount +1" therefore you would probably need to keep track of the amount via a integer variable that increase every X second(stock replenish) and decrease by 1 everytime someone buy one.
 

megaflame566

New Member
Reaction score
4
Trigger:
  • Sells an Item
    • Events
      • Unit - A unit Pawns an item (to shop)
    • Conditions
      • (Sold Item) Equal to (Item being manipulated)
    • Actions
      • Neutral Building - Limit (Hero manipulating item) to 1 item slots


This is what i put but it dosent work any help :/
 

Yoshii

New Member
Reaction score
74
Trigger:
  • Sells an Item
    • Events
      • Unit - A unit Pawns an item (to shop)
    • Conditions
      • (Sold Item) Equal to (Item being manipulated)
    • Actions
      • Neutral Building - Limit (Hero manipulating item) to 1 item slots


This is what i put but it dosent work any help :/

item being manipulated is when you acquire an item not when you sell them
Trigger:
  • Sell
    • Events
      • Unit - A unit Pawns an item (to shop)
    • Conditions
      • (Item-type of (Sold Item)) Equal to Claws of Attack +15
    • Actions
      • Neutral Building - Add Tome of Experience to all marketplaces with 10 in stock and a max stock of 99

work fine
 

megaflame566

New Member
Reaction score
4
Trigger:
  • Sells an Item
    • Events
      • Unit - A unit Pawns an item (to shop)
    • Conditions
      • (Item-type of (Sold Item)) Equal to Hero - Paladin
    • Actions
      • Neutral Building - Add Hero - Paladin to all marketplaces with 10 in stock and a max stock of 99


I tried it but its not working btw Hero-Paladin is an item not a hero
 

Yoshii

New Member
Reaction score
74
Trigger:
  • Sells an Item
    • Events
      • Unit - A unit Pawns an item (to shop)
    • Conditions
      • (Item-type of (Sold Item)) Equal to Hero - Paladin
    • Actions
      • Neutral Building - Add Hero - Paladin to all marketplaces with 10 in stock and a max stock of 99


I tried it but its not working btw Hero-Paladin is an item not a hero
the only reason it would not work would be that you are not using a marketplace..
 
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