I personally dislike core-scripts unless you have like 20 public plugins or something alike. But that is personal. Also I wouldn't use a single core-file for handling parameters for all of your scripts for several reasons.
The plugin-command will simply do nothing (or at least not crash) if the plugin that normally processes it is disabled. Imo everything you are "debating" is a no-go. It feels to me that you are trying to make something that was a must in Ace, but not in MV anymore.
I would advise you to look at other major scripters and look how they implement it.
This is my personal template for new plugins (note the absence of an anonymous function, Iavra would probably kill you if you do this
😛 . But you can add an anonymous function if you want. The Silv.AddAlias ensures that the aliases still remain public):
Spoiler
//=============================================================================// Silv<scriptName>.js// Version: 1.00//=============================================================================/*: * @plugindesc v1.00 <description> <Silv<scriptName>> * @author Silver * * @param -- General -- * * @param foo * @desc foo * @default foo * * @help * * *-------------------------------------- * Version History: *-------------------------------------- * v.1.00 (day month 2015) * - First Release * */// Importedvar Imported = Imported || {};Imported.SILV_<scriptName> = 1.00;// #Parametersvar Silv = Silv || {};Silv.<scriptShortName> = Silv.<scriptShortName> || {};Silv.Parameters = $plugins.filter(function(p) { return p.description.contains('<Silv<scriptName>>'); })[0].parameters;// GeneralSilv.<scriptShortName>.foo = parseInt(Silv.Parameters['foo']); // Dependencies//if (!('<requiredScript>' in Imported) || (Imported.SILV_<requiredScript> < 1.00)) { throw new Error('ERROR: "Silvers <scriptName>" requires "Silvers <requiredScript>" v1.00 or higher. It must be placed above this plugin.'); }// AliasSilv.Alias = Silv.Alias || {};if (!Silv.AddAlias){ Silv.AddAlias = function(alias, original_method) { if (Silv.Alias[alias]) { throw new Error('Alias already exists: ' + alias); } Silv.Alias[alias] = original_method; };}//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Utilities////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Your Code////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// This is the end of this awesome script!//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
I just use ctrl+f and replace the strings like <scriptName>. There is also a basic decency-check in it.
Also it only uses a single SHARED-global-variable (Silv) between all of my scripts, not even the aliases are cluttering the global Window. They are nicely stored in Silv.Alias and are always checked for uniqueness. This helps me greatly with debugging and lessens the chances of compatibility issues.