| 09-23-2007, 11:28 AM | #1 |
Hey can somebody help me ? I made a trigger in GUI (im 0 in jass) that needs to detect the primary attribute of one hero and give you another one of the same attribute so could somebody help me if you know how to do in in jass can u write me the functions needed for detecting and for a condition to check if the hero is STR/AGI/INT :) thx a lot |
| 09-23-2007, 11:35 AM | #2 |
From GUI knowledge... As long as their primary attribute remains the largest at all times, just check for NON-BONUS stats via integer comparison. If it's not, just use a massive If/Then/Else Multiple Actions comparison. |
| 09-23-2007, 11:36 AM | #3 |
Yea but there are cases when the primary isn't not the biggest :D |
| 09-23-2007, 12:04 PM | #4 |
You could use points value of heroes (0 == agility, 1 == strength, 2 == intel) if you don't use it to store other info. It has no impact on gameplay. |
| 09-23-2007, 12:47 PM | #5 |
Yea but is there a way to set that in the editor cause if not ill have to do the thing when they spawn and thats a lil bit useless because i can do that to check the primary too :( Edit: i found point value sry :P |
