How can I have BP children communicate with Widget Children

I am currently trying to build a Pokedex entry system. The idea is that in the level there are Pokemon that you can interact with. Once interacted the Pokede entry pops up, and from now on when you look at the entry in the Pokedex it becomes visible. I already had a working system before, but it involved a lot of hard coding and wasnt flexible or changeable, so I decided to rework it. This now involves a parent pokemon bp and a parent entry widget, so that I can make changes easier on myself in the future.

I have been able to figure out quite a bit already but now I am stuck at several points. How the system works is that there is a name array with all the Pokemon names. So once you interact with a Pokemon by pressing E, the blueprint would look at the individual childs name, and what index number it would corespond to in the PokemonList Array and set this number as the Pokemon Number.

after that there is a boolean array that sets the individual index number to true, so that the pokedex and another event can look if the pokemon was found.

image

I think these parts work already though I am not sure how to check if the boolean array works just yet. The main issue now lies in comunicating with the Pokedex Entry Widget Parent.

  1. I dont know how to put the individual widget children into an array or other system where I can give them an index number that correponds to a name variable, which would be the same name as the pokemons. This way no matter what I change the widget and pokemon should always be partnered up.

This is what I tried to do but as you can see it doesnt add up and also it seems like the bp cant read the information it gets from the array since the print string always gives out “none”

  1. I dont kow how to call these children. Can I just call the parent and it will adress all the children?

  2. I would like to swap out the pokemon picture in the children but I seem to be unable to swap them, even though I made the picture a variable.

My solution for checking the boolean array from earlier would be this. Please tell me if you see something inherently wrong with it.

Okay so turns out you can create an array of user widgets and just add all the children you want. Then it is important to visualize them in the actor already, as the communication between the two parents with custom events wont reach the children most of the time.

Protip, try to use enums instead of arrays for compex list like that. Requires you to make less variables that complicate stuff.

Also you need to save the boolean arrays in your character as it will not be able to store the information otherwise

You may also want to jsut use a get node on the boolean arrays instead of a loop. Less confusing for me personaly

Lastly you can change the widget pictures by creating an array with all pictures and feeding this array the same integer value that you would use for the children array in the pre-construct script.