View Single Post
  #1279  
Old December 6th, 2007, 12:19 PM
Captain Kwok's Avatar

Captain Kwok Captain Kwok is offline
National Security Advisor
 
Join Date: Oct 2001
Location: Toronto, Canada
Posts: 5,624
Thanks: 1
Thanked 14 Times in 12 Posts
Captain Kwok is on a distinguished road
Default Re: Balance Mod

The other variables are there because they contain information that needs to remain associated with whatever "column" is chosen for the sort. Basically, it's like creating a new "list window" screen where you have all these columns and can sort by each one. In this case, we're just sorting by the distance column.

For example, the value stored in lst_AI_Attack_Location_Owner index 1 is associated with the value stored in lst_AI_Attack_Location_Distance index 1. When a sort is executed on the values in lst_AI_Attack_Location_Distance, the indexes are changed, so that index 1 might become index 5 etc. In conjunction, the index 1 value for lst_AI_Attack_Location_Owner needs to be switched to index 5 as well, to maintain the integrity of the data.
__________________
Space Empires Depot | SE:V Balance Mod
Reply With Quote