广树
2025-01-18 12:40
@老张博客:张总买?
作者:广树时间:2017-07-13 16:42:42分类:JavaScript/jQuery/Vue
{ "alwaysDash":false, "commandRemember":false, "bgmVolume":100, "bgsVolume":100, "meVolume":100, "seVolume":100, }
[ null, { "globalId":"RPGMV", "title":"RTK1 Dev1", "characters":[["Actor1",0],["Actor1",7],["Actor3",7],["Actor2",6]], "faces":[["Actor1",0],["Actor1",7],["Actor3",7],["Actor2",6]], "playtime":"00:00:04", "timestamp":1468556954489 }, { "globalId":"RPGMV", "title":"RTK1 Dev1", "characters":[["Actor1",0],["Actor1",7],["Actor3",7],["Actor2",6]], "faces":[["Actor1",0],["Actor1",7],["Actor3",7],["Actor2",6]], "playtime":"00:00:48", "timestamp":1468855189632 } ]
{ "system":{ "_saveEnabled":true, "_menuEnabled":true, "_encounterEnabled":true, "_formationEnabled":true, "_battleCount":0, "_winCount":0, // 中间省略 "@":"Game_System" }, "screen":{ "_brightness":255, "_fadeOutDuration":0, "_fadeInDuration":0, "_tone":[0,0,0,0], // 中间省略 "@":"Game_Screen" }, "timer":{"_frames":0,"_working":false,"@":"Game_Timer"}, "switches":{"_data":[null,null,null,null,null,null,null,null,true],"@":"Game_Switches"}, "variables":{"_data":[],"@":"Game_Variables"}, "selfSwitches":{"_data":{"1,3,A":true},"@":"Game_SelfSwitches"}, "actors":{ "_data":[ null, { "_actorId":1, "_name":"Harold", "_nickname":"Sword boy", "_hp":450, "_mp":90, "_tp":0, "_hidden":false, "_paramPlus":[0,0,0,0,0,0,0,0], // 中间省略 "@":"Game_Actor" },{ "_actorId":2, // 以下省略 },{ "_actorId":3, // 以下省略 { "_actorId":4, // 以下省略 } ], "@":"Game_Actors" }, "party":{ "_inBattle":false, "_gold":2000, "_steps":0, "_lastItem":{"_dataClass":"","_itemId":0,"@":"Game_Item"}, "_menuActorId":0, "_targetActorId":0, "_actors":[1,2,3,4], "_items":{"1":6,"2":1,"10":50,"11":2,"12":2,"13":2,"14":2}, "_weapons":{"1":1,"2":2,"4":10}, "_armors":{"3":1,"4":1}, "@":"Game_Party" }, "map":{ "_interpreter":{ "_depth":0, "_mapId":0, "_eventId":0, // 中间省略 "@":"Game_Interpreter" }, "_mapId":1, "_tilesetId":1, "_events":[ null, { "_x":4, "_y":1, // 中间省略 "@":"Game_Event" }, // 以下省略 ], "_commonEvents":[], // 中间省略 "@":"Game_Map" }, "player":{ "_x":4, "_y":4, // 中间省略 "_followers":{ "_visible":true, "_gathering":false, "_data":[ // 省略 ]," @":"Game_Followers" }, "_encounterCount":603, "@":"Game_Player" } }
var _Game_Actor_name = Game_Actor.prototype.name; Game_Actor.prototype.name = function() { var ret = _Game_Actor_name.call(this); var f = $gameSystem[N + "_show_id"]; if (f === undefined ? show_id : f) { return ret + ":" + this.actorId(); } else { return ret; } };
var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand; Game_Interpreter.prototype.pluginCommand = function(command, args) { _Game_Interpreter_pluginCommand.call(this, command, args); if (command == N) { if (args[0] == "show_id") { if (args[1] == "on") { $gameSystem[N + "_show_id"] = 1; } else if (args[1] == "off") { $gameSystem[N + "_show_id"] = 0; } } } };
var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand; Game_Interpreter.prototype.pluginCommand = function(command, args) { _Game_Interpreter_pluginCommand.call(this, command, args); if (command == N) { if (args[0] == "show_id") { if (args[1] == "on") { if (show_id) { delete $gameSystem[N + "_show_id"]; } else { $gameSystem[N + "_show_id"] = 1; } } else if (args[1] == "off") { if (!show_id) { delete $gameSystem[N + "_show_id"]; } else { $gameSystem[N + "_show_id"] = 0; } } } } };
var _DataManager_makeSaveContents = DataManager.makeSaveContents; DataManager.makeSaveContents = function() { var contents = _DataManager_makeSaveContents.call(this); // 这里将自己的数据设定成contents return contents; };
var _DataManager_extractSaveContents = DataManager.extractSaveContents; DataManager.extractSaveContents = function(contents) { var ret = _DataManager_extractSaveContents.call(this, contents); // 这里将会从contents中读取数据 return ret; };
Game_Enemy.prototype.name = function() { return this.originalName() + (this._plural ? this._letter : ''); };
this.members().forEach(function(enemy) { var name = enemy.originalName(); if (this._namesCount[name] >= 2) { enemy.setPlural(true); } }, this);
var _Game_Enemy_name = Game_Enemy.prototype.name; Game_Enemy.prototype.name = function() { var ret = _Game_Enemy_name.call(this); return ret; };
var _Game_Enemy_name = Game_Enemy.prototype.name; Game_Enemy.prototype.name = function() { var ret = _Game_Enemy_name.call(this); var f = $gameSystem[N + "_show_eid"]; if (f === undefined ? show_eid : f) { return ret + ":" + this.enemyId(); } else { return ret; } };