• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] Ability icon query

Status
Not open for further replies.
Well theres a way to do that, but you will acualy have to know the file path to begin with. If you go to your spell or whatever, and go to the Art line that changes the icon, double click and on the very bottom line it says Custom Path (or something) and it has a path, you can take that path and store it in a variable.

If the paths first few sections are similar to multiple other icons, create 2 variables, 1 that states the similar path, and the other that varies, using index.

The common file paths are
ReplaceableTextures\CommandButtons\BTN(Units default name).blp

without the parantheses. In Example:
ReplaceableTextures\CommandButtons\BTNFootman.blp
 
I work with custom abilityes, and yeah, I know this way, but it's too much time -.- There is a GUI code which can get the Effect/Missile/AoE/etc art path of an ability, so all of the ability's paths could be aquired through loop triggers too if I have the spells in a variable array-this is my opinion, but this would be logically true. So I have the skills in variables, but I want to get their Icons in a Loop with a command, which must be JASS-no GUI method :( The raw data name is "art" or "researchart" but IDK how to take it's value by JASS...
 
Status
Not open for further replies.
Back
Top