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

Only Purchaseable by Heroes?

Status
Not open for further replies.
Level 33
Joined
Mar 27, 2008
Messages
8,035
Pretty much you have to trigger it:
  • Hero Only Buy System
    • Events
      • Unit - A unit Sells an item (from shop)
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Buying unit) is A Hero) Equal to True
        • Then - Actions
          • Game - Display to (All players) the text: Successful bought.
        • Else - Actions
          • Item - Remove (Sold Item)
          • Game - Display to (All players) the text: You're not a Hero.
 
Level 8
Joined
Mar 26, 2009
Messages
301
Ohh it is going to be pain in the ass. Items are limited in stock and they have a large interval of replenishment. But thing is, I am not trying to disable units from buying items. I am trying to disable shops from selecting them =)
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Well, I tried changing the "Stats - Target Allowed", no-go
Is the problem lies with the "Data - Interaction Type" ?
Well, Any unit w/ Inventory, pwned.

And uh, that was just a basic trigger and I'm sure you can think more advance than that on what to do, is it ?
You don't expect everything needs to be done for you, is it OffGraphic ?
 
Shouldn't the "Select Hero ( 'Aneu' )" work for only selecting heroes?
If not, then I guess I could help with creating some kind of a trigger.

~Defskull; I haven't mentioned it should be done for me, in fact, I'm not the asker here. But, it would be more than friendly if you created the trigger a little further as you already started it. I only gave a suggestion there, and that is what this is also.
 
Status
Not open for further replies.
Top