HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Primary Attribute Comparison

02-04-2006, 04:50 PM#1
BanishedSoull
Is there any condition to compare a hero's primary attribute?
such as

if Primary Attribute of Triggering Unit = Strength
then...

I have no idea how to use JASS, so any JASS solutions will not help.
02-04-2006, 06:32 PM#2
PCPharaoh
I can't see any simple way to do this. You could try setting the custom value of heroes to 1 if strength, 2 if agility, and 3 if intelligence, and then go from there.
02-04-2006, 08:17 PM#3
Captain Griffen
Is the primary attribute always the higest base attribute?

If so, then if the strength = max(strength, agility, intelligence).

If not, then maybe a variable array with hero's information, or just setting custom value.
02-04-2006, 08:41 PM#4
Thunder_Eye
Well that would work on a melee map.
02-04-2006, 09:33 PM#5
Vexorian
Actually to my understanding even some melee heroes have greater X attribute than their main one.

I ran into this problem once, the only way I found was to abuse point value. So I changed point value in object editor so intelligence heroes had 1 , strength heroes 2 and agility heroes 3. So I compared the unit's point value
02-11-2006, 05:46 PM#6
qwertyui
Sorry for a bit of thread necromancy, but can someone please go into a bit more detail as to how point value works and how to retrieve it with triggers?
02-11-2006, 07:35 PM#7
Vexorian
point value is a field in object editor that doesn't seem to do anything.

But there is a trigger function that can read it.
02-11-2006, 08:40 PM#8
Captain Griffen
Points value is the value in points for making the unit (unit score), I think. So in-game, has no effect.