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

How can I remove the need for nearby hero?

Status
Not open for further replies.
Level 13
Joined
Oct 12, 2016
Messages
769
Well, something needs to buy the item.
You could change the ability on the shop to "select unit" for shop purchasing, if you want units with an inventory to buy items too.
Or, if you want to just click the button and make items drop on the ground, make a dummy ability and trigger it: use ability, create an item on the ground.
Hell, you could even make a structure with an inventory that creates items and put it into that structure's inventory.

This really depends on what you want.
 
Level 12
Joined
Dec 2, 2016
Messages
733
Well, something needs to buy the item.
You could change the ability on the shop to "select unit" for shop purchasing, if you want units with an inventory to buy items too.
Or, if you want to just click the button and make items drop on the ground, make a dummy ability and trigger it: use ability, create an item on the ground.
Hell, you could even make a structure with an inventory that creates items and put it into that structure's inventory.

This really depends on what you want.

This shop sells units, when you click it, it creates a unit. I need to make it so that you can create a unit without having a unit nearby. Otherwise I assume I need a dummy unit, but how can I do that without them seeing the dummy unit?
 
Level 3
Joined
Sep 19, 2017
Messages
36
This shop sells units, when you click it, it creates a unit. I need to make it so that you can create a unit without having a unit nearby. Otherwise I assume I need a dummy unit, but how can I do that without them seeing the dummy unit?
when you click the shop it creates a unit?

I'm not sure how this shop works, but you could make the shop change ownership when selected (without changing colors) and revert back to neutral when deselected. I need more context to understand the problem really.
 
Level 13
Joined
Oct 12, 2016
Messages
769
Is it a structure or a unit?
If it's a structure you own, then you don't need any special abilities. Just put the unit in the "unit's sold" list.
If it's a unit selling units, that I don't know. I've never tried that. I'll test it out after work.
 
Level 13
Joined
Oct 12, 2016
Messages
769
owned by neutral passive
That makes it more complicated, since normally you won't see unless a structure/unit/hero is nearby.

Well, you could just place an invisible dummy unit right there next to the shop. Use the doodad model "Invisible Platform" and make it have 0 collision, make it invulnerable, cost no food, can't move, and leave it there. You could also play around with the "locust" ability or "ward" designation to make it unselectable.

Or, like Josh said:
change ownership when selected (without changing colors) and revert back to neutral when deselected

These would be your options.
 
Status
Not open for further replies.
Top