How to build a Dynamic Drop down menu that changes values etc.

Hello, I am kind of an amateur, but I’ve been able to figure everything else out but this.

I am trying to build a menu that you add your own names to. (this part is done).

However, I am have trouble trying to set some variable settings due to what named named entry is chosen during gameplay.

So basically you can pick some settings, then you can save those settings.. Actor quantity of varying types of actors, Actor Skin etc. Then, later you can go back to the drop down menu and select that name in the dropdown and it loads all of those settings automatically.

I think I have gotten as far as placing possible variables into a struct, then having those settings change based on the selection.

What I’m having a problem with is figuring out how to take the named dropdown array and tying it to and saving those settings in the struct and have it different for each named menu item in the array.
I think this is an array within an array type thing. And I think I do need to use maps for this.

But I just can’t for the life of me wrap my head around how to get it done. I’ve searched for hours for something similar and have been not able to do so.

I think it’s basically having some menu settings but having it be variable, which is the confusing part cause you have to retrieve settings that are not constant.

I tried to explain this as clearly as possible. But if there needs to be more info please let me know.

Can anyone help me? Thank you!!!

If the values being stored aren’t constant, you’ll probably want to use an array or map of strings. First make a struct called S_SettingsGroup or some such which has a name var and a string array var. Then make an array variable of those (or tuck it into another struct lol).

It will require a bit of convoluted logic to parse the strings, but the Split String node can help speed that up. For example, here, I formatted the strings in array as either “text/[whatever]” or color/(rgba)", split the string with “/” and switched on left output of split, and plugged the right output into the input pins of set text and set color after converting it from string.

Making the formatted string at runtime could be a bit of a headache tho, as you would need to do a bunch of crazy, contextual appends on string. Like if saving a color option, you would have to append “color/” to the color value.