• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

how to give building a selection (hero-type) icon

Status
Not open for further replies.
Level 10
Joined
May 24, 2016
Messages
346
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 74
Joined
Aug 10, 2018
Messages
7,967
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
346
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
346
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 74
Joined
Aug 10, 2018
Messages
7,967
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