I’m curious what the most performant way is to do this.
Suppose that, periodically during gameplay, I generate a name value (in this case, the name of a move which successfully connects). I want to count all of the moves that occur so that, at the end of a round, I can supply a player with which move they used the most.
Suppose also, for the sake of argument (since it’s true), that there are something on the order of 200+ things that this name value could BE, so it would be rather unwieldy to use a SwitchOnName node and a big-*** list of Integer vars, one for each possible name.
I considered using an array of Ints for this, but the problem is I don’t have a really meaningful way of transforming names into array indices. I have all of the moves stored in a large DataTable, but given a RowName for a DataTable there’s not actually a way to retrieve the row number.
I COULD go and add a new column to this table and just manually number from 0-whatever and use that value as a “MoveIndex” value… but it seems like I might be overlooking a much simpler way of doing this.