If you have all the dialogue at Y=0 column and the animation names at Y=1 column then the dialogue is array.at(loopindex,0) and the animation name is at array.at(loopindex,1) when in a for loop to run through the array. If it's slower than this you could put it in a function and replace loopindex with a parameter variable that increments and you add 1 to every time you call the function.