[SUPPORT] Advanced Turn Based Tile Toolkit

Just to add to what I posted before; You will want to Clear the Resource Array before looping through all of the actors found, because you wouldn’t want it to add to what is already in it from the previous pawns turn, only on the current pawns turn.

I think the issue you are having here is that you are also using the Make Choice Array in the wrong context and it is trying to attack the Resource Index tile Instead of a Pawn (which it was intended for). The Branch check for ‘Is the best target pawn in attack range?’ will always be True and it will always move to it and attempt to attack.

You need to include your own logic; Checking first if the lowest Resource Index is less than the ‘Pawn with Lowest Health from Choice Array’ Index. If True, move to the Resource Index, if False, connect to the Branch for ‘Is the best target pawn in attack range?’.