• 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 to give building a selection (hero-type) icon

Status
Not open for further replies.
Level 10
Joined
May 24, 2016
Messages
339
I have seen on some maps that building can be selected through ui icons, the ones that are used only for heroes on default wc3.

How to do that? Is it somekind of reforged new function, or it works on 1.26 too?
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,877
You could have a fake Hero that redirects selection to the Building. Anyway, if the UI icon isn't in the top left corner of the screen and/or doesn't look identical to a standard Hero icon (life bar, mana bar, etc) then it's safe to assume that it's a custom UI frame which was introduced in 1.31.
 
Level 10
Joined
May 24, 2016
Messages
339
You could have a fake Hero that redirects selection to the Building. Anyway, if the UI icon isn't in the top left corner of the screen and/or doesn't look identical to a standard Hero icon (life bar, mana bar, etc) then it's safe to assume that it's a custom UI frame which was introduced in 1.31.
It look exactly as default hero icon at the top-left corner.

So how this fake hero is going to look like? I need to hide unit via trigger, and then you can detect via event when you select it through pressing click on icon?
 
Level 10
Joined
May 24, 2016
Messages
339
Yeah, that sounds about right.
Uncle I have a little question, off-topic. Are there any way to place a shop that sell items for ONLY 1 team, but still having a "item start cooldown", just like neutral shops do? When I want to sell items only for 1 team, items has no start cd value working. When I want to have start cd value, item are able to be bought by both teams. I'm mad at wc3 engine.
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,877
Uncle I have a little question, off-topic. Are there any way to place a shop that sell items for ONLY 1 team, but still having a "item start cooldown", just like neutral shops do? When I want to sell items only for 1 team, items has no start cd value working. When I want to have start cd value, item are able to be bought by both teams. I'm mad at wc3 engine.
I believe you use the Shop Sharing ability and make sure that the Shop is owned by an Ally of the Team that can use it.
 
Status
Not open for further replies.
Top