It’s not exact but this might guide you in the right direction…
Follow the top comment and use a ForEachLoop as well as marking the correct index along the way. I use the same method for my inventory system and it works perfectly.
Also to send the message like an index count from your pellet BP to the level BP to me seems less modular then having the same variable in a GameHUD UMG and cast to firstpersoncharacter and get the GameHUD object from there to set that variable.