• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Hero - Finding Primary Stat

Status
Not open for further replies.
Level 10
Joined
Jan 21, 2007
Messages
575
I was wondering if there is any way to find out the primary stat of a hero, i could have swore i've seen it before. I need this because i need a condition for one of my spells that would be like (Btw i wrapped it in trigger codes to make it stand out):

  • If Primary stat for 'Unit' is Inteligence Equal to True
Any ideas?
 
It was just to find out what primary stat the hero had. But i just gave all the heroes a passive item ability (so its invis) with no bonuses that was either Int, Agi, or Str. So i can check if they have the ability instead. Problem Solved, but i am still curoius if there is a way to find this out with GuI, im sure there is a way with jass.
 
Well if you're trying to identify a specific TYPE of hero, I can understand. Either way, there are multiple workarounds. Like you did, you jsut gave a passive ability that did nothing. There's other ways to do it, but that's one of them. Either way, problem solved.
 
Status
Not open for further replies.
Back
Top