[SUPPORT] Advanced Turn Based Tile Toolkit

Hi Artjom, you can achieve this effect with a couple of modifications.First replace all calls to the EndActiveActorTurn event in BP_TurnManager with calls to EndEntireFactionTurn (a function also in BP_TurnManager). You can find all instances of a function or event by right clicking it, selecting “Find References” and then clicking the “Find in All Blueprints” binoculars icon. This will cause the turn to end for the entire faction whenever the turn would normally just end for a single unit, which I think is what you’re after.

All that remains is to add some nodes so that the AI selects a random unit to use each turn. To do this you could add a check at BeginActorTurn (in BP_TurnManager) to see if the unit to be activated is AI controlled. If it is you would loop through the initiative order array until you find a unit with a different faction than the AI unit. Then you would pick a random item in the initiative array between 0 and this index -1, and continue the BeginActorTurn nodes using this unit.

Hope that helps!