65 lines
1.8 KiB
JavaScript
65 lines
1.8 KiB
JavaScript
/*:ja
|
||
* @target MZ
|
||
* @author ル
|
||
*
|
||
* @command runEpilogue
|
||
* @text エピローグ実行
|
||
* @arg actorId
|
||
* @type number
|
||
* @text actorId
|
||
* @desc actorId
|
||
* @arg scenarioBase
|
||
* @type string
|
||
* @desc シナリオID
|
||
*/
|
||
var Nore;
|
||
(function (Nore) {
|
||
var pluginName = "Nore_Epilogue";
|
||
PluginManager.registerCommand(pluginName, "runEpilogue", function (args) {
|
||
var actorId = parseInt(args.actorId);
|
||
var scenarioBase = args.scenarioBase;
|
||
var actor = $gameActors.actor(actorId);
|
||
var actorName = actor.nameJp();
|
||
if (!actor.lastBaby()) {
|
||
console.error("子供が存在しません:" + actorId);
|
||
return;
|
||
}
|
||
if (!actor.lastBaby().isBote() && !actor.lastBaby().isJusei()) {
|
||
console.error("ボテ腹になっていません:" + actorId);
|
||
return;
|
||
}
|
||
var manId = actor.lastBaby().taneoyaId();
|
||
var man = $gameActors.actor(manId);
|
||
$gameVariables.setValue(52, man.nameJp());
|
||
$gameVariables.setValue(55, manId);
|
||
var text1 = scenarioBase.format(man.nameJp());
|
||
if (this.runDouseiScenario(text1)) {
|
||
return;
|
||
}
|
||
var manParam = MAN_PARAMS[manId];
|
||
if (!manParam) {
|
||
// 想定外のAV男優 バグ修正用
|
||
var type = "子供";
|
||
if (manId == 47) {
|
||
type = "外人";
|
||
}
|
||
var text2_1 = scenarioBase.format(type);
|
||
if (this.runDouseiScenario(text2_1)) {
|
||
return;
|
||
}
|
||
return;
|
||
}
|
||
var text2 = scenarioBase.format(manParam.type);
|
||
if (this.runDouseiScenario(text2)) {
|
||
return;
|
||
}
|
||
console.error(
|
||
""
|
||
.concat(actorName, "\u3068")
|
||
.concat(
|
||
man.nameJp(),
|
||
"\u306E\u30A8\u30D4\u30ED\u30FC\u30B0\u30A4\u30D9\u30F3\u30C8\u304C\u5B58\u5728\u3057\u307E\u305B\u3093"
|
||
)
|
||
);
|
||
});
|
||
})(Nore || (Nore = {}));
|