• 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.

Mercenary Camps that only sell to certain players

Status
Not open for further replies.
Level 4
Joined
Apr 15, 2011
Messages
108
event - player picks unit

actions

if then else

if = clicked player equal to red
then
add items to shop
else
delete items from shop

algorithm is like that, i need to open we to write exact triggers but its pretty much this.
 
Level 5
Joined
Sep 1, 2010
Messages
168
As far as I recall you can add shops to an allied side of that player (assuming you already have a computer on that allies' side for creeps or whatever), then you only need to change the behaviour of what allies can do with thatpalyer's units.
 
Level 19
Joined
Apr 10, 2010
Messages
2,789
Try making a force then make them allied. Then place the shop. If it doesnt work, then maybe make a trigger. Maybe like this:
  • Trig 01
    • Events
      • Unit - A unit Sells a unit
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Owner of (Buying unit)) Not equal to Player 2 (Blue)
          • (Owner of (Buying unit)) Not equal to Player 1 (Red)
    • Actions
      • Unit - Remove (Sold unit) from the game
 
Status
Not open for further replies.
Top