listAvoids
MicroBlaster edited this page Sep 21, 2019
·
1 revision
Purpose: Populates a user-specified array with the list of sectors currently set on TWX's internal Avoid list.
Syntax: listAvoids {ArrayName}
Notes: A variable matching the name of the array will be created to hold the count and size of the array. So if you named the array $array, then $array will equal the number of Avoids, $array[1] will be the first avoid, $array[2] the second, and so on. Be aware that this is independant from any Avoids set in the game.
Example:
listAvoids $voids setVar $a 1 while ($a <= $voids) setVar $focus $voids[$a] if ($figGrid[$focus] > 0) clearAvoid $focus end add $a 1 end
.