HELP how can I set several gameObjects without manually doing it over and over?

I’m currently working on a game with a select screen full of characters (about 25), each character icon has a script attached to them, and that script must get a few gameObjects. instead of manually going through 25+ objects and manually setting each gameObject one by one in the inspector, is there a faster way I can do this? Maybe like some kind of “set all” or maybe just by setting the gameObjects in the code itself so I don’t need to use the inspector? Thank you.

You can select all your characters with shift, and then set the Variables on all of them. But that only works, if every character has the same script.