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

Mercenary Camps that only sell to certain players

Status
Not open for further replies.
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.
 
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.
 
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.
Back
Top