How do I actually use JS Snippets that affect the editor?

There are some Snippets from the JS Snippet thread I want to use in one of my projects, (Mostly the ones that allow me to have larger script boxes while writing common events as I don't want to lose set vars between boxes) but I can't figure out how to use them.

I know I probably have to put them in a pluggin, but I don't know if I'd need to do anything special to get the code in the pluggin to run (as I've never actually created a pluggin myself), so I'm taking the time to ask first so I don't mess anything up.


Thank you in advance for any help you can offer.
You can't - there's no such thing.

The editor isn't coded in JavaScript, and plugins are only loaded when you run a game.

If you're talking about this:

It says:
Multiple script events act as one big script event

It makes no claims of changing the editor, it says they're still multiple script event commands but they act as one big one; not you can actually enter it as one big one.

You would use that code the same way you do any plugin.

I would personally suggest that if you find you have an amount of code that can't fit into the Script box (especially more than once in your project), you should really be outsourcing that to a function in a plugin file rather than trying to cram it into the event editor in the first place.

(random tip: "plugin" only has one "G". It's something you plug into something else)
Ah, fair enough then. I've never worked with plugin files as something like extended script boxes before though, is there a tutorial on how they connect in or something like that?

I've only seen the big plugins like Yanfly's before so I don't know how a smaller thing would actually work or how to import it.

Edit: Nevermind, it was a lot easier than I was worrying about.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-actually-use-js-snippets-that-affect-the-editor.168542/