'Index' Variable?

2evil

New Member
Reaction score
16
This may sound a little stupid, but is there any way to make a variable index other variables? ex. array_index[1]=weapons array and array_index[2]=armors array?

for my map, I have 7 weapon groups, all defined by arrays. So all of those items are in the category (weapons) and the subcategory (axe, sword,...). So instead of setting a slot in both arrays to the same weapon i wanted to set all of the subcategories and then define that weapons[1]=item-type group axe[all]

thanks
 

SFilip

Gone but not forgotten
Reaction score
634
That would be a matrix array and, unfortunately, its not possible to do with WE.
However Vexorian developed an arrays system that allows you to do just that as a part of the CSCache.
If you don't know Jass then you can stick with the simple solution. For example use a prefix - index 1056 for the position 56 in the "group" 1. Take note though that the last index possible to set is 8191.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top