| 10-29-2003, 02:53 AM | #1 |
well.. i will like to do this in my map but the triggers are kinda hard this time... in my map the "duels" will be each 3 mins. but i want to select 2 heros with the most high experience and put them in the center (each hero must be enemy of the other 1) but in the next duel.. i wanna select diferent heros but with the same experience to figth in the duel is there any trigger to do this??? to select 2 diferent enemy heros in ech duel to fight in the center AND those heros must be at same lvl or close to make a fair battle???? plz help with this |
| 10-29-2003, 03:09 AM | #2 |
You want the people with the highest, or just similar EXP? For random units with similar EXP- You could probobly do this a few ways, but I'd do something like this: -Every .01 seconds If If (AbsValue((Random Unit from Team 1's EXP) - (Random unit from team 2's EXP)) is less than or equal to (whatever you want the range to be) Then Set these two units to variables (duelist[1] and [2]) or something) Run the duel trigger with these 2 units Else Do nothing |
