• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[General] Shop Refresher HELP Pls

Status
Not open for further replies.
Level 9
Joined
Aug 15, 2007
Messages
261
i need a shop refreshing trigger despite the stock quality iven if its = 0

  • resShop
    • Events
      • Unit - A unit Sells an item (from shop)
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Target item of issued order) Equal to (Matching item)
        • Then - Actions
          • Unit Group - Pick every unit in (Units currently selected by Player 1 (Red)) and do (Actions)
            • Loop - Actions
              • Neutral Building - Remove (Item-type of (Matching item)) from (Picked unit)
              • Neutral Building - Add (Item-type of (Matching item)) to (Picked unit) with 1 in stock and a max stock of 1
        • Else - Actions
i have been experimenting but ....
i need help

Example: if i do this in map initialization i have no sold item how do i specify certain item or all items from a selected shop?

Or if quality in shop is = 0 the item is not beeng sold.
 
Level 9
Joined
Aug 15, 2007
Messages
261
No i want to make the shop Refresh Its items iven if the quality is 0
example: on map init the shop haves 0 boots of speed 1 amulet 3 sword 2 shield
everithing has to go to 1 and be rdy to sell

if you buy 1 boots of speed and the quality becomes 0 it has to go to 1
but i cant specify all the items like :
  • Neutral Building - Remove (Item-type of (Boots of speed)) from (Picked unit)
    • Neutral Building - Add (Item-type of (Boots of speed)) to (Picked unit) with 1 in stock and a max stock of 1
 
Last edited:
Ok try this
Captură ecran (708).jpg

If you change time stock replenish interval to 0 that item will be added to the shop immediately.
 

Wrda

Spell Reviewer
Level 25
Joined
Nov 18, 2012
Messages
1,870
I don't think you understand what the word "quality" means. Quantity is the word that should be used, as it describes the amount of something.
example: on map init the shop haves 0 boots of speed 1 amulet 3 sword 2 shield
everithing has to go to 1 and be rdy to sell
...What?
You want 3 stocks of swords and 2 of shields, or you want it to be only 1? Which one is it?
More details.
 
Status
Not open for further replies.
Top