Could someone check what seems to be the problem in this script.
This example will only use one loop of the code with values:
DD_L_Types = Plains and all other values are 0.
So why does the HexInfo[i] only give the first item in the array?Code:var HexInfo:Array = new Array(); function HexaMaaritys(i, b) { HexInfo[[i][0]] = DukeData_Lands_Types[b]; HexInfo[[i][1]] = DukeData_Lands_RiverNo[b]; HexInfo[[i][2]] = DukeData_Lands_RiverNe[b]; HexInfo[[i][3]] = DukeData_Lands_RiverSe[b]; HexInfo[[i][4]] = DukeData_Lands_RiverSo[b]; HexInfo[[i][5]] = DukeData_Lands_RiverSw[b]; HexInfo[[i][6]] = DukeData_Lands_RiverNw[b]; trace ("A"+HexInfo[i]); trace ("B"+HexInfo[[i][0]]+HexInfo[[i][1]]+HexInfo[[i][2]]+HexInfo[[i][3]]+HexInfo[[i][4]]+HexInfo[[i][5]]+HexInfo[[i][6]]); } // APlains // BPlains000000
And how can I input data into the array so it comes out correctly?





Bookmarks