- Joined
- Aug 4, 2006
- Messages
- 357
Okay so we can use arrays in sc2. Great. But are there any data structures that do the equivalently opposite thing? For example, I have an array of regions. When a unit enters one of these regions, I want to use the entered region to figure out what index of the array that region belongs to (in less than O(n) time). I think Data Tables might do the trick, but the keys have to be strings. Of course, you can convert integers to strings, but I have found no way to get the "handle id" or address of any types. Does anyone know how to do this?