【漢化】YEP.180 – Autosave

Introduction

This plugin requires YEP_SaveCore. Make sure this plugin is located under YEP_SaveCore in the plugin list.
這個(gè)插件需要YEP_SaveCore。確保此插件位于插件列表中的YEP_SaveCore下。

Autosave is a common feature found in standard RPG’s nowadays. Games would save at certain triggers or upon changing maps so that the player won’t lose any progress in case they forget to manually save. This plugin adds in an Autosave function to your game(s) and lets you control when to Autosave or set it to do it automatically under certain conditions.
自動(dòng)保存是目前標(biāo)準(zhǔn)RPG中的常見功能。游戲?qū)⒃谀承┯|發(fā)器或更改地圖時(shí)保存,以便玩家在忘記手動(dòng)保存時(shí)不會(huì)丟失任何進(jìn)度。此插件為您的游戲添加了自動(dòng)保存功能,并允許您控制何時(shí)自動(dòng)保存或?qū)⑵湓O(shè)置為在特定條件下自動(dòng)執(zhí)行。

Instructions

There are three ways to go about Autosave with this plugin. Please read them carefully and decide which one(s) is best suited for your game.
使用此插件有三種方法可以實(shí)現(xiàn)自動(dòng)保存。請(qǐng)仔細(xì)閱讀并確定哪一個(gè)最適合您的游戲。

Manual:
– By default, Autosave does not happen automatically with this plugin. You, as the game dev, need to insert the Plugin Command: Autosave at the various points you want the Autosave to occur. This one gives you the most control over your game.
手動(dòng):

  • 默認(rèn)情況下,此插件不會(huì)自動(dòng)進(jìn)行自動(dòng)保存。作為游戲開發(fā)者,您需要插入插件命令:自動(dòng)保存您希望自動(dòng)保存發(fā)生的各個(gè)點(diǎn)。這個(gè)讓你最能控制你的游戲。

Autosave on Map Load:
– This is a Plugin Parameter. When it is set to true, the game will Autosave each time the map scene is loaded. This means entering a new map, coming out of a menu, or finishing a battle. All three of those conditions causes the Autosave function to activate.
自動(dòng)保存地圖加載:

  • 這是一個(gè)插件參數(shù)。當(dāng)它設(shè)置為true時(shí),每次加載地圖場(chǎng)景時(shí)游戲都將自動(dòng)保存。這意味著輸入新地圖,從菜單中退出或完成戰(zhàn)斗。所有這三個(gè)條件都會(huì)導(dǎo)致自動(dòng)保存功能。

Autosave on Main Menu:
– This is a Plugin Parameter. When it is set to true, the game will Autosave each time the player enters the Main Menu from the map scene. Autosave will NOT occur any other way regarding the Main Menu, meaning that coming out of the Item scene to the Main Menu will not activate Autosave.
主菜單上的自動(dòng)保存:

  • 這是一個(gè)插件參數(shù)。當(dāng)它設(shè)置為true時(shí),每次玩家從地圖場(chǎng)景進(jìn)入主菜單時(shí),游戲?qū)⒆詣?dòng)保存。除此外,自動(dòng)保存不會(huì)以任何其他方式發(fā)生,這意味著從項(xiàng)目場(chǎng)景出現(xiàn)到主菜單將不會(huì)激活自動(dòng)保存。

Autosaving will not occur if the player disables Autosave. If you don’t want to give the player the ability to disable Autosave, you can set the Plugin Parameter “Show Option” to false.
如果玩家禁用自動(dòng)保存,則不會(huì)發(fā)生自動(dòng)保存。如果您不想讓玩家禁用自動(dòng)保存功能,可以將插件參數(shù)“顯示選項(xiàng)”設(shè)置為false。

You can use all three methods of Autosaving together. You can have it done manually, Autosave on loading a map, and Autosave on calling the Main Menu to get the most coverage.
您可以將所有三種Autosaving方法結(jié)合使用。您可以手動(dòng)完成,自動(dòng)保存加載地圖,自動(dòng)保存調(diào)用主菜單以獲得最大的覆蓋率。

*NOTE: Although you can use all three methods together, be mindful of your players. Sometimes, saving a game could induce a bit of lag depending on how big the save files are. Autosaving is no different. This is something that cannot be fixed by plugins.
注意:雖然你可以一起使用所有三種方法,但要注意你的玩家。有時(shí),保存游戲可能會(huì)導(dǎo)致一些延遲,具體取決于保存文件的大小。自動(dòng)保存也不例外。這是插件無(wú)法修復(fù)的問題。

*NOTE: Autosaving will not occur until the player saved manually at least once in-game. After that, Autosave will take the slot that was used to save and continue saving to it or whichever save slot the player moved to later.

  • 注意:直到玩家在游戲中至少手動(dòng)保存一次后才會(huì)發(fā)生自動(dòng)保護(hù)。之后,自動(dòng)保存將覆蓋之前的存檔或者下次玩家手動(dòng)保存的存檔。

Plugin Commands

Autosave is manually done by the game developer using plugin commands. There are also other plugin commands that can control autosaving, too.
自動(dòng)保存由游戲開發(fā)人員使用插件命令手動(dòng)完成。還有其他插件命令也可以控制自動(dòng)保存。

Plugin Commands:

Autosave

– This will make the game automatically save in the last saved file slot used by the player. If the player has started a new game and did not save into a slot yet, nothing will happen. If autosave is disabled by the player through the Options menu or disabled by the system with a plugin command, nothing will happen either.
自動(dòng)保存

  • 這將使游戲自動(dòng)保存在玩家上次使用的存檔中。如果玩家已開始新游戲并且尚未保存,則不會(huì)發(fā)生任何事情。如果玩家通過“選項(xiàng)”菜單禁用了自動(dòng)保存,或者系統(tǒng)使用插件命令禁用了自動(dòng)保存,則不會(huì)發(fā)生任何事情。
EnableAutosave
DisableAutosave

– This will forcibly enable or disable autosaving done by the game. This will not bypass the player’s option to disable Autosave if trying to enable it. The player’s decision to disable Autosaving will take priority over the game dev’s. If you wish to take this option away from the player, please change it in the plugin parameters.
這將強(qiáng)制啟用或禁用游戲完成的自動(dòng)保存。如果嘗試啟用它,則不會(huì)繞過玩家禁用自動(dòng)保存的選項(xiàng)。玩家禁用自動(dòng)保護(hù)的決定將優(yōu)先于游戲開發(fā)者。如果您希望將此選項(xiàng)從播放器中取出,請(qǐng)?jiān)诓寮?shù)中進(jìn)行更改。

Options Core Settings – Adding the New Option

If you are using YEP_OptionsCore.js, you can add a new Option using this plugin. Here’s the following code/parameter settings you can use with it.
如果您使用的是YEP_OptionsCore.js,則可以使用此插件添加新選項(xiàng)。以下是您可以使用的以下代碼/參數(shù)設(shè)置。
———
Settings:
———

Name:
\i[231]Autosave
Help Description:
Enables \c[4]Autosaving\c[0] for your game if ON. 
You can still manually save your game.

Symbol:
autosave
Show/Hide:
show = Imported.AutosaveShowOpt;
Enable:
enabled = true;
Ext:
ext = 0;

———-
Functions:
———-

Make Option Code:
this.addCommand(name, symbol, enabled, ext);
Draw Option Code:
var rect = this.itemRectForText(index);
var statusWidth = this.statusWidth();
var titleWidth = rect.width - statusWidth;
this.resetTextColor();
this.changePaintOpacity(this.isCommandEnabled(index));
this.drawOptionsName(index);
this.drawOptionsOnOff(index);
Process OK Code:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, !value);
Cursor Right Code:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, true);
Cursor Left Code:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, false);
Default Config Code:
// Empty. Provided by this plugin.
Save Config Code:
// Empty. Provided by this plugin.
Load Config Code:
// Empty. Provided by this plugin.

Happy RPG Making!

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 前段時(shí)間,在湖南衛(wèi)視春晚上,發(fā)生一幕尷尬的局面,杜海濤在念贊助商時(shí),開口說(shuō):“我們的贊助商是有著百年歷史的招商銀行...
    毛毛蟲的愿望閱讀 2,964評(píng)論 0 1

友情鏈接更多精彩內(nèi)容