赞 | 35 |
VIP | 0 |
好人卡 | 0 |
积分 | 68 |
经验 | 0 |
最后登录 | 2025-4-15 |
在线时间 | 445 小时 |
Lv4.逐梦者
- 梦石
- 0
- 星屑
- 6755
- 在线时间
- 445 小时
- 注册时间
- 2021-12-4
- 帖子
- 482
|
- Game_System.prototype.onBattleStart = function() {
- this._battleCount++; // 战斗开始时
- };
- Game_System.prototype.onBattleWin = function() {
- this._winCount++; // 战斗胜利时
- };
- Game_System.prototype.onBattleEscape = function() {
- this._escapeCount++; // 逃跑成功时
- };
- Game_System.prototype.onBeforeSave = function() { // 保存游戏前
- this._saveCount++;
- this._versionId = $dataSystem.versionId;
- this._framesOnSave = Graphics.frameCount;
- this._bgmOnSave = AudioManager.saveBgm();
- this._bgsOnSave = AudioManager.saveBgs();
- };
- Game_System.prototype.onAfterLoad = function() { // 读取存档后
- Graphics.frameCount = this._framesOnSave;
- AudioManager.playBgm(this._bgmOnSave);
- AudioManager.playBgs(this._bgsOnSave);
- };
复制代码
上面五个函数位于 rpg_objects.js 第 220 行附近,只要在其中添加以下代码即可:
$gameSwitches.setValue(i, true); // 第 i 号开关设为 ON
$gameSwitches.setValue(j, false); // 第 j 号开关设为 OFF
$gameVariables.setValue(k, v); // 第 k 号变量值设为 v |
|