MV Adding items and actors by array

Hello everyone I'd need help in coding a simple plugin/script to add items and actors from array variables.

Let's say I have a string like:
John, Mary, Sword, Shield, Matthew, Spear

I put the variable 01 to be an array of those strings

variable 01: [John, Mary, Potion, Mana Potion, Matthew, Spear]

now, I have a txt list of corresponding Name and database id number:

names.txt:
Mary: 001
Matthew: 002
John: 003
...
...
items.txt
Potion: 001
Mana Potion: 002
...
...
weapons.txt
Sword: 001
Spear: 002


How can I write a small plugin to execute a plugin command to add all the array stuff?
It should
1) compare the array strings with the text files
2) find which id number each string is
3) add the id number for every txt category (weapon, item, actor, and so on).
I hope you don't take this in the wrong way, but I think it would be better if you describe what you want and request the plugin from someone else.
Your description above shows several errors that point out to the fact that you never really learned programming, and you would have to have at least the basics to learn to write a plugin.

1) NEVER use leading zeroes for numbers in programming.
It would be Potion: 1 Mana Potion: 2 and NOT 001 002 and so on.

2) Strings are always encapsuled in ' or " depending on language.
Anything without that is not a string, but a name for a variable, constant or function
Your tones are quite aggressive. Of course those are not symbols from programming language nor from any experimental plugin, but just ways to display what I need. Thank you for the non-help, I'll go learning programming or commission it to some computer guy instead of asking the community here next time.
Your tones are quite aggressive. Of course those are not symbols from programming language nor from any experimental plugin, but just ways to display what I need. Thank you for the non-help, I'll go learning programming or commission it to some computer guy instead of asking the community here next time.

And you're overreacting as well. What Andar told you has been some of the basic mistakes newcomers have made in the past. You really should pay attention to them because that's what everybody had to learn, no matter if they are eventers or scripters.
Hello everyone I'd need help in coding a simple plugin/script to add items and actors from array variables.

Let's say I have a string like:
John, Mary, Sword, Shield, Matthew, Spear

I put the variable 01 to be an array of those strings

variable 01: [John, Mary, Potion, Mana Potion, Matthew, Spear]

now, I have a txt list of corresponding Name and database id number:

names.txt:
Mary: 001
Matthew: 002
John: 003
...
...
items.txt
Potion: 001
Mana Potion: 002
...
...
weapons.txt
Sword: 001
Spear: 002


How can I write a small plugin to execute a plugin command to add all the array stuff?
It should
1) compare the array strings with the text files
2) find which id number each string is
3) add the id number for every txt category (weapon, item, actor, and so on).
Aside from the (admittedly blunt, but that's par for the course for him) advice from Andar, I have to wonder...what is this plugin accomplishing that renders your task easier than it would otherwise be? I'm struggling to understand why you need to do it this way rather than just using separate arrays for each kind of thing.

Traversing through the entirety of Actors.json, Items.json and Weapons.json (assuming those are the only data files you'll be doing this with, which might not even be the case) seems like it would be horrendously inefficient when you only need to find one thing from it.
I'll go learning programming or commission it to some computer guy instead of asking the community here next time.
Well, you said you "need help coding a simple plugin" which would require you to learn programming or be the "computer guy".

Also your plugin idea is not at all simple. I know some computer stuff and it sounds like a massive pain to implement.
Well, the OP would have to know how to implement a file parser. It's an intermediate level task for sure, highly inconvenient for noobs.

Original thread: https://forums.rpgmakerweb.com/threads/adding-items-and-actors-by-array.159172/