Is there a possible way to make the File 1, File 2, File 3, etc. into custom names? preferably what they've put in the name processing event.
Save file names as \N[1] or custom save file names?
RPG Maker MV Supportyes, its possible, but require a plugin to do so.
change your variableID and save your name in there of the actor.
whatever the actor name, it will become that.
for actors, try $gameActors.actor(1).name()
but variable is easier to control.
JavaScript:
Window_SavefileList.prototype.drawFileId = function(id, x, y) {
this.drawText($gameVariables.value(YOURID), x, y, 180);
};
change your variableID and save your name in there of the actor.
whatever the actor name, it will become that.
for actors, try $gameActors.actor(1).name()
but variable is easier to control.
Thank you for the reply @ShadowDragon I've tried your suggestion and put it as a .js file in the plugin folder. Only to be met with this prompt.
Game_Actor.name() is a function, not a property. You need the parentheses after it.
That's why you're getting the code of that function.
That's why you're getting the code of that function.
I'm sorry, I didn't quite catch on your response 🙁( I should be using $Game_Actor.name(1) instead of $gameActors.actor(1).name?
JavaScript:
$gameActors.actor(1).name()
like ATT_Turan said, it was my mistake not to add it, as saving in a variable,
it would be easier to save your actor name to it.
using that was saver, depending if you can change actors later on or use
a dummy actor for it's name.
I use a dummy actor for it's name or use the main actors nickname instead,
as the main actor name cannot be changed in my game, but the name is purely
used for the savefile alone.
Hell yeah! Thank you for assisting me @ShadowDragon and @ATT_Turan! Though, if it's possible, is there a way to not make every file slot's name as Actor's 1? Or that's pretty much the limit of the code/engine itself?
And as I created a new game and set a new character up, before I can even prompt to save a file, it already set the name 🙂 I might just stick to the File 1, 2, 3, etc. Thank you all.
you need more coding, you change the file index ID to all, if that isn't
what you wanted, you should be more clear to it 🙂
what you wanted, you should be more clear to it 🙂
That's because overwriting
EDIT: Note that this will cause problems with browser versions, as pointed about by @caethyril below.
Window_SavefileList isn't really the right way to do this, since it will show the same thing for every file, instead of only modifying the current savefile. Try this:
JavaScript:
void ((alias) => {
DataManager.makeSavefileInfo = function() {
let res = alias.call(this);
res.title = $gameActors.actor(1).name();
return res;
}
})(DataManager.makeSavefileInfo);
Note that for web games RMMV uses the
title info to determine which saves apply to this game. I'd suggest storing your info in a new property, then drawing that instead. E.g.
JavaScript:
/*:
* @target MV
* @plugindesc Save title = name of actor 1.
* @author Caethyril
* @url https://forums.rpgmakerweb.com/threads/167397/
* @help Free to use and/or modify for any project, no credit required.
*/
// Patch - add new info property.
;void (function(alias) {
DataManager.makeSavefileInfo = function() {
var o = alias.apply(this, arguments);
o.displayName = $gameActors.actor(1).name();
return o;
};
})(DataManager.makeSavefileInfo);
// Override - draw title based on new info instead.
Window_SavefileList.prototype.drawFileId = function(id, x, y) {
var info = DataManager.loadSavefileInfo(id);
var text = info ? info.displayName : "";
this.drawText(text, x, y, 180);
};
Ah, good catch. I only checked where I'm making custom titles in my game and copied that, completely forgetting that I also modified
isThisGameFile to make that work 😅A custom property for save data seems like a more elegant way of handling this.
thank you! this worked fine for me!
Original thread: https://forums.rpgmakerweb.com/threads/save-file-names-as-n-1-or-custom-save-file-names.167397/