• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

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