Help to make a JRPG Party system

I would like to make a JRPG quite alike to pokémon.
I have a base for an overworld. I have a pokémon-like tall grass encounter system set up in the ‘thirdpersongamemode’ blueprint. I want to store the player’s characters in a series of structures. Is there any way to call a structure by a name, where the name is determined by a variable.

So it would go a little something like this:
Get the player’s party list,
Get the first character in the party’s name,
Use that name to call to the structure with the matching name,
Read the variables in that structure,
Use said variables to set as the player’s stats.

The issue with this is that I can’t figure out how to set up a way to call a structure by an undetermined name.

You can create a map of your struct and some key (where the key could be a name) to achieve this.
Then you can use the “Find” function, passing in the search name and giving you your desired struct.

Here’s how:

  1. Make a new variable in your blueprint.
  2. Navigate to the details panel and…
  3. …change your variable type to Name
  4. Click the icon at the right side of the drop-down list. It’ll be a purple hyphen-type thing.
  5. Change that to the bottom icon (3 vertical dots)
  6. Change the defaulted “Integer” drop-down to your struct.
  7. Populate it with the name - struct associations.

Thanks very much, I managed to get it working. :slight_smile: