MZ User-expandable plugin parameters?

So I've seen this done before, but I can't seem to figure out how to do it myself. I want to set up, in parameters, a way for a dev to add new objects beyond my own hard coded ones. I want a certain structure, and I would have a few pre-set examples of that structure, but I want the dev to be able to add/remove them in the parameter window, and still have my plugin be able to recognize and handle the changed number.

If I'm explaining what I'm wanting badly, here's the example I saw. VisuStella's Skill Core plugin, under skill costs. There are a few preset structures handling common skill costs, but you can define more if you want. I would like to know how the ability for a dev to add items to a list like that is pulled off. A plugin idea I have absolutely DEPENDS on this functionality, so I can't even start it until I figure that out.

Thanks in advance!
Afaik, Visu's comment section is not obfuscated. So, why not take a look at how they did it?
Afaik, Visu's comment section is not obfuscated. So, why not take a look at how they did it?
Because it's all a jumbled mess that makes me go cross-eyed trying to follow it. And since they have a LOT of options, AND deal with code evals and regex values, trying to find only what I need, I feel like I'm looking for a needle in a haystack. I can find this bit:
JavaScript:
 * @param Costs:arraystruct
* @text Skill Cost Types
* @parent Skills:struct
* @type struct<Cost>[]
* @desc A list of all the skill cost types added by this plugin
* and the code that controls them in-game.
Everything after that is a bunch of stuff in a huge mess. I can't tell what's what. I see it's a structure array, which might be what I'm after, but setting up default examples? They have too much going on for me to parse it down enough. And obviously since the code itself is obfuscated, how that data is read and used isn't something I can see, and that's the other half of the problem.

It doesn't seem like many other plugins use this stuff, either due to a lack of need, or because it's too complex to deal with regularly, I'm not sure. Google doesn't seem to be much help, probably because of the same reason there aren't more plugins using it floating around.
Well then.
Here is a reference to read

And some example on how to use struct as well as how to read it

Then you can try to go back to read Visu's comment section.
Well then.
Here is a reference to read

And some example on how to use struct as well as how to read it

Then you can try to go back to read Visu's comment section.
I had read that reference, but I didn't know the list was inherently user-expandable. It just said it was a list type and didn't go further in-depth, apparently assuming knowledge I wasn't aware of. But if that's all it is, I should have enough to get started. I'll try to get something simple started tomorrow to make sure I'm fully understanding what I'm reading. If anything screws up and I can't find an answer from the examples you've provided, I'll post again, but I'm hoping my next activity on this thread will be to close it.
Thanks!
Good luck, I'm leaving a reply here so you don't have to edit your post or double post in case if you find a problem 😀
Good luck, I'm leaving a reply here so you don't have to edit your post or double post in case if you find a problem 😀
I think I've managed to get a handle on the basics, and in the process also think I've managed to crack arrow functions (read about them a few times, but for some reason it never really clicked until I started actually using one when I was mimicking your example's style to get mine working). Thanks once more for your help!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/user-expandable-plugin-parameters.134874/