I'm trying to get a loop to work correctly.
The loop will work correctly except for State 4 where the trigger is created on the specific store chosen randomly from my array.
There is also output to a basic UI that updates throughout the loop. This UI updates correctly despite the fact that the trigger never changes to the correct new child chosen randomly. This however does show that the issue is with the trigger and nothing else.
The trigger does however work on the first child chosen. This happens no matter how many times it loops any interaction with the first child will return success.
tl;dr
Why is my trigger not changing when the logic loops and selects a new object child for trigger yet displays the correct new child to UI?