• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Items in shop specific to players

Status
Not open for further replies.
Level 4
Joined
Sep 23, 2010
Messages
90
I wanna know is it possible to make a shop where items are only specific to players, for example: player1 in the shop sees 2 items and nothing else, player2 sees other 2 items...
 
You can make items only show for ALLIES of the owning player player using the standard abilities that are in the Arcane Vault/Neutral Shops. But Items are shared and you cant specify certain items to be shown to specific players that way.

What you are wanting could be probably done through a bit triggering though.
For example you could do something along the lines of: when the shop is selected by a certain player, remove items and add different items.

This would make it when Player 1 selects the shop, it add 2 items, but when Player 2 selects the shop, those items are removed and two different ones are added to the shop.
 
  • Events
    • Unit - Shop is selected
  • Conditions
  • Events
    • If (All conditions are True) then do (Then actions) else do (Else actions)
      • If - Conditions
        • (Triggering Player) equals to Player1
      • Then - Actions
        • Selection - Select SpecificShop for Player1
Create some invisible units, based on shops. Fill them in with items you need. When player selects visible shop, this code will redirect them to these units instead. You can adjust their setting to fit the aesthetics better, for example make their selection circle match the selection circle of visible shop.
 
  • Events
    • Unit - Shop is selected
  • Conditions
  • Events
    • If (All conditions are True) then do (Then actions) else do (Else actions)
      • If - Conditions
        • (Triggering Player) equals to Player1
      • Then - Actions
        • Selection - Select SpecificShop for Player1
Create some invisible units, based on shops. Fill them in with items you need. When player selects visible shop, this code will redirect them to these units instead. You can adjust their setting to fit the aesthetics better, for example make their selection circle match the selection circle of visible shop.


That's a good idea. Much easier than what I suggested.
 
Status
Not open for further replies.
Back
Top