From bb220a8730e31a7971f0e68d432ff10664eaaad1 Mon Sep 17 00:00:00 2001 From: onms Date: Thu, 22 Jan 2026 15:50:21 -0600 Subject: [PATCH] (hopefully) fixed SexTxtSet running out of the box --- www/data/CommonEvents.json | 19 +++++++++++++------ www/js/plugins/JsScript33Set.js | 18 ++++++++++++------ 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/www/data/CommonEvents.json b/www/data/CommonEvents.json index 2886dc4..daece85 100644 --- a/www/data/CommonEvents.json +++ b/www/data/CommonEvents.json @@ -13390,21 +13390,28 @@ "code": 655, "indent": 1, "parameters": [ - "\"She wears provocative clothes so she won't be underestimated,\"," + "\"She wears provocative clothes so she won't be\"," ] }, { "code": 655, "indent": 1, "parameters": [ - "\"but in reality, she has almost no sexual experience. Deep\"," + "\"underestimated, but in reality, she has almost\"," ] }, { "code": 655, "indent": 1, "parameters": [ - "\"down, she's actually a romantic and a bit of a maiden.\"" + "\"no sexual experience. Deep down, she's actually\"," + ] + }, + { + "code": 655, + "indent": 1, + "parameters": [ + "\"a romantic and a bit of a maiden.\"" ] }, { @@ -13603,21 +13610,21 @@ "code": 655, "indent": 4, "parameters": [ - "\"Sex addict. If she goes even a day without sex, she\"," + "\"Sex addict. After even a day without sex, she'll get\"," ] }, { "code": 655, "indent": 4, "parameters": [ - "\"gets horribly stressed. On days when there are no\"," + "\"horribly stressed. On days when there are no 'buyers,'\"," ] }, { "code": 655, "indent": 4, "parameters": [ - "\"'buyers,' she goes out to the back alleys to pick up men.\"" + "\"she goes out to the back alleys to pick up men.\"" ] }, { diff --git a/www/js/plugins/JsScript33Set.js b/www/js/plugins/JsScript33Set.js index fb7a233..0fd24f3 100644 --- a/www/js/plugins/JsScript33Set.js +++ b/www/js/plugins/JsScript33Set.js @@ -1,7 +1,7 @@ let _メニュー_保存変数 = Game_System.prototype.initialize; Game_System.prototype.initialize = function () { _メニュー_保存変数.call(this); - this.SexTxt = ["", "", ""]; + this.SexTxt = ["", "", "", ""]; }; const MenuPic = "pictures/Menu/"; let MenuOpen = false; @@ -1399,11 +1399,16 @@ Game_Interpreter.prototype.MSklLayerL1_Update = function () { } } const M_Sex_Pic = MenuPic + "Sex/"; -Game_Interpreter.prototype.Menu_SexTxtSet = function (_TxtA, _TxtB, _TxtC) { - $gameSystem.SexTxt = ["", "", ""]; +Game_Interpreter.prototype.Menu_SexTxtSet = function (_TxtA, _TxtB, _TxtC, _TxtD) { + _TxtA = typeof _TxtA !== 'undefined' ? _TxtA : ""; + _TxtB = typeof _TxtB !== 'undefined' ? _TxtB : ""; + _TxtC = typeof _TxtC !== 'undefined' ? _TxtC : ""; + _TxtD = typeof _TxtD !== 'undefined' ? _TxtD : ""; + $gameSystem.SexTxt = ["", "", "", ""]; $gameSystem.SexTxt[0] = _TxtA; $gameSystem.SexTxt[1] = _TxtB; $gameSystem.SexTxt[2] = _TxtC; + $gameSystem.SexTxt[3] = _TxtD; } const VN_淫乱度 = 3; const VN_経験人数 = 136; @@ -1449,9 +1454,10 @@ Game_Interpreter.prototype.Menu_L1Sex_OpnView2 = function () { this.SpriteStrR(PN_mSxSumTxt + 0, $gameVariables.value(VN_経験人数) + "", 30, 381, 231 + (58 * 0), 0); this.SpriteStrR(PN_mSxSumTxt + 1, $gameVariables.value(VN_絶頂人数) + "", 30, 381, 231 + (58 * 1), 0); this.SpriteStrR(PN_mSxSumTxt + 2, $gameVariables.value(VN_射精人数) + "", 30, 381, 231 + (58 * 2), 0); - this.SpriteStr(PN_mSxIrnTxt + 1, $gameSystem.SexTxt[0], 17, 93, 584 + (32 * 0), 0); - this.SpriteStr(PN_mSxIrnTxt + 2, $gameSystem.SexTxt[1], 17, 93, 584 + (32 * 1), 0); - this.SpriteStr(PN_mSxIrnTxt + 3, $gameSystem.SexTxt[2], 17, 93, 584 + (32 * 2), 0); + this.SpriteStr(PN_mSxIrnTxt + 1, $gameSystem.SexTxt[0] || "", 17, 93, 584 + (32 * 0), 0); + this.SpriteStr(PN_mSxIrnTxt + 2, $gameSystem.SexTxt[1] || "", 17, 93, 584 + (32 * 1), 0); + this.SpriteStr(PN_mSxIrnTxt + 3, $gameSystem.SexTxt[2] || "", 17, 93, 584 + (32 * 2), 0); + this.SpriteStr(PN_mSxIrnTxt + 0, $gameSystem.SexTxt[3] || "", 17, 93, 584 + (32 * 3), 0); let _OCStr = "\\oc[rgba(255,255,255,1)]"; let _KaisuSize = 28; let _KaisuYZure = -8;