Own shop...

Smilis

TH.net Regular
Reaction score
7
Hello everyone! I am doing a map and want to have one shop that everyone can see and use.. But if red is looking at the shop and are going to buy something there is like: Helm of Guardian, Sword of Fire and Angry child.
But if blue is looking in the exact same shop there instead are: Happy Child, Sword of Ice and Helm of Darknes... Does someone have a code to that?

I hope I told you everything you needed to know...
 

UndeadDragon

Super Moderator
Reaction score
447
I don't think this is possible with only one shop.

I believe that you will need to have multiple shops for different players or teams.

_______________________

 

Azlier

Old World Ghost
Reaction score
461
Work with this:


Code:
Example
    Events
        Unit - A unit enters Shop <gen>
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Triggering unit)) Equal to Player 1 (Red)
            Then - Actions
                Neutral Building - Remove Helm of Darkness from ShopBuilding
                Neutral Building - Remove Angry Child from ShopBuilding
                Neutral Building - Remove Sword of Ice from ShopBuilding
                Neutral Building - Add Helm of Guardian to ShopBuilding with 1 in stock and a max stock of 1
                Neutral Building - Add Happy Child to ShopBuilding with 1 in stock and a max stock of 1
                Neutral Building - Add Sword of Fire to ShopBuilding with 1 in stock and a max stock of 1
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Triggering unit)) Equal to Player 2 (Blue)
            Then - Actions
                Neutral Building - Remove Helm of Guardian from ShopBuilding
                Neutral Building - Remove Sword of Fire from ShopBuilding
                Neutral Building - Remove Happy Child from ShopBuilding
                Neutral Building - Add Helm of Darkness to ShopBuilding with 1 in stock and a max stock of 1
                Neutral Building - Add Angry Child to ShopBuilding with 1 in stock and a max stock of 1
                Neutral Building - Add Sword of Ice to ShopBuilding with 1 in stock and a max stock of 1
            Else - Actions
                Do nothing

Good luck. Buena suerte. Bon chance.
 

und34d-rul3

New Member
Reaction score
12
I played a map where you could click on a shop and it changed ownership, im not sure how to do this though, and as for the items - If you have enough space you can add all the items to shop but require an upgrade on the items based on the color, and give each color their upgrade.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top