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

Disable Player from Purchasing Item

Status
Not open for further replies.
Level 5
Joined
Jan 29, 2009
Messages
92
is there any way to prevent a player from purchasing an item to the point where it doesn't even show up in the shop for them? similar to the "Enable/Disable Construction of Unit for Player" action
 
Level 9
Joined
Aug 27, 2009
Messages
473
Make Item a Dummy unit.
Then do:
  • OnlyOneItem
    • Events
      • Unit - A unit Sells a unit
    • Conditions
      • (Unit-type of (Sold unit)) Equal to Dummy Unit (Item)
    • Actions
      • Unit - Remove (Sold unit) from the game
      • Hero - Create - The Item - and give it to (Buying unit)
      • Player - Make Dummy Unit (Item) Unavailable for training/construction by (Owner of (Buying unit))
Tada, no problem anymore.
 
Status
Not open for further replies.
Top