How to Increment Row Name?

Im trying to make it so I put all the spells that are in my Datatable into the Attacks in Library Array. From following a youtube tutorial Im trying to alter it so all it does is take the row name, which are all numbers, and increment them and then plug that result into the Set Learn variable. Im not really sure how to do this becuase the pins won’t connect. Sorry, total noob here.

You could loop over the table, and collect the row names in an array. That’s something you can step though.

1 Like

You can use the “Get Data Table Row Names” function to get an array of Row Names and Loop through those using a For Each Loop.

1 Like

Im not sure I have enough knowledge to do this right, What am I missing here?

In between the For Each Loop and the AddUnique node add the Get Data Table Row Function and use the Array Element pin as the Row Name. Then connect the Out Row struct pin to AddUnique.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.