• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Spell] way to detect when UI hero button clicked?

Status
Not open for further replies.
Level 21
Joined
Mar 29, 2020
Messages
1,237
hey there,

how can I detect when the hero UI button is clicked? (I mean the image of the hero on the top left of the screen)

I have a hero who I hid, but I want to trigger certain actions when it's button is clicked. somehow BC the hero is hidden - basing stuff off of when the unit is selected doesn't work.

this is how I tried to do it according to hero selection - and nada...
  • profile selection
    • Events
      • Player - Player 1 (Red) Selects a unit
      • Player - Player 2 (Blue) Selects a unit
      • Player - Player 3 (Teal) Selects a unit
      • Player - Player 4 (Purple) Selects a unit
      • Player - Player 5 (Yellow) Selects a unit
      • Player - Player 6 (Orange) Selects a unit
      • Player - Player 7 (Green) Selects a unit
      • Player - Player 8 (Pink) Selects a unit
      • Player - Player 9 (Gray) Selects a unit
      • Player - Player 10 (Light Blue) Selects a unit
      • Player - Player 11 (Dark Green) Selects a unit
      • Player - Player 12 (Brown) Selects a unit
    • Conditions
      • ((Triggering unit) is in ProfileHero) Equal to True
      • (Triggering player) Equal to (Owner of (Triggering unit))
    • Actions
      • Game - Display to (All players) for 5.00 seconds the text: hero selected
      • Set ID = (Custom value of (Triggering unit))
      • Selection - Select FakeCritter[ID] for (Triggering player)

would appreciate any help, thanks!
 
Level 21
Joined
Mar 29, 2020
Messages
1,237
I'm not on the newest patch (don't like reforged), and I don't know how to make custom UI yet. I tried altering the ability do it doesn't actually hide the hero, just emulates that.

I shrunk, and paused the hero, made it invulnerable, and moved it to a remote corner of the map(bc it still was causing things to walk around it and had a shadow). the one thing I can't figure out how to get rid of is the minimap hero display. Is there any way to trigger hiding that?
 
Status
Not open for further replies.
Top