Hello,
I am working on some hand-tailored AI scripts and I am currently trying to figure out how to sort a series of values. Let's say that I have 6 units and I want to have an array of their hp values sorted from max to min. How can I do this?
Thanks in advance.
EDIT:
On the same token, what would be the cleanest way (I can imagine the crude way) to sort six hexes based on how many enemies surround it?
I am working on some hand-tailored AI scripts and I am currently trying to figure out how to sort a series of values. Let's say that I have 6 units and I want to have an array of their hp values sorted from max to min. How can I do this?
Thanks in advance.
EDIT:
On the same token, what would be the cleanest way (I can imagine the crude way) to sort six hexes based on how many enemies surround it?
Statistics: Posted by BajMic — Today, 6:54 am