princess-synergy/www/js/plugins/JsScript168Set.js
2026-02-05 14:03:22 -06:00

20 lines
1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

let Add_SetCmnEvent = Game_Interpreter.prototype.SetCmnEvent;
Game_Interpreter.prototype.SetCmnEvent = function (CmnNo , _SkipFlg) {
let commonEvent = $dataCommonEvents[CmnNo];
if (commonEvent === null || commonEvent === undefined) {
console.log("スクリプトコモンイベントSc" + CmnNo + "未定義またはnull");
return;
}
console.log("スクリプト:コモンイベント" + commonEvent.id + "" + commonEvent.name)
Add_SetCmnEvent.apply(this, arguments);
};
let Add_SetCmnEventSc = Game_Interpreter.prototype.SetCmnEventSc;
Game_Interpreter.prototype.SetCmnEventSc = function (CmnNo , _SkipFlg) {
let commonEvent = $dataCommonEvents[CmnNo];
if (commonEvent === null || commonEvent === undefined) {
console.log("スクリプトコモンイベントSc" + CmnNo + "未定義またはnull");
return;
}
console.log("スクリプトコモンイベントSc" + commonEvent.id + "" + commonEvent.name)
Add_SetCmnEventSc.apply(this, arguments);
};