do-disciplinary-committee-m.../www/js/plugins/ShowActorFaces.js
2025-05-04 14:43:03 -05:00

74 lines
1.9 KiB
JavaScript

//--------------------------------------------------
// ShowActorFaces.js
//--------------------------------------------------
/*:
* @plugindesc プレースホルダー
* @author すず
* @help
* プラグインコマンド
* SHOW_ACTOR_FACES or アクター画像表示
*/
(function(){
'use strict';
var getCommand = function(c){
return (c || "").toUpperCase();
};
//--------------------------------------------------
// Game_Interpreter
//--------------------------------------------------
Game_Interpreter.prototype.pluginCommandShowActorFaces = function(){
switch($gameActors._data[1]._equips[1]._itemId){
case 2: //全裸(通常時)
var name = "[1-02]00"
break;
case 3: //全裸(通常時)
var name = "[1-03]00"
break;
case 4: //全裸(通常時)
var name = "[1-04]00"
break;
case 5: //全裸(通常時)
var name = "[1-05]00"
break;
case 6: //全裸(通常時)
var name = "[1-06]00"
break;
case 7: //全裸(通常時)
var name = "[1-07]00"
break;
case 8: //全裸(通常時)
var name = "[1-08]00"
break;
default:
console.log($gameActors._data[1]._equips[1]._itemId);
console.log("該当するものがありません。");
break;
}
if($gameVariables.value(179)<10){
name +="0"+ $gameVariables.value(179);
}
else{
name += $gameVariables.value(179);
}
$gameScreen.showPicture(5, name, 0, 0, 0, 100, 100, 255, 0);
};
var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand;
Game_Interpreter.prototype.pluginCommand = function(command, args){
_Game_Interpreter_pluginCommand.apply(this, arguments);
var commandName = getCommand(command);
switch (commandName) {
case "SHOW_ACTOR_FACES":
case "アクター画像表示":
this.pluginCommandShowActorFaces();
break;
}
};
})();