- Joined
- Sep 9, 2009
- Messages
- 658
Like in Ressurection and Animate Dead. By unit cost? Or some other factor like max hp?
im not sure wat ur trying to ask lol. can u plz explain a little better ?
When you use Resurrection or Animate Dead and there are more than 6 untits, they bring back the strongest ones. I just want to k ow how they do the checking.
it probably does a lvl check or a priority check. the priority for units may come in handy with this. im not sure if u can check a units priority with triggers.
what u would have to do is use a hashtable and save the units and there priority then do a check to see which unit has the highest priority and revive that one.
Maybe your right! let see.
EDIT:
He's right, I saw the units priorities. Stronger units will ressurect Because they have higher priority.
You're WelcomeSo the game checks unit level to determine unit strength...got it! Thanks!