In my game, travelling distances are important. They are stored in an array names ArrayDistances like this :
At some points of the game, I have to retrieve the values in the table but instead of using numbers for coordinates (I know how to do that), I need to use places names (chateau, village, etc).
So my code won't be :
Value = ArrayDistances.At(2,3)
but
Value = ArrayDistances.At(cell X coordinate where value ="tour", cell Y coordinate where value="village")
Any idea on how to do that ?
try this
+ Array: For each XYZ element
+ Array: Contains "village" value
-> Array: Set value in (Array.CurX, Array.CurY) to 0