4281 lines
218 KiB
JavaScript
4281 lines
218 KiB
JavaScript
/*:
|
||
* @plugindesc スクリプトをプラグインコマンドから実行するプラグイン
|
||
* @author 銀河
|
||
* @help 『MW_CallScript スクリプト名』で使用する。
|
||
*/
|
||
|
||
(function() {
|
||
// プラグインコマンドを上書き
|
||
var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand;
|
||
Game_Interpreter.prototype.pluginCommand = function(command, args) {
|
||
_Game_Interpreter_pluginCommand.call(this, command, args);
|
||
if(command === 'MW_CallScript') {
|
||
var commandName = "BEP_USER_POPUP";
|
||
var result = $gameVariables._data[86]%8;
|
||
if(result==0){$gameVariables._data[266] ^= 1;}
|
||
|
||
//キャラ消し処理
|
||
|
||
if(args[0]=="TextCheck"){
|
||
//if(!!$gameActors.actor(1).armors()[0])console.log($gameActors.actor(1).armors()[0].name)
|
||
//if(!!$gameActors.actor(3).armors()[0])console.log($gameActors.actor(3).armors()[0].name)
|
||
//if(!!$gameActors.actor(6).armors()[0])console.log($gameActors.actor(6).armors()[0].name)
|
||
//if(!!$gameActors.actor(7).armors()[0])console.log($gameActors.actor(7).armors()[0].name)
|
||
//if(!!$gameActors.actor(13).armors()[0])console.log($gameActors.actor(13).armors()[0].name)
|
||
|
||
//var armorIds = [41,42,43,44,51,52,53,54,55,56,57,58,59,60,61,62,66,67,71,72,73,74,77,78,82,83,182,183,184,185,186]; // 所持を確認したい防具のID(例)
|
||
//var ownedArmors = armorIds.filter(id => $gameParty.hasItem($dataArmors[id], false));
|
||
|
||
//if (ownedArmors.length > 0) {
|
||
// console.log("所持している防具のID:", ownedArmors);
|
||
//} else {
|
||
// console.log("指定された防具を1つも持っていない");
|
||
//}
|
||
}
|
||
if(args[0]=="EraseEvent"){
|
||
$gameVariables.setValue(16,$gameVariables.value(16)-32);
|
||
if($gameVariables.value(16)<=0){$gameVariables.setValue(16,0);}
|
||
$gameMap.event($gameVariables.value(15)).setOpacity($gameVariables.value(16));
|
||
}
|
||
if(args[0]=="SamenState"){
|
||
if(!$gameSwitches.value(61)){
|
||
if($gameMap.terrainTag(this.character(-1).x, this.character(-1).y)==1){
|
||
$gameSwitches._data[61] = true;//スイッチ[61]=白濁・媚薬沼監視用スイッチ
|
||
if(!($gameActors.actor(1).isStateAffected(47)||$gameActors.actor(1).isStateAffected(36))){
|
||
$gameSwitches.setValue(235,true)
|
||
$gameVariables.setValue(16,0);
|
||
$gameVariables.setValue(115,$gameVariables.value(115)+15);
|
||
}
|
||
}
|
||
if($gameMap.terrainTag(this.character(-1).x, this.character(-1).y)==2){
|
||
$gameSwitches._data[61] = true;//スイッチ[61]=白濁・媚薬沼監視用スイッチ
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
$gameSwitches.setValue(235,true)
|
||
$gameVariables.setValue(16,1);
|
||
}
|
||
}
|
||
}else if([1,2].indexOf($gameMap.terrainTag(this.character(-1).x, this.character(-1).y))==-1){
|
||
$gameSwitches._data[61] = false;//スイッチ[61]=白濁沼監視用スイッチ
|
||
}
|
||
}
|
||
if(args[0]=="TestHStatus"){
|
||
var statusID = [112,101,102,103,104,105,106,107,108,109,110,111,113,114,115,116,642,643,322,645];
|
||
/*
|
||
console.log("淫 乱 度:" + (" "+ $gameVariables.value(statusID[0])).slice(-4) + " → " + (" "+ ($gameVariables.value(statusID[0])+$gameVariables._data[70][0])).slice(-4))
|
||
console.log("乳房 経験:" + (" "+ $gameVariables.value(statusID[1])).slice(-4) + " → " + (" "+ ($gameVariables.value(statusID[1])+$gameVariables._data[70][1])).slice(-4))
|
||
console.log("乳首 経験:" + (" "+ $gameVariables.value(statusID[2])).slice(-4) + " → " + (" "+ ($gameVariables.value(statusID[2])+$gameVariables._data[70][2])).slice(-4))
|
||
console.log("性器 経験:" + (" "+ $gameVariables.value(statusID[3])).slice(-4) + " → " + (" "+ ($gameVariables.value(statusID[3])+$gameVariables._data[70][3])).slice(-4))
|
||
console.log("陰核 経験:" + (" "+ $gameVariables.value(statusID[4])).slice(-4) + " → " + (" "+ ($gameVariables.value(statusID[4])+$gameVariables._data[70][4])).slice(-4))
|
||
console.log("お尻 経験:" + (" "+ $gameVariables.value(statusID[5])).slice(-4) + " → " + (" "+ ($gameVariables.value(statusID[5])+$gameVariables._data[70][5])).slice(-4))
|
||
console.log("自慰 経験:" + (" "+ $gameVariables.value(statusID[6])).slice(-4) + " → " + (" "+ ($gameVariables.value(statusID[6])+$gameVariables._data[70][6])).slice(-4))
|
||
console.log("性交 経験:" + (" "+ $gameVariables.value(statusID[7])).slice(-4) + " → " + (" "+ ($gameVariables.value(statusID[7])+$gameVariables._data[70][7])).slice(-4))
|
||
console.log("口淫 経験:" + (" "+ $gameVariables.value(statusID[8])).slice(-4) + " → " + (" "+ ($gameVariables.value(statusID[8])+$gameVariables._data[70][8])).slice(-4))
|
||
console.log("露出 経験:" + (" "+ $gameVariables.value(statusID[9])).slice(-4) + " → " + (" "+ ($gameVariables.value(statusID[9])+$gameVariables._data[70][9])).slice(-4))
|
||
console.log("絶頂 経験:" + (" "+ $gameVariables.value(statusID[10])).slice(-4) + " → " + (" "+ ($gameVariables.value(statusID[10])+$gameVariables._data[70][10])).slice(-4))
|
||
console.log("セクハラ 経験:" + (" "+ $gameVariables.value(statusID[11])).slice(-4) + " → " + (" "+ ($gameVariables.value(statusID[11])+$gameVariables._data[70][11])).slice(-4))
|
||
console.log("キス 回数:" + (" "+ $gameVariables.value(statusID[12])).slice(-4) + " → " + (" "+ ($gameVariables.value(statusID[12])+$gameVariables._data[70][12])).slice(-4))
|
||
console.log("経験 人数:" + (" "+ $gameVariables.value(statusID[13])).slice(-4) + " → " + (" "+ ($gameVariables.value(statusID[13])+$gameVariables._data[70][13])).slice(-4))
|
||
console.log("獲得精液量:" + (" "+ $gameVariables.value(statusID[14])).slice(-4) + " → " + (" "+ ($gameVariables.value(statusID[14])+$gameVariables._data[70][14])).slice(-4))
|
||
console.log("中出し回数:" + (" "+ $gameVariables.value(statusID[15])).slice(-4) + " → " + (" "+ ($gameVariables.value(statusID[15])+$gameVariables._data[70][15])).slice(-4))
|
||
console.log("潮吹き回数:" + (" "+ $gameVariables.value(statusID[16])).slice(-4) + " → " + (" "+ ($gameVariables.value(statusID[16])+$gameVariables._data[70][16])).slice(-4))
|
||
console.log("マソ発言回数:" + (" "+ $gameVariables.value(statusID[17])).slice(-4) + " → " + (" "+ ($gameVariables.value(statusID[17])+$gameVariables._data[70][17])).slice(-4))
|
||
console.log("学園 淫行:" + (" "+ $gameVariables.value(statusID[18])).slice(-4) + " → " + (" "+ ($gameVariables.value(statusID[18])+$gameVariables._data[70][18])).slice(-4))
|
||
console.log("淫具 使用:" + (" "+ $gameVariables.value(statusID[19])).slice(-4) + " → " + (" "+ ($gameVariables.value(statusID[19])+$gameVariables._data[70][19])).slice(-4))
|
||
console.log("----------------------------------------------------")
|
||
*/
|
||
}
|
||
if(args[0]=="ReHStatus"){
|
||
if(!$gameActors.actor(1).hasSkill(641)){
|
||
for(var i=0;i < $gameVariables._data[70].length;i++){
|
||
if(i!=13){
|
||
$gameVariables._data[70][i] = Math.ceil($gameVariables._data[70][i]/2)
|
||
}
|
||
}
|
||
}
|
||
}
|
||
if(args[0]=="GetMoney"){
|
||
var baseMoney = $gameVariables.value(228);
|
||
$gameVariables.setValue(228,Math.floor($gameVariables.value(228) * $gameVariables.value(16) * 0.01))
|
||
$gameVariables.setValue(16,baseMoney)
|
||
}
|
||
if(args[0]=="ObtainSP_Basement1"){
|
||
$gameVariables._data[340] = $gameVariables._data[242]; //基礎SP = SP獲得量
|
||
if($gameActors.actor(1).isLearnedSkill(662)){
|
||
$gameVariables._data[16] = 110; //淫魔覚醒3を覚えている場合は倍率1.1
|
||
}else if($gameActors.actor(1).isLearnedSkill(650)){
|
||
$gameVariables._data[16] = 105; //淫魔覚醒2を覚えている場合は倍率1.05
|
||
}else{
|
||
$gameVariables._data[16] = 100;
|
||
}
|
||
|
||
if($gameVariables.value(242)==0){
|
||
console.log("[!]変数242:獲得SPが指定されていません")
|
||
console.log("-------------------------------------")
|
||
}else{
|
||
//▼特定性経験の上昇フラグの設定
|
||
if($gameVariables._data[70][9] >=1)$gameSwitches.setValue(772,true)
|
||
if($gameVariables._data[70][8] >=1)$gameSwitches.setValue(770,true)
|
||
if($gameVariables._data[70][7] >=1)$gameSwitches.setValue(773,true)
|
||
if($gameVariables._data[70][5] >=1)$gameSwitches.setValue(771,true)
|
||
}
|
||
}
|
||
if(args[0]=="ObtainSP_Basement2"){
|
||
$gameSwitches._data[770] = false;
|
||
$gameSwitches._data[771] = false;
|
||
$gameSwitches._data[772] = false;
|
||
$gameSwitches._data[773] = false;
|
||
$gameVariables._data[242] = Math.floor($gameVariables.value(242) * $gameVariables.value(16) * 0.01);
|
||
$gameVariables._data[338] = $gameVariables._data[242] - $gameVariables._data[340];
|
||
|
||
//▼リリィのHP処理
|
||
if($gameVariables.value(125)==1){
|
||
if($gameVariables.value(122) != $gameVariables.value(123)){
|
||
var lossHp = $gameVariables.value(123)-$gameVariables.value(122)
|
||
if(lossHp <= $gameVariables.value(242)){
|
||
$gameVariables._data[242] = $gameVariables.value(242)-lossHp;
|
||
$gameVariables._data[122] = $gameVariables.value(123);
|
||
}else{
|
||
$gameVariables._data[122] = $gameVariables.value(122) + $gameVariables.value(242)
|
||
$gameVariables._data[242] = 0;
|
||
}
|
||
}
|
||
}
|
||
$gameVariables._data[142] += $gameVariables.value(242);
|
||
|
||
if($gameVariables.value(242)>=1){
|
||
$gameSwitches._data[220] = true;
|
||
}
|
||
}
|
||
if(args[0]=="ObtainSP_Basement3"){
|
||
$gameSwitches._data[1] = false;
|
||
$gameParty.loseItem($dataItems[208], 1)
|
||
$gameParty.loseItem($dataItems[211], 1)
|
||
$gameSwitches._data[1] = true;
|
||
|
||
$gameVariables._data[242] = 0;
|
||
$gameSwitches._data[220] = false;
|
||
}
|
||
if(args[0]=="CharacterJump"){
|
||
var character = this.character($gameVariables.value(15));
|
||
var currentX = character.x;
|
||
var currentY = character.y;
|
||
if($gamePlayer.direction()==2){var newX = currentX - 10;var newY = currentY + 10;}
|
||
if($gamePlayer.direction()==4){var newX = currentX - 10;var newY = currentY - 10;}
|
||
if($gamePlayer.direction()==6){var newX = currentX + 10;var newY = currentY - 10;}
|
||
if($gamePlayer.direction()==8){var newX = currentX - 10;var newY = currentY - 10;}
|
||
character.requestAnimation(1)
|
||
character.jump(newX - currentX, newY - currentY);
|
||
}
|
||
if(args[0]=="SkillPanel_Explain"){
|
||
$gameVariables._data[17]=0;
|
||
if($gameMap.regionId(this.character(-1).x, this.character(-1).y)==1){
|
||
for(var count =2;count<=25;count++){$gameScreen.erasePicture(count);}
|
||
}else if($gameMap.regionId(this.character(-1).x, this.character(-1).y)==2){
|
||
var id = $gameMap.eventIdXy(this.character(-1).x, this.character(-1).y);
|
||
if((id>=60)&&(!$gameSwitches.value(192))){
|
||
$gameScreen.showPicture(2,"[SkillPanel]SkillRock", 0, 0, 0, 100, 100, 255, 0);
|
||
$gameScreen.showPicture(3,"[SkillPanel]Status0", 0, 59, 392, 100, 100, 255, 0);
|
||
}else if((id>=29)&&(!$gameSwitches.value(191))){
|
||
//例外処理
|
||
console.log(id)
|
||
console.log($gameVariables._data[65][id])
|
||
if(id==31){
|
||
id--;
|
||
if($gameVariables._data[65][id]==2){
|
||
$gameScreen.showPicture(2,"[SkillPanel]Skill" + id, 0, 0, 0, 100, 100, 255, 0);
|
||
$gameScreen.showPicture(3,"[SkillPanel]Status" + $gameVariables._data[65][id], 0, 59, 392, 100, 100, 255, 0);
|
||
$gameVariables._data[17]=id;
|
||
}else if(($gameVariables._data[65][id]==0)){
|
||
$gameScreen.showPicture(2,"[SkillPanel]SkillRock", 0, 0, 0, 100, 100, 255, 0);
|
||
$gameScreen.showPicture(3,"[SkillPanel]Status0", 0, 59, 392, 100, 100, 255, 0);
|
||
}
|
||
}else{
|
||
$gameScreen.showPicture(2,"[SkillPanel]SkillRock", 0, 0, 0, 100, 100, 255, 0);
|
||
$gameScreen.showPicture(3,"[SkillPanel]Status0", 0, 59, 392, 100, 100, 255, 0);
|
||
}
|
||
}else{
|
||
id--;
|
||
$gameScreen.showPicture(2,"[SkillPanel]Skill" + id, 0, 0, 0, 100, 100, 255, 0);
|
||
$gameScreen.showPicture(3,"[SkillPanel]Status" + $gameVariables._data[65][id], 0, 59, 392, 100, 100, 255, 0);
|
||
$gameVariables._data[17]=id;
|
||
}
|
||
}
|
||
}
|
||
if(args[0]=="SkillPanel_Cost"){
|
||
if($gameVariables.value(17)!=0){
|
||
var sp = $gameVariables.value(67)[$gameVariables.value(17)] + "(" + $gameVariables.value(142) + ")";
|
||
var cost = sp.split("");
|
||
var len = cost.length;var id = 10;var x=58;var y=187;
|
||
for(var i = 0;i<len;i++){
|
||
if((i <= String($gameVariables.value(67)[$gameVariables.value(17)]).length-1)&&($gameVariables.value(67)[$gameVariables.value(17)] > $gameVariables.value(142))){
|
||
name = "[SkillPanel]Num2_" + cost[i];
|
||
}else{
|
||
name = "[SkillPanel]Num_" + cost[i];
|
||
}
|
||
$gameScreen.showPicture(id, name, 0, x, y, 100, 100, 255, 0);
|
||
x+=17;y-=2.4;id++;
|
||
}
|
||
}
|
||
}
|
||
if(args[0]=="SkillPanel_SuccubusFinale"){
|
||
var cost = [0, 0, 1800, 1500, 1000, 2600, 7500, 2000, 1800, 2500, 1650, 2200, 2400, 1400, 3400, 7000, 2200, 5200, 5200, 7700, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18500, 18200, 19250, 21500, 23750, 28000, 18500, 29000, 35000, 42500, 50000, 20000, 27500, 23750, 29000, 35000, 42500, 35000, 23000, 20000, 27500, 24500, 32000, 27500, 35000, 35000, 35000, 50000, 45000, 46800, 50400, 53400, 63000, 55800, 48600, 67500, 76500, 81000, 108000, 72000, 47700, 180000, 54000, 54000, 54000, 67500, 54000, 90000, 90000, 48600, 36000, 60300, 67500, 54000, 40000, 76500]
|
||
var value = true;
|
||
for(var i = 0;i<cost.length;i++){
|
||
if(cost[i]>=1 && i!=72 && $gameVariables._data[65][i]<=1){
|
||
value = false;
|
||
break;
|
||
}
|
||
}
|
||
if(value && $gameVariables._data[65][72]==0){
|
||
$gameVariables._data[65][72]=1
|
||
}
|
||
}
|
||
if(args[0]=="RPS_flag"){
|
||
var eventId = $gameMap.eventIdXy(this.character(-1).x,this.character(-1).y)
|
||
var eventList = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,34];
|
||
var rList = [14,15,16,17,18,19];var sList = [20,21,22,23,24,25];var pList = [26,27,28,29,30,31];
|
||
if(!eventList.includes(eventId)){
|
||
if(rList.includes(eventId) && $gameVariables.value(559)==1 && !$gameSelfSwitches.value([this._mapId, eventId, "A"])){$gameSelfSwitches.setValue([this._mapId, eventId, "A"], true);}
|
||
if(rList.includes(eventId) && $gameVariables.value(559)==3){$gameSelfSwitches.setValue([this._mapId, eventId, "D"], true)}
|
||
if(sList.includes(eventId) && $gameVariables.value(559)==2 && !$gameSelfSwitches.value([this._mapId, eventId, "A"])){$gameSelfSwitches.setValue([this._mapId, eventId, "A"], true);}
|
||
if(sList.includes(eventId) && $gameVariables.value(559)==1){$gameSelfSwitches.setValue([this._mapId, eventId, "D"], true)}
|
||
if(pList.includes(eventId) && $gameVariables.value(559)==3 && !$gameSelfSwitches.value([this._mapId, eventId, "A"])){$gameSelfSwitches.setValue([this._mapId, eventId, "A"], true);}
|
||
if(pList.includes(eventId) && $gameVariables.value(559)==2){$gameSelfSwitches.setValue([this._mapId, eventId, "D"], true)}
|
||
}
|
||
}
|
||
if(args[0]=="RPS_Clearflag"){
|
||
var handList = [14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31];
|
||
var clearFlag = 0;
|
||
for(var i=0;i<18;i++){
|
||
if($gameMap.event(handList[i])._opacity>=128){
|
||
if(!$gameSelfSwitches.value([this._mapId, (handList[i]), "C"])){
|
||
clearFlag = 1;
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
if(clearFlag==0){$gameVariables.setValue(565,18)}
|
||
}
|
||
if(args[0]=="RPS_Pussy1"){
|
||
var x = Math.floor(Math.random() * 6)-3
|
||
var y = Math.floor(Math.random() * 3) + 5
|
||
var time = 40 + Math.floor(Math.random() * 20)
|
||
$gameScreen.movePicture(21,0,x,y,100,100,255,0,time)
|
||
this.wait(time)
|
||
}
|
||
if(args[0]=="RPS_Pussy2"){
|
||
var x = Math.floor(Math.random() * 6)-3
|
||
var y = Math.floor(Math.random() * 3) + 5
|
||
var time = 40 + Math.floor(Math.random() * 20)
|
||
$gameScreen.movePicture(21,0,x,-y,100,100,255,0,time)
|
||
this.wait(time)
|
||
}
|
||
if(args[0]=="RPS_Nipple1"){
|
||
var x = Math.floor(Math.random() * 4)-2
|
||
var y = Math.floor(Math.random() * 17) + 5
|
||
var time = 40 + Math.floor(Math.random() * 20)
|
||
$gameScreen.movePicture(22,0,x,y,100,100,255,0,time)
|
||
this.wait(time)
|
||
}
|
||
if(args[0]=="RPS_Nipple2"){
|
||
var x = Math.floor(Math.random() * 4)-2
|
||
var y = 0
|
||
var time = 40 + Math.floor(Math.random() * 20)
|
||
$gameScreen.movePicture(22,0,x,y,100,100,255,0,time)
|
||
this.wait(time)
|
||
}
|
||
if(args[0]=="RPS_Nipple"){
|
||
var eventId = $gameMap.eventIdXy(this.character(-1).x,this.character(-1).y)
|
||
var eventList = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,34];
|
||
var rList = [14,15,16,17,18,19];var sList = [20,21,22,23,24,25];var pList = [26,27,28,29,30,31];
|
||
if(!eventList.includes(eventId)){
|
||
if(rList.includes(eventId) && $gameVariables.value(559)==1 && !$gameSelfSwitches.value([this._mapId, eventId, "A"])){$gameSelfSwitches.setValue([this._mapId, eventId, "A"], true);}
|
||
if(rList.includes(eventId) && $gameVariables.value(559)==3){$gameSelfSwitches.setValue([this._mapId, eventId, "D"], true)}
|
||
if(sList.includes(eventId) && $gameVariables.value(559)==2 && !$gameSelfSwitches.value([this._mapId, eventId, "A"])){$gameSelfSwitches.setValue([this._mapId, eventId, "A"], true);}
|
||
if(sList.includes(eventId) && $gameVariables.value(559)==1){$gameSelfSwitches.setValue([this._mapId, eventId, "D"], true)}
|
||
if(pList.includes(eventId) && $gameVariables.value(559)==3 && !$gameSelfSwitches.value([this._mapId, eventId, "A"])){$gameSelfSwitches.setValue([this._mapId, eventId, "A"], true);}
|
||
if(pList.includes(eventId) && $gameVariables.value(559)==2){$gameSelfSwitches.setValue([this._mapId, eventId, "D"], true)}
|
||
}
|
||
}
|
||
if(args[0]=="Tanpopo_Time"){
|
||
if($gameVariables.value(518)==0){
|
||
$gameVariables.setValue(512,110)
|
||
}else{
|
||
if($gameVariables.value(518)%60==0){
|
||
$gameVariables.setValue(517,$gameVariables.value(517)-1);
|
||
$gameMap.event(8).setOpacity(255 * (1 - (2700 - $gameVariables.value(518))/2700));
|
||
}
|
||
if($gameVariables.value(519)<=0){
|
||
$gameVariables.setValue(519,99);
|
||
}else{
|
||
$gameVariables.setValue(519,$gameVariables.value(519)-3);
|
||
}
|
||
$gameVariables._data[518]-=4;
|
||
}
|
||
}
|
||
if(args[0]=="Tanpopo_Food1"){
|
||
if($gameMap.regionId(this.character(0).x,this.character(0).y)==21){
|
||
if(($gamePlayer.x==this.character(0).x) && ($gamePlayer.y==this.character(0).y-1)){
|
||
if(!$gameSelfSwitches.value([$gameMap.mapId(),this.character(0)._eventId, "A"])){
|
||
this.character(0).forceMoveRoute({
|
||
"list":[{"code":41,"parameters":["[Game]Tanpopo_01",1]},{"code":0}]
|
||
})
|
||
AudioManager.playSe({"name":"Up1","volume":90,"pitch":100,"pan":0})
|
||
if(this.character(0).direction()==2){
|
||
$gameVariables.setValue(521,100);
|
||
}
|
||
if(this.character(0).direction()==4){
|
||
$gameVariables.setValue(521,75);
|
||
}
|
||
if(this.character(0).direction()==6){
|
||
$gameVariables.setValue(521,25);
|
||
}
|
||
if(this.character(0).direction()==8){
|
||
$gameVariables.setValue(521,50);
|
||
}
|
||
$gameVariables.setValue(515,$gameVariables.value(515)+1);
|
||
$gameVariables.setValue(513,$gameVariables.value(513)+Math.floor($gameVariables.value(521)*(1 + $gameVariables.value(515) * 0.1)));
|
||
if($gameVariables.value(516) < $gameVariables.value(515)){
|
||
$gameVariables.setValue(516,$gameVariables.value(515))
|
||
}
|
||
$gameSelfSwitches.setValue([$gameMap.mapId(),this.character(0)._eventId, "A"], true)
|
||
}
|
||
}else{
|
||
if(!$gameSelfSwitches.value([$gameMap.mapId(),this.character(0)._eventId, "A"])){
|
||
AudioManager.playSe({"name":"Down1","volume":90,"pitch":100,"pan":0})
|
||
if($gameVariables.value(513)>=50){
|
||
$gameVariables.setValue(513,$gameVariables.value(513)-50)
|
||
}else{
|
||
$gameVariables.setValue(513,0)
|
||
}
|
||
$gameVariables.setValue(515,0)
|
||
$gameSelfSwitches.setValue([$gameMap.mapId(),this.character(0)._eventId, "A"], true)
|
||
|
||
}
|
||
}
|
||
}
|
||
if($gameSelfSwitches.value([$gameMap.mapId(),this.character(0)._eventId, "B"])){
|
||
if(Math.random() > 0.5){
|
||
$gameSelfSwitches.setValue([$gameMap.mapId(),this.character(0)._eventId, "C"], true)
|
||
this.character(0).forceMoveRoute({
|
||
"list":[{"code":41,"parameters":["[Game]Tanpopo_01",4]},{"code":0}]
|
||
})
|
||
}
|
||
$gameSelfSwitches.setValue([$gameMap.mapId(),this.character(0)._eventId, "B"], false)
|
||
}
|
||
if((this.character(0).y == 6)){
|
||
this.character(0).forceMoveRoute({
|
||
"list":[{"code":40},{"code":0}]
|
||
})
|
||
}
|
||
}
|
||
if(args[0]=="Tanpopo_BadFood1"){
|
||
if($gameMap.regionId(this.character(0).x,this.character(0).y)==21){
|
||
if(($gamePlayer.x==this.character(0).x) && ($gamePlayer.y==this.character(0).y-1)){
|
||
if(!$gameSelfSwitches.value([$gameMap.mapId(),this.character(0)._eventId, "A"])){
|
||
this.character(0).forceMoveRoute({
|
||
"list":[{"code":41,"parameters":["[Game]Tanpopo_01",5]},{"code":0}]
|
||
})
|
||
AudioManager.playSe({"name":"Down1","volume":90,"pitch":100,"pan":0})
|
||
if($gameVariables.value(513)>=50){
|
||
$gameVariables.setValue(513,$gameVariables.value(513)-50)
|
||
}else{
|
||
$gameVariables.setValue(513,0)
|
||
}
|
||
$gameVariables.setValue(515,0)
|
||
$gameSelfSwitches.setValue([$gameMap.mapId(),this.character(0)._eventId, "A"], true)
|
||
}
|
||
}else{
|
||
if(!$gameSelfSwitches.value([$gameMap.mapId(),this.character(0)._eventId, "A"])){
|
||
AudioManager.playSe({"name":"Up1","volume":90,"pitch":100,"pan":0})
|
||
$gameVariables.setValue(521,50);
|
||
$gameVariables.setValue(515,$gameVariables.value(515)+1);
|
||
$gameVariables.setValue(513,$gameVariables.value(513)+Math.floor($gameVariables.value(521)*(1 + $gameVariables.value(515) * 0.1)));
|
||
if($gameVariables.value(516) < $gameVariables.value(515)){
|
||
$gameVariables.setValue(516,$gameVariables.value(515))
|
||
}
|
||
$gameSelfSwitches.setValue([$gameMap.mapId(),this.character(0)._eventId, "A"], true)
|
||
|
||
}
|
||
}
|
||
}
|
||
if($gameSelfSwitches.value([$gameMap.mapId(),this.character(0)._eventId, "B"])){
|
||
if(Math.random() > 0.5){
|
||
$gameSelfSwitches.setValue([$gameMap.mapId(),this.character(0)._eventId, "C"], false)
|
||
this.character(0).forceMoveRoute({
|
||
"list":[{"code":41,"parameters":["[Game]Tanpopo_01",0]},{"code":0}]
|
||
})
|
||
}
|
||
$gameSelfSwitches.setValue([$gameMap.mapId(),this.character(0)._eventId, "B"], false)
|
||
}
|
||
if((this.character(0).y == 6)){
|
||
this.character(0).forceMoveRoute({
|
||
"list":[{"code":40},{"code":0}]
|
||
})
|
||
}
|
||
}
|
||
if(args[0]=="Hip2_Cutin"){
|
||
var name = "[EV]Cut-in_hip2_"
|
||
var armor = $gameActors._data[1]._equips[1]._itemId;
|
||
var register = [4,11,17,21,22,23,25,26,28,30,33,152,161,162];//素材を作ったIDを登録しておく
|
||
var id = "0000" + "4";
|
||
if (register.includes(armor)) {
|
||
var id = "0000" + armor;
|
||
}else{
|
||
console.log("素材がないため制服の差分を表示します")
|
||
$gameSwitches.setValue(16,true)
|
||
}
|
||
$gameScreen.showPicture(1,name + id.slice(-4),0,0,0,100,100,255,0)
|
||
}
|
||
if(args[0]=="EnemyAttack_Damage"){
|
||
if(args[1]=="Base"){
|
||
var sum = 0;
|
||
var needLv = $gameVariables.value(485);
|
||
var level = $gameActors.actor(1).level;
|
||
for(var i=2;i<=6;i++){
|
||
sum += $gameActors.actor(1).param(i)
|
||
}
|
||
var damage = $gameVariables.value(482) - Math.floor(sum/5);
|
||
if(damage <= 0){
|
||
damage = 0;
|
||
}
|
||
//適正計算・最低保障(10)・分散計算
|
||
var rate = level<needLv ? 1+(needLv - level)*0.1 : 1
|
||
damage = Math.floor((Math.floor(damage * rate) + 10)*(Math.random() * 0.2+1));
|
||
$gameVariables.setValue(482,damage);
|
||
}
|
||
if(args[1]=="Buff"){
|
||
//ヒヨコのペンダント処理
|
||
if($gameActors.actor(1).hasArmor($dataArmors[118])){
|
||
$gameVariables.setValue(482,Math.floor($gameVariables.value(482)*1.1))
|
||
}
|
||
}
|
||
}
|
||
if(args[0]=="EnemyAttack_EXP"){
|
||
$gameVariables.setValue(661,$gameVariables.value(483))
|
||
if(args[1]=="LevelCap"){
|
||
var exp = $gameVariables.value(483);
|
||
var needLv = $gameVariables.value(485);
|
||
var level = $gameActors.actor(1).level;
|
||
var param = Math.floor(($gameActors.actor(1).param(0)+$gameActors.actor(1).param(1)*10)/2)
|
||
var rate = 1 + $gameVariables.value(482)/param * 5;
|
||
exp = Math.floor(exp * rate)
|
||
rate = level<needLv? 1+(needLv - level)*0.02 : level<(needLv+5) ? 1+(needLv - level)*0.12:0.4
|
||
$gameVariables.setValue(483,Math.floor(exp * rate))
|
||
}
|
||
if(args[1]=="Base"){
|
||
var exp = $gameVariables.value(483)+$gameVariables.value(484);
|
||
exp = Math.floor(exp*(Math.random() * 0.1+1));
|
||
$gameVariables.setValue(483,exp)
|
||
}
|
||
if(args[1]=="Buff"){
|
||
//ヒヨコのペンダント処理
|
||
if($gameActors.actor(1).hasArmor($dataArmors[118])){
|
||
$gameVariables.setValue(483,Math.floor($gameVariables.value(483)*1.1))
|
||
}
|
||
}
|
||
if($gameVariables.value(661)!=$gameVariables.value(483)){
|
||
var text = $gameVariables._data[483] + " \\py[6]\\}\\}(+" + ($gameVariables._data[483] - $gameVariables._data[661]) + ") \\{\\{\\py[66]"
|
||
$gameVariables.setValue(661,text)
|
||
}
|
||
}
|
||
if(args[0]=="EnemyAttack_Gold"){
|
||
$gameVariables.setValue(662,$gameVariables.value(486))
|
||
if(args[1]=="Base"){
|
||
var gold = $gameVariables.value(486);
|
||
gold = Math.floor(gold*(Math.random() * 0.2+1));
|
||
$gameVariables.setValue(486,gold)
|
||
}
|
||
if(args[1]=="Buff"){
|
||
var gold = $gameVariables.value(486);
|
||
var rate = 100
|
||
if($gameActors.actor(1).hasArmor($dataArmors[103])){
|
||
rate +=200
|
||
}
|
||
if(rate != 100){
|
||
gold = Math.round(gold*rate/100)
|
||
}
|
||
$gameVariables.setValue(486,gold)
|
||
}
|
||
if($gameVariables.value(662)!=$gameVariables.value(486)){
|
||
var text = $gameVariables._data[486] + " \\py[6]\\}\\}(+" + ($gameVariables._data[486] - $gameVariables._data[662]) + ") \\{\\{\\py[66]"
|
||
$gameVariables.setValue(662,text)
|
||
}
|
||
}
|
||
if(args[0]=="CharacterFace_NPC"){
|
||
if($gameVariables.value(9) != 3){
|
||
if(!!($gameScreen.picture(5))){
|
||
if($gameVariables.value(9) != 2){
|
||
$gameScreen.showPicture(8,"[Character]Mask", 0, 0, 0, 100, 100, 0, 2);
|
||
this.pluginCommand("compose_picture", ['5','8','source-atop',x,y]);
|
||
$gameScreen.erasePicture(8);
|
||
}
|
||
}
|
||
if(!!($gameScreen.picture(7))){
|
||
if($gameVariables.value(9) != 1){
|
||
$gameScreen.showPicture(9,"[Character]Mask", 0, 0, 0, 100, 100, 0, 2);
|
||
this.pluginCommand("compose_picture", ['7','9','source-atop',x,y]);
|
||
$gameScreen.erasePicture(9);
|
||
}
|
||
}
|
||
}else{
|
||
$gameVariables._data[9]=3
|
||
}
|
||
}
|
||
if(args[0]=="CharacterFace_MainCharacterText"){
|
||
if ($gameVariables.value(9) !== 1) {
|
||
if ($gameVariables.value(9) !== 3) {
|
||
if (!!$gameScreen.picture(7)) {
|
||
$gameScreen.showPicture(9, "[Character]Mask", 0, 0, 0, 100, 100, 0, 0);
|
||
this.pluginCommand("compose_picture", ['7','9','source-atop']);
|
||
$gameScreen.erasePicture(9);
|
||
}
|
||
$gameVariables._data[9]=1;
|
||
} else {
|
||
$gameVariables._data[9]=1;
|
||
}
|
||
}
|
||
}
|
||
if(args[0]=="CharacterBack_Black"){
|
||
if (!$gameSwitches.value(87)) {
|
||
$gameScreen.showPicture(0,"[Effect]Black",0,-100,0,100,100,128,0)
|
||
$gameSwitches._data[87]=true;
|
||
}else{
|
||
$gameScreen.erasePicture(0)
|
||
$gameSwitches._data[87]=false;
|
||
}
|
||
}
|
||
|
||
if(args[0]=="CharacterFace_Iroha_A"){
|
||
var name = "[Character]1-";var FaceName = "[Face]1-";
|
||
var armorId = $gameActors._data[1]._equips[1]._itemId;
|
||
var x = 0;
|
||
name += (armorId < 10)? "0"+armorId : armorId;
|
||
if($gameSwitches.value(188)){FaceName += "Hypno-"};
|
||
if($gameSwitches.value(236)){name += "-000" + $gameVariables.value(567)};
|
||
if($gameSwitches.value(628)) x = 30; //にんじん探しミニゲーム中
|
||
if(armorId == 4 && $gameSwitches.value(153)){name += "-Sukebe"}
|
||
if(armorId == 30 && !$gameSwitches.value(197)){name += "-NoBand"}
|
||
$gameScreen.showPicture(5, name, 0, x, 0, 100, 100, 255, 0);
|
||
$gameScreen.showPicture(6, FaceName + ("0000" + $gameVariables.value(69)).slice(-4), 0, x, 0, 100, 100, 255, 0);
|
||
}
|
||
if(args[0]=="CharacterFace_Iroha_B"){
|
||
var name = "[Character]1-";var FaceName = "[Face]1-";
|
||
var armorId = $gameVariables.value(11);
|
||
name += (armorId < 10)? "0"+armorId : armorId;
|
||
if($gameSwitches.value(188)){FaceName += "Hypno-"};
|
||
if($gameSwitches.value(236)){name += "-000" + $gameVariables.value(567)};
|
||
if(armorId == 155){
|
||
if($gameParty.hasItem($dataArmors[8], true)){
|
||
name += "-3"
|
||
}else if($gameParty.hasItem($dataArmors[7], true)){
|
||
name += "-2"
|
||
}else{
|
||
name += "-1"
|
||
}
|
||
}
|
||
if(armorId == 4 && $gameSwitches.value(153)){name += "-Sukebe"}
|
||
if(armorId == 30 && !$gameSwitches.value(197)){name += "-NoBand"}
|
||
$gameScreen.showPicture(5, name, 0, 0, 0, 100, 100, 255, 0);
|
||
$gameScreen.showPicture(6, FaceName + ("0000" + $gameVariables.value(69)).slice(-4), 0, 0, 0, 100, 100, 255, 0);
|
||
}
|
||
if(args[0]=="CharacterFace_Shizuku_A"){
|
||
var name = "[Character]10-";
|
||
var opacity = 255;
|
||
if($gameVariables.value(61)==1){opacity = 128}
|
||
|
||
if(!$gameSwitches.value(7)){
|
||
var num = $gameActors.actor(13)._equips[1]._itemId -181;
|
||
}else{
|
||
var num = $gameVariables.value(12);
|
||
}
|
||
if(num < 10){
|
||
name += "0"+ num;
|
||
}else{
|
||
name += num;
|
||
}
|
||
$gameScreen.showPicture(7, name, 0, 0, 0, 100, 100, opacity, 0);
|
||
if(![4, 5].includes(num)){
|
||
$gameScreen.showPicture(8, "[Face]10-" + ("0000" + $gameVariables.value(62)).slice(-4), 0, 0, 0, 100, 100, opacity, 0);
|
||
}
|
||
}
|
||
if(args[0]=="MenuCharacterRefresh"){
|
||
var name = "[Character]1-";var FaceName = "[Face]1-";
|
||
var armorId = $gameActors._data[1]._equips[1]._itemId;
|
||
name += (armorId < 10)? "0"+armorId : armorId;
|
||
if(armorId == 4 && $gameSwitches.value(153)){name += "-Sukebe"}
|
||
$gameScreen.showPicture(205, name, 0, 0, 0, 100, 100, 255, 0);
|
||
if($gameVariables.value(358) == 0){
|
||
$gameScreen.showPicture(206,"[Face]1-0001",0,0,0,100,100,255,0);
|
||
}else{
|
||
$gameScreen.showPicture(206,"[Face]1-"+("0000" + $gameVariables.value(358)).slice(-4),0,0,0,100,100,255,0);
|
||
}
|
||
var originalId = 205;
|
||
var copyId = 204;
|
||
var newPicure = JsonEx.makeDeepCopy($gameScreen.picture(originalId));
|
||
$gameScreen._pictures[copyId] = newPicure;
|
||
$gameScreen.tintPicture(204, [-255,-255,-255,0],1)
|
||
$gameScreen.movePicture(204,0,9,6,100,100,255,0,1)
|
||
}
|
||
if(args[0]=="MenuToEquipCopy"){
|
||
if($gameScreen._pictures[370]===undefined){
|
||
if($gameActors.actor(1).equips()[1]!==null){
|
||
var name = "[Character]1-";
|
||
if($gameActors._data[1]._equips[1]._itemId < 10){
|
||
name += "0"+ $gameActors._data[1]._equips[1]._itemId;
|
||
}else{
|
||
name += $gameActors._data[1]._equips[1]._itemId;
|
||
}
|
||
if($gameSwitches.value(188)){FaceName += "Hypno-"};
|
||
if($gameActors._data[1]._equips[1]._itemId == 4 && $gameSwitches.value(153)){name += "-Sukebe"}
|
||
$gameScreen.showPicture(2, name, 0, 0, 0, 100, 100, 255, 0);
|
||
$gameScreen.showPicture(3, "[Face]1-" + ("000" + getActorFaces($gameActors._data[1]._equips[1]._itemId)).slice( -4 ), 0, 0, 0, 100, 100, 255, 0);
|
||
}else{
|
||
var name = "[Character]1-00";
|
||
$gameScreen.showPicture(2, name, 0, 0, 0, 100, 100, 255, 0);
|
||
$gameScreen.showPicture(3, "[Face]1-" + ("000" + (getActorFaces(null))).slice( -4 ), 0, 0, 0, 100, 100, 255, 0);
|
||
}
|
||
var originalId = 2;
|
||
var copyId = 370;
|
||
var newPicure = JsonEx.makeDeepCopy($gameScreen.picture(originalId));
|
||
$gameScreen._pictures[copyId] = newPicure;
|
||
var originalId = 3;
|
||
var copyId = 371;
|
||
var newPicure = JsonEx.makeDeepCopy($gameScreen.picture(originalId));
|
||
$gameScreen._pictures[copyId] = newPicure;
|
||
$gameScreen.erasePicture(2);
|
||
$gameScreen.erasePicture(3);
|
||
}
|
||
}
|
||
if(args[0]=="MenuDayDisplay_1"){
|
||
var value = $gameVariables.value(4);
|
||
var pictureId = 20;
|
||
var digit = Number(String(value).length)
|
||
var x = 40 - ((digit - 1) * 12);
|
||
var width = 100;
|
||
if(digit>=4){
|
||
width = 75;
|
||
x += 8;
|
||
}
|
||
for (;digit>0;digit--){
|
||
$gameScreen.showPicture(pictureId,"[Menu]Day_Num_000"+Math.floor(value / (10 ** (digit-1))),0,x,14,width,100,255,0);
|
||
if(width==100){
|
||
x+=22;
|
||
}else{
|
||
x+=18;
|
||
}
|
||
value %= 10 ** (digit-1);
|
||
pictureId++;
|
||
}
|
||
}
|
||
if(args[0]=="MenuDayDisplay_2"){
|
||
var x = 150;
|
||
$gameScreen.showPicture(24,"[Menu]Day_Week_000" + $gameVariables.value(4)%7 ,0,x,28,100,100,255,0);
|
||
}
|
||
if(args[0]=="Morals_Trash"){
|
||
//▼出現フラグをOFFにする
|
||
$gameVariables.setValue($gameVariables.value(16)+501,0)
|
||
var count = 0;
|
||
for(var i = 802;i <= 840; i++){count += $gameVariables.value(i);}
|
||
if(count == 0){
|
||
$gameSwitches.setValue(663,false);
|
||
}
|
||
if(!$gameSwitches.value(663)){$gameVariables._data[363]+=1}
|
||
}
|
||
if(args[0]=="SimpleDecrement"){
|
||
$gameVariables._data[$gameVariables.value(339)] -= 1
|
||
}
|
||
if(args[0]=="HypnosisResistance"){
|
||
$gameVariables._data[262]=$gameVariables.value(262) + $gameVariables.value(342)
|
||
|
||
if ($gameVariables.value(262) > 100) {
|
||
$gameVariables._data[262]=100;
|
||
}
|
||
$gameVariables._data[342]=0;
|
||
}
|
||
if(args[0]=="HypnosisResistance_loseItem"){
|
||
$gameSwitches._data[1] = false;
|
||
$gameParty.loseItem($dataItems[212], 1)
|
||
$gameParty.loseItem($dataItems[213], 1)
|
||
$gameSwitches._data[1] = true;
|
||
}
|
||
if(args[0]=="sceneRestore"){
|
||
this.sceneRestore()
|
||
}
|
||
if(args[0]=="DisplayMonerWindow"){
|
||
var value = $gameVariables.value(17);
|
||
var money = value.toString().split('');
|
||
var len = money.length;
|
||
for (i=len;i <= 6;i++) {
|
||
money.unshift(-1);
|
||
}
|
||
if(value.toString().length>=8){
|
||
money.splice(2, 0, "comma");
|
||
money.splice(6, 0, "comma");
|
||
}else if(value.toString().length>=5){
|
||
money.splice(4, 0, "comma");
|
||
};
|
||
for (i=money.length,x=280,y=41;i >= 0;i--) {
|
||
if($gameSwitches.value(15)){
|
||
var name = "[MoneyWindow]Blue_" + money[i];
|
||
}else{
|
||
var name = "[MoneyWindow]Red_" + money[i];
|
||
};
|
||
var id = 31 + i;
|
||
x =(money[i]=="comma")? x - 10:x - 20;
|
||
y =(money[i]=="comma")? y + 1:y + 2;
|
||
if(((money[i] == "comma")||(money[i] >=0))||(money[i] == "-")){
|
||
$gameScreen.showPicture(id,name,0,x,y,100,100,255,0);
|
||
}
|
||
}
|
||
}
|
||
|
||
if(args[0]=="EasterEgg_Statue1"){$gameSelfSwitches.setVariableValue([$gameMap.mapId(), 14, 1], 1);}
|
||
if(args[0]=="EasterEgg_Statue2"){$gameSelfSwitches.setVariableValue([$gameMap.mapId(), 14, 1], 1);}
|
||
if(args[0]=="EasterEgg_Statue3"){$gameSelfSwitches.setVariableValue([$gameMap.mapId(), 12, 1], 1);}
|
||
|
||
if(args[0]=="DosukebeAroma"){
|
||
if(args[1]=="1"){
|
||
$gameVariables.setValue(16,Math.floor($gameVariables.value(16)+10))
|
||
}
|
||
if(args[1]=="2"){
|
||
$gameVariables.setValue(16,Math.floor($gameVariables.value(16)+20))
|
||
}
|
||
if(args[1]=="3"){
|
||
$gameVariables.setValue(16,Math.floor($gameVariables.value(16)+30))
|
||
}
|
||
}
|
||
if(args[0]=="HSkill"){
|
||
/*
|
||
var sum = 0
|
||
for(var i = 1;i<$gameVariables.value(70).length;i++){
|
||
if(i != 14){
|
||
sum += $gameVariables._data[70][i]
|
||
}
|
||
}
|
||
if(args[1]=="Exhibitionism"){var rate = Math.floor($gameVariables._data[70][9]/sum * 100)}
|
||
if(args[1]=="Fellatio"){var rate = Math.floor($gameVariables._data[70][8]/sum * 100)}
|
||
if(args[1]=="Sex"){var rate = Math.floor($gameVariables._data[70][7]/sum * 100)}
|
||
if(args[1]=="Anal"){var rate = Math.floor($gameVariables._data[70][5]/sum * 100)}
|
||
*/
|
||
if(args[1]=="Exhibitionism"){
|
||
var rate =$gameVariables._data[70][9]*0.01
|
||
if(args[2]=="1"){
|
||
$gameVariables.setValue(16,$gameVariables.value(16)+Math.floor(rate*100))
|
||
}
|
||
if(args[2]=="2"){
|
||
$gameVariables.setValue(16,$gameVariables.value(16)+Math.floor(rate*125))
|
||
}
|
||
if(args[2]=="3"){
|
||
$gameVariables.setValue(16,$gameVariables.value(16)+Math.floor(rate*150))
|
||
}
|
||
}else{
|
||
if(args[1]=="Fellatio") var rate =$gameVariables._data[70][8]*0.01
|
||
if(args[1]=="Sex") var rate =$gameVariables._data[70][7]*0.01
|
||
if(args[1]=="Anal") var rate =$gameVariables._data[70][5]*0.01
|
||
|
||
|
||
if(args[2]=="1"){
|
||
if(rate>=5)rate=5
|
||
$gameVariables.setValue(16,$gameVariables.value(16)+Math.floor(rate*20))
|
||
}
|
||
if(args[2]=="2"){
|
||
if(rate>=10)rate=10
|
||
$gameVariables.setValue(16,$gameVariables.value(16)+Math.floor(rate*30))
|
||
}
|
||
if(args[2]=="3"){
|
||
if(rate>=15)rate=15
|
||
$gameVariables.setValue(16,$gameVariables.value(16)+Math.floor(rate*50))
|
||
}
|
||
}
|
||
}
|
||
//スキル-微睡みの瞳
|
||
if(args[0]=="Skill_Slumbering"){
|
||
var enemy = $gameTroop.members()[$gameVariables.value(19)];
|
||
var iroha = Math.floor($gameActors.actor(1).param(7)/($gameActors.actor(1).param(7)+enemy.param(7))*100);
|
||
if(enemy.isStateAffected(1)){
|
||
$gameVariables._data[16] = 0;//敵が倒れている場合
|
||
}else if(enemy.isStateAffected(40)){
|
||
$gameVariables._data[16] = 1;//敵に目が無いの場合
|
||
}else if(enemy.isStateAffected(37)){
|
||
$gameVariables._data[16] = 5;//女性(無効)の場合
|
||
}else if([20,24,34,43].includes(enemy._enemyId)){
|
||
$gameVariables._data[16] = 6;//特定モンスターに無効の場合
|
||
}else if(enemy.isStateAffected(22)){
|
||
$gameVariables._data[16] = 10;//精神崩壊していると無効
|
||
}else{
|
||
if(enemy.isStateAffected(7)){
|
||
$gameVariables._data[16] = 2;//ステート付与済み
|
||
}else{
|
||
if(iroha + 10 > Math.floor( Math.random() * 100 )){
|
||
$gameVariables._data[16] = 3;//ステート付与成功
|
||
enemy.addState(7);
|
||
}else{
|
||
$gameVariables._data[16] = 4;//ステート付与失敗
|
||
}
|
||
}
|
||
}
|
||
}
|
||
if(args[0]=="Skill_Charm"){
|
||
var enemy = $gameTroop.members()[BattleManager._subject._lastTargetIndex];
|
||
var iroha = Math.floor($gameActors.actor(1).param(7)/($gameActors.actor(1).param(7)+enemy.param(7))*100);
|
||
if(enemy.isStateAffected(1)){
|
||
$gameVariables._data[16] = 0;//敵が倒れている場合
|
||
}else if(enemy.isStateAffected(40)){
|
||
$gameVariables._data[16] = 1;//敵に目が無いの場合
|
||
}else if(enemy.isStateAffected(37)){
|
||
$gameVariables._data[16] = 5;//女性(無効)の場合
|
||
}else if([20,24,43].includes(enemy._enemyId)){
|
||
$gameVariables._data[16] = 6;//特定モンスターに無効の場合
|
||
}else if(enemy.isStateAffected(22)){
|
||
$gameVariables._data[16] = 10;//精神崩壊していると無効
|
||
}else{
|
||
if(enemy.isStateAffected(6)){
|
||
$gameVariables._data[16] = 2;//ステート付与済み
|
||
}else{
|
||
if(iroha + 30 > Math.floor( Math.random() * 100 )){
|
||
$gameVariables._data[16] = 3;//ステート付与成功
|
||
if([33,34].includes(enemy._enemyId)){
|
||
$gameVariables._data[16] = 7;//衿澄にのみ特別テキスト
|
||
}
|
||
enemy.addState(6);
|
||
}else{
|
||
$gameVariables._data[16] = 4;//ステート付与失敗
|
||
}
|
||
}
|
||
}
|
||
}
|
||
if(args[0]=="Skill_Seduction"){
|
||
var enemy = $gameTroop.members()[$gameVariables.value(19)];
|
||
var iroha = Math.floor($gameActors.actor(1).param(7)/($gameActors.actor(1).param(7)+enemy.param(7))*100);
|
||
if(enemy.isStateAffected(1)){
|
||
$gameVariables._data[16] = 0;//敵が倒れている場合
|
||
}else if(enemy.isStateAffected(40)){
|
||
$gameVariables._data[16] = 1;//敵に目が無いの場合
|
||
}else if(enemy.isStateAffected(37)){
|
||
$gameVariables._data[16] = 5;//女性(無効)の場合
|
||
}else if([20,24,43].includes(enemy._enemyId)){
|
||
$gameVariables._data[16] = 6;//特定モンスターに無効の場合
|
||
}else if(enemy.isStateAffected(22)){
|
||
$gameVariables._data[16] = 10;//精神崩壊していると無効
|
||
}else{
|
||
if(enemy.isStateAffected(6)){
|
||
$gameVariables._data[16] = 2;//ステート付与済み
|
||
}else{
|
||
if(iroha + 10 > Math.floor( Math.random() * 100 )){
|
||
$gameVariables._data[16] = 3;//ステート付与成功
|
||
if([33,34].includes(enemy._enemyId)){
|
||
$gameVariables._data[16] = 7;//衿澄にのみ特別テキスト
|
||
}
|
||
enemy.addState(6);
|
||
}else{
|
||
$gameVariables._data[16] = 4;//ステート付与失敗
|
||
}
|
||
}
|
||
}
|
||
}
|
||
if(args[0]=="Skill_EvilShot"){
|
||
var enemy = $gameTroop.members()[$gameVariables.value(19)];
|
||
var iroha = Math.floor($gameActors.actor(1).param(7)/($gameActors.actor(1).param(7)+enemy.param(7))*100);
|
||
if(enemy.isStateAffected(1)){
|
||
$gameVariables._data[16] = 0;//敵が倒れている場合
|
||
}else if(!enemy.isStateAffected(6)){
|
||
$gameVariables._data[16] = 1;//ステート付与前
|
||
}else{
|
||
$gameVariables._data[16] = 2;//ステート付与済み
|
||
}
|
||
}
|
||
if(args[0]=="Skill_CharmShock_1"){
|
||
var enemy = $gameTroop.members()[BattleManager._subject._lastTargetIndex];
|
||
var iroha = $gameActors.actor(1).param(7);
|
||
if(enemy.isStateAffected(6)){
|
||
$gameVariables._data[16] = 1;
|
||
}else{
|
||
$gameVariables._data[16] = 2;
|
||
}
|
||
}
|
||
if(args[0]=="Skill_CharmShock_2"){
|
||
this.iterateEnemyIndex(BattleManager._subject._lastTargetIndex, function(enemy) {
|
||
if (enemy.isAlive()) {
|
||
enemy.startAnimation(321, false, 0);
|
||
this.wait(1)
|
||
}
|
||
}.bind(this))
|
||
var damage = ($gameActors.actor(1).param(2) * 3);
|
||
var minDamage = damage * 0.8; // ダメージの最小値(20%分散)
|
||
var maxDamage = damage * 1.2; // ダメージの最大値(20%分散)
|
||
var finalDamage = Math.floor(Math.random() * (maxDamage - minDamage + 1)) + minDamage;
|
||
finalDamage = Math.max(finalDamage, 1);
|
||
$gameVariables._data[16]=finalDamage
|
||
|
||
var mul = 1;
|
||
var pdr = $gameTroop.members()[BattleManager._subject._lastTargetIndex].pdr;
|
||
if($gameActors.actor(1).hasSkill(733)) mul+=0.5
|
||
if($gameActors.actor(1).hasSkill(734)) mul+=1
|
||
if($gameActors.actor(1).hasSkill(735)) mul+=1.5
|
||
if($gameActors.actor(1).hasSkill(736)) mul+=2
|
||
if(pdr >= 1){
|
||
mul += (pdr-0.5)
|
||
}
|
||
$gameVariables._data[16]=Math.round($gameVariables._data[16]*mul)
|
||
}
|
||
if(args[0]=="Skill_HoneyTrap"){
|
||
var enemy = $gameTroop.members()[BattleManager._subject._lastTargetIndex];
|
||
var iroha = Math.floor($gameActors.actor(1).param(7)/($gameActors.actor(1).param(7)+enemy.param(7))*100);
|
||
if(enemy.isStateAffected(37)){$gameVariables._data[16] = 5;
|
||
}else if(enemy.isStateAffected(40)){
|
||
$gameVariables._data[16] = 1;
|
||
}else if(enemy._enemyId==43){
|
||
$gameVariables._data[16] = 6;
|
||
}else if(enemy._enemyId==69){
|
||
$gameVariables._data[16] = 7;
|
||
}else if(iroha + 30 > Math.floor( Math.random() * 100 )){
|
||
$gameVariables._data[16] = 3;
|
||
}else{
|
||
$gameVariables._data[16] = 4;
|
||
}
|
||
}
|
||
|
||
//ファストトラベル画像設定処理
|
||
if(args[0]=="FastTravelPictureConfig"){
|
||
var FileName = "[System]FastTravel_MAP_"
|
||
var value = Math.floor($gameVariables.value(19)/10)+1
|
||
if(value>=10)value=0
|
||
var index = ("000" + value).slice(-4);
|
||
var array = [2,3,4,5,6,7];//時間ごとに画像を変える場合はその番号を配列に追加
|
||
if(array.includes(value)){
|
||
if($gameVariables.value(2)<=1){index += "a"}
|
||
else if($gameVariables.value(2)==2){index += "b"}
|
||
else{index += "c"}
|
||
}
|
||
$gameScreen.showPicture(10,FileName + index,0,396,76,100,100,255,0);
|
||
}
|
||
//電マエロトラップフォント計算処理
|
||
if(args[0]=="EroTrap_StatusDisplay"){
|
||
var hp = $gameVariables.value(16);
|
||
var maxhp = $gameVariables.value(17);
|
||
var mp = $gameVariables.value(18);
|
||
var maxmp = $gameVariables.value(19);
|
||
var ex = $gameVariables.value(83);
|
||
var maxex = $gameVariables.value(82);
|
||
var hpgauge = hp + "/" + maxhp;
|
||
var mpgauge = mp + "/" + maxmp;
|
||
var exgauge = ex + "/" + maxex;
|
||
var hplen = hpgauge.length
|
||
var mplen = mpgauge.length
|
||
var exlen = exgauge.length
|
||
if(hplen >= mplen){
|
||
if(hplen >= exlen){
|
||
//一番長いのはhplen
|
||
$gameVariables.setValue(16,hpgauge)
|
||
$gameVariables.setValue(18,mpgauge + "\\px[" + 15*(hplen-mplen) + "]")
|
||
$gameVariables.setValue(94,exgauge + "\\px[" + 15*(hplen-exlen) + "]")
|
||
}else{
|
||
//一番長いのはexlen
|
||
$gameVariables.setValue(16,hpgauge + "\\px[" + 15*(exlen-hplen) + "]")
|
||
$gameVariables.setValue(18,hpgauge + "\\px[" + 15*(exlen-mplen) + "]")
|
||
$gameVariables.setValue(94,exgauge)
|
||
}
|
||
}else{
|
||
if(mplen >= exlen){
|
||
//一番長いのはmplen
|
||
$gameVariables.setValue(16,hpgauge + "\\px[" + 15*(mplen-hplen) + "]")
|
||
$gameVariables.setValue(18,mpgauge)
|
||
$gameVariables.setValue(94,exgauge + "\\px[" + 15*(mplen-exlen) + "]")
|
||
}else{
|
||
//一番長いのはexlen
|
||
$gameVariables.setValue(16,hpgauge + "\\px[" + 15*(exlen-hplen) + "]")
|
||
$gameVariables.setValue(18,hpgauge + "\\px[" + 15*(exlen-mplen) + "]")
|
||
$gameVariables.setValue(94,exgauge)
|
||
}
|
||
}
|
||
$gameVariables.setValue(17,$gameVariables.value(92) + "/" + maxhp)
|
||
$gameVariables.setValue(19,$gameVariables.value(93) + "/" + maxmp)
|
||
}
|
||
|
||
//乳首あてゲーム処理1
|
||
if(args[0]=="NippleGame1"){
|
||
if($gameSwitches._data[16]){$gameVariables._data[16]-=1;
|
||
}else{$gameVariables._data[16]+=1;}
|
||
if($gameVariables._data[16]==0){$gameSwitches._data[16]=false}
|
||
if($gameVariables._data[16]==60){$gameSwitches._data[16]=true}
|
||
if($gameVariables._data[16]!=60){
|
||
$gameScreen.showPicture(10,"[Game]Nipple_Gauge1A",0,35,596,100,-100*($gameVariables._data[16]/60),255,0);
|
||
$gameScreen.showPicture(12,"[Game]Nipple_Flame1A",0,0,0,100,100,255,0);
|
||
}else{
|
||
$gameScreen.showPicture(10,"[Game]Nipple_Gauge1B",0,35,596,100,-100*($gameVariables._data[16]/60),255,0);
|
||
$gameScreen.showPicture(12,"[Game]Nipple_Flame1B",0,0,0,100,100,255,0);
|
||
}
|
||
}
|
||
//乳首あてゲーム処理2
|
||
if(args[0]=="NippleGame2"){
|
||
$gameVariables._data[17]+=3;
|
||
rate = $gameVariables._data[17]*Math.PI/180;
|
||
var x1 = Math.round(172+80*Math.cos(rate));var y1 = Math.round(611+50*Math.sin(rate));
|
||
var x2 = Math.round(252-80*Math.cos(rate));var y2 = Math.round(525-50*Math.sin(rate));
|
||
if((x1==x2)&&(y1==y2)){
|
||
$gameScreen.showPicture(10,"[Game]Nipple_Flame2A",0,x1,y1,100,100,255,0);
|
||
$gameScreen.showPicture(12,"[Game]Nipple_Flame2A",0,x2,y2,100,100,255,0);
|
||
}else{
|
||
$gameScreen.showPicture(10,"[Game]Nipple_Flame2B",0,x1,y1,100,100,255,0);
|
||
$gameScreen.showPicture(12,"[Game]Nipple_Flame2B",0,x2,y2,100,100,255,0);
|
||
}
|
||
x1 = 922-Math.round(190+80*Math.cos(rate));var y1 = Math.round(611+50*Math.sin(rate));
|
||
x2 = 922-Math.round(270-80*Math.cos(rate));var y2 = Math.round(525-50*Math.sin(rate));
|
||
if((x1==x2)&&(y1==y2)){
|
||
$gameScreen.showPicture(11,"[Game]Nipple_Flame2A",0,x1,y1,100,100,255,0);
|
||
$gameScreen.showPicture(13,"[Game]Nipple_Flame2A",0,x2,y2,100,100,255,0);
|
||
}else{
|
||
$gameScreen.showPicture(11,"[Game]Nipple_Flame2B",0,x1,y1,100,100,255,0);
|
||
$gameScreen.showPicture(13,"[Game]Nipple_Flame2B",0,x2,y2,100,100,255,0);
|
||
}
|
||
}
|
||
//乳首あてゲーム処理3
|
||
if(args[0]=="NippleGame3"){
|
||
if($gameSwitches._data[17]){$gameVariables._data[18]-=2;
|
||
}else{$gameVariables._data[18]+=2;}
|
||
if($gameVariables._data[18]==-90){$gameSwitches._data[17]=false}
|
||
if($gameVariables._data[18]==90){$gameSwitches._data[17]=true}
|
||
rate = $gameVariables._data[18]*Math.PI/180;
|
||
x=100*Math.sin(rate);y=100*(1-Math.cos(rate)*Math.cos(rate));
|
||
if((x==0)&&(y==0)){
|
||
$gameScreen.showPicture(12,"[Game]Nipple_Gauge3A",0,x,y,100,100,255,0);
|
||
}else{
|
||
$gameScreen.showPicture(12,"[Game]Nipple_Gauge3B",0,x,y,100,100,255,0);
|
||
}
|
||
$gameVariables._data[19]=Math.floor(100-y);
|
||
}
|
||
//おっさんスクラッチ処理
|
||
if(args[0]=="OssanScratch"){
|
||
if($gameVariables.value(16)!= $gameVariables.value(19) || $gameVariables.value(17)!= $gameVariables.value(20)){
|
||
var x = $gameVariables.value(16);
|
||
var y = $gameVariables.value(17);
|
||
this.pluginCommand("compose_picture", ['16','17','destination-out',x,y]);
|
||
}
|
||
$gameScreen.movePicture(21,0,152+$gameVariables.value(16),$gameVariables.value(17)+24,100,100,255,0,3);$gameVariables._data[19]=$gameVariables._data[16];$gameVariables._data[20]=$gameVariables._data[17];
|
||
if(Input.isPressed('down')){$gameVariables._data[17]+=18;$gameVariables._data[18]+=1;
|
||
if($gameVariables.value(17)>=144){$gameVariables._data[17]=144}
|
||
}else if(Input.isPressed('up')){
|
||
$gameVariables._data[17]-=18;$gameVariables._data[18]+=1;
|
||
if($gameVariables.value(17)<=0){$gameVariables._data[17]=0}}
|
||
if(Input.isPressed('left')){
|
||
$gameVariables._data[16]-=18;$gameVariables._data[18]+=1;
|
||
if($gameVariables.value(16)<=0){$gameVariables._data[16]=0}
|
||
}else if(Input.isPressed('right')){
|
||
$gameVariables._data[16]+=18;$gameVariables._data[18]+=1;
|
||
if($gameVariables.value(16)>=288){$gameVariables._data[16]=288}}
|
||
}
|
||
//宝くじ抽選
|
||
if(args[0]=="Station_Lottery"){
|
||
if($gameVariables.value(4)%7==0){
|
||
var number = [];
|
||
var match1 = [];
|
||
var match2 = [];
|
||
var match3 = [];
|
||
var match3temp = [];
|
||
var match4 = [];
|
||
|
||
var randomNumber = Math.random() < 0.5 ? 0 : 1;
|
||
var numbers = randomNumber === 0 ? [1, 3, 5, 7, 9] : [0, 2, 4, 6, 8];
|
||
var selectedNumbers = [];
|
||
|
||
for (var i = 0; i <= 99; i++) {
|
||
if (i % 2 == randomNumber) {
|
||
match4.push(i);
|
||
} else {
|
||
match3temp.push(i);
|
||
}
|
||
}
|
||
|
||
for (var i = 0; i < 2; i++) {
|
||
var randomIndex = Math.floor(Math.random() * numbers.length);
|
||
selectedNumbers.push(numbers[randomIndex]);
|
||
numbers.splice(randomIndex, 1);
|
||
}
|
||
|
||
for (var i = 0; i <= 50; i++) {
|
||
if (match3temp[i] % 10 == selectedNumbers[0] || match3temp[i] % 10 == selectedNumbers[1]) {
|
||
match3.push(match3temp[i]);
|
||
} else {
|
||
match2.push(match3temp[i]);
|
||
$gameVariables.setValue(628, [selectedNumbers[0], selectedNumbers[1]].sort((a, b) => a - b));
|
||
}
|
||
}
|
||
|
||
var randomElements = match2.sort(() => Math.random() - 0.5).slice(0, 5);
|
||
match1 = randomElements[0];
|
||
randomElements.shift();
|
||
|
||
$gameVariables.setValue(624, match1);
|
||
$gameVariables.setValue(625, randomElements.sort((a, b) => a - b));
|
||
$gameVariables.setValue(626, match3);
|
||
$gameVariables.setValue(627, match4);
|
||
|
||
//選んだ番号が1-4等のいずれでもない時、1等の番号を選んだん番号に変更する
|
||
//確率は 基本14% + サブタイトル番号(1~11%) = 15~25%
|
||
if($gameActors.actor(1).hasSkill(634)){
|
||
if (!$gameVariables.value(627).includes($gameVariables.value(630)) && !$gameVariables.value(626).includes($gameVariables.value(630)) && !$gameVariables.value(625).includes($gameVariables.value(630)) && $gameVariables.value(624) !== $gameVariables.value(630)){
|
||
if (Math.floor(Math.random() * 99) <= (14 + $gameVariables.value(33))) {
|
||
$gameVariables.setValue(624, $gameVariables.value(630));
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
//フリースロー処理
|
||
if(args[0]=="Freethrow"){
|
||
$gameVariables._data[16]+=2
|
||
var width = $gameVariables.value(16)
|
||
var time = $gameVariables.value(18)
|
||
$gameScreen.movePicture(19,0,263,22,width,100,255,0,time)
|
||
}
|
||
if(args[0]=="Freethrow_Power"){
|
||
if($gameVariables.value(16)<=2){
|
||
$gameVariables._data[18]=16
|
||
this.wait(16);
|
||
if($gameVariables.value(16)==2){
|
||
$gameVariables._data[18]=8
|
||
}
|
||
}else if($gameVariables.value(16)<=6){
|
||
$gameVariables._data[18]=8
|
||
this.wait(8);
|
||
if($gameVariables.value(16)==6){
|
||
$gameVariables._data[18]=4
|
||
}
|
||
}else if($gameVariables.value(16)<=20){
|
||
$gameVariables._data[18]=4
|
||
this.wait(4);
|
||
if($gameVariables.value(16)==20){
|
||
$gameVariables._data[18]=2
|
||
}
|
||
}else if($gameVariables.value(16)<=50){
|
||
this.wait(2);
|
||
if($gameVariables.value(16)==50){
|
||
$gameVariables._data[18]=1
|
||
}
|
||
}else if($gameVariables.value(16)<=99){
|
||
this.wait(1);
|
||
$gameVariables._data[18]=1
|
||
}
|
||
}
|
||
//にんじん探しゲーム処理
|
||
if(args[0]=="CarrotCursor"){
|
||
var count = $gameVariables.value(17)
|
||
var a = Math.floor(count/20)
|
||
var b = count - (a * 20)
|
||
var octalNumber = parseInt(b.toString(), 6).toString(8);
|
||
var x = 48 * 6 + 48 * (octalNumber)
|
||
var y = 48 * 4 + 48 * a
|
||
$gameScreen.showPicture(29,"[Game]Carrot_Cursol",0,x,y-24,100,100,255,0);
|
||
$gameScreen.showPicture(30,"[Game]Carrot_Mask",0,x,y-24,100,100,0,0);
|
||
}
|
||
if(args[0]=="CarrotJudge"){
|
||
var scop = $gameVariables.value(493)
|
||
var x = $gameScreen.picture(50+scop)._x
|
||
var y = $gameScreen.picture(50+scop)._y
|
||
$gameScreen.showPicture(50+scop,"[Game]Carrot_Scop_used",0,x,y,100,100,255,0);
|
||
$gameVariables._data[492].push($gameVariables.value(17));
|
||
|
||
var count = $gameVariables.value(17)
|
||
|
||
var a = Math.floor(count/20)
|
||
var b = count - (a * 20)
|
||
var octalNumber = parseInt(b.toString(), 6).toString(8);
|
||
var x = 48 * 6 + 48 * (octalNumber)
|
||
var y = 48 * 4 + 48 * a
|
||
$gameScreen.erasePicture(30)
|
||
if($gameScreen.picture(30)){
|
||
this.pluginCommand("compose_picture", ['25','30','destination-out',x-190,y-24-70]);
|
||
}else{
|
||
$gameScreen.showPicture(30,"[Game]Carrot_Mask",0,x,y-24,100,100,0,0);
|
||
this.pluginCommand("compose_picture", ['25','30','destination-out',x-190,y-24-70]);
|
||
}
|
||
|
||
var octalNumber = parseInt(b.toString(), 6).toString(8);
|
||
if($gameVariables.value(16)[a][octalNumber] == 0){
|
||
$gameSwitches.setValue(16,false)
|
||
}else{
|
||
$gameSwitches.setValue(16,true)
|
||
$gameVariables._data[16][a][octalNumber] = -1
|
||
}
|
||
}
|
||
|
||
//夢幻の回廊4Fミニゲーム処理
|
||
if(args[0]=="MirrorGame1"){
|
||
if($gameVariables.value(245) != $gameParty._steps)this.pluginCommand("CallEventPage", ['1','1']);
|
||
}
|
||
if(args[0]=="MirrorGame2"){
|
||
if($gameVariables.value(246) != $gameParty._steps)this.pluginCommand("CallEventPage", ['1','6']);
|
||
if($gameMap.regionId(this.character(-1).x,this.character(-1).y)==25){
|
||
if(this.character(2).direction() == 8)AudioManager.playSe({"name":"Magic1","volume":90,"pitch":100,"pan":0})
|
||
this.character(2).setDirection(2);
|
||
}else{
|
||
this.character(2).setDirection(8);
|
||
}
|
||
if($gameMap.regionId(this.character(6).x,this.character(6).y)==26){
|
||
if(this.character(1).direction() == 8)AudioManager.playSe({"name":"Magic1","volume":90,"pitch":100,"pan":0})
|
||
this.character(1).setDirection(2);
|
||
}else{
|
||
this.character(1).setDirection(8);
|
||
}
|
||
}
|
||
if(args[0]=="MirrorGame3"){
|
||
if($gameVariables.value(247) != $gameParty._steps)this.pluginCommand("CallEventPage", ['1','3']);
|
||
if($gameMap.regionId(this.character(-1).x,this.character(-1).y)==25){
|
||
if(this.character(9).direction() == 8)AudioManager.playSe({"name":"Magic1","volume":90,"pitch":100,"pan":0})
|
||
this.character(9).setDirection(2);
|
||
}else{
|
||
this.character(9).setDirection(8);
|
||
}
|
||
if($gameMap.regionId(this.character(3).x,this.character(3).y)==26){
|
||
if(this.character(10).direction() == 8)AudioManager.playSe({"name":"Magic1","volume":90,"pitch":100,"pan":0})
|
||
this.character(10).setDirection(2);
|
||
}else{
|
||
this.character(10).setDirection(8);
|
||
}
|
||
}
|
||
if(args[0]=="MirrorGame4"){
|
||
if($gameVariables.value(246) != $gameParty._steps)this.pluginCommand("CallEventPage", ['1','19']);
|
||
if($gameMap.regionId(this.character(19).x,this.character(19).y)==26){
|
||
if(this.character(21).direction() == 8)AudioManager.playSe({"name":"Magic1","volume":90,"pitch":100,"pan":0})
|
||
this.character(21).setDirection(2);
|
||
}else{
|
||
if($gameMap.regionId(this.character(20).x,this.character(20).y)!=26)this.character(21).setDirection(8);
|
||
}
|
||
if($gameMap.regionId(this.character(19).x,this.character(19).y)==27){
|
||
if(this.character(22).direction() == 8)AudioManager.playSe({"name":"Magic1","volume":90,"pitch":100,"pan":0})
|
||
this.character(22).setDirection(2);
|
||
}else{
|
||
if($gameMap.regionId(this.character(20).x,this.character(20).y)!=27)this.character(22).setDirection(8);
|
||
}
|
||
}
|
||
if(args[0]=="MirrorGame5"){
|
||
if($gameVariables.value(247) != $gameParty._steps)this.pluginCommand("CallEventPage", ['1','20']);
|
||
if($gameMap.regionId(this.character(20).x,this.character(20).y)==26){
|
||
if(this.character(21).direction() == 8)AudioManager.playSe({"name":"Magic1","volume":90,"pitch":100,"pan":0})
|
||
this.character(21).setDirection(2);
|
||
if($gameMap.regionId(this.character(19).x,this.character(19).y)==27)$gameVariables.setValue(260,26);
|
||
}else{
|
||
if($gameMap.regionId(this.character(19).x,this.character(19).y)!=26)this.character(21).setDirection(8);
|
||
}
|
||
if($gameMap.regionId(this.character(20).x,this.character(20).y)==27){
|
||
if(this.character(22).direction() == 8)AudioManager.playSe({"name":"Magic1","volume":90,"pitch":100,"pan":0})
|
||
this.character(22).setDirection(2);
|
||
if($gameMap.regionId(this.character(19).x,this.character(19).y)==26)$gameVariables.setValue(260,26);
|
||
}else{
|
||
if($gameMap.regionId(this.character(19).x,this.character(19).y)!=27)this.character(22).setDirection(8);
|
||
}
|
||
}
|
||
if(args[0]=="MirrorGame6"){
|
||
if($gameVariables.value(246) != $gameParty._steps)this.pluginCommand("CallEventPage", ['1','6']);
|
||
if($gameMap.regionId(this.character(-1).x,this.character(-1).y)==25){
|
||
if(this.character(2).direction() == 8)AudioManager.playSe({"name":"Magic1","volume":90,"pitch":100,"pan":0})
|
||
this.character(2).setDirection(2);
|
||
}else{
|
||
this.character(2).setDirection(8);
|
||
}
|
||
if($gameMap.regionId(this.character(6).x,this.character(6).y)==26){
|
||
if(this.character(1).direction() == 8)AudioManager.playSe({"name":"Magic1","volume":90,"pitch":100,"pan":0})
|
||
this.character(1).setDirection(2);
|
||
}else{
|
||
if($gameMap.regionId(this.character(3).x,this.character(3).y)!=26)this.character(1).setDirection(8);
|
||
}
|
||
}
|
||
if(args[0]=="MirrorGame7"){
|
||
if($gameVariables.value(245) != $gameParty._steps)this.pluginCommand("CallEventPage", ['1','3']);
|
||
if($gameMap.regionId(this.character(3).x,this.character(3).y)==27){
|
||
if(this.character(10).direction() == 8)AudioManager.playSe({"name":"Magic1","volume":90,"pitch":100,"pan":0})
|
||
this.character(10).setDirection(2);
|
||
}else{
|
||
if($gameMap.regionId(this.character(6).x,this.character(6).y)!=27)this.character(10).setDirection(8);
|
||
}
|
||
}
|
||
//本屋ミニゲーム処理
|
||
if(args[0]=="BookGame_Clean1"){
|
||
var opacity = 255 * ( 1 - ($gameVariables.value(552)-$gameVariables.value(550)) / $gameVariables.value(552) )
|
||
var x = 500 * ($gameVariables.value(552)-$gameVariables.value(550)) / $gameVariables.value(552)
|
||
var y = 80;
|
||
$gameScreen.movePicture(47,0,0,0,100,100,opacity,0,4)
|
||
$gameScreen.movePicture(48,0,0,0,100,100,255 - (opacity*4),0,4)
|
||
$gameScreen.movePicture(49,0,x-50,y-30,100,100,255,0,4)
|
||
$gameScreen.movePicture(50,1,x+194,y+155,100,100,255,0,4)
|
||
$gameScreen.movePicture(51,0,x-50,y-30,100,100,255,0,4)
|
||
}
|
||
if(args[0]=="BookGame_Clean2"){
|
||
var opacity = 255 * ( 1 - ($gameVariables.value(552)-$gameVariables.value(551)) / $gameVariables.value(552) )
|
||
var x = 500 * ($gameVariables.value(552)-$gameVariables.value(551)) / $gameVariables.value(552)
|
||
var y = 80;
|
||
$gameScreen.movePicture(47,0,0,0,100,100,opacity,0,4)
|
||
$gameScreen.movePicture(48,0,0,0,100,100,255 - (opacity*4),0,4)
|
||
$gameScreen.movePicture(49,0,x-50,y-30,100,100,255,0,4)
|
||
$gameScreen.movePicture(50,1,x+194,y+155,100,100,255,0,4)
|
||
$gameScreen.movePicture(51,0,x-50,y-30,100,100,255,0,4)
|
||
}
|
||
if(args[0]=="BookGame_Stock"){
|
||
var x = Math.floor($gameVariables.value(537)*(SceneManager._scene._spriteset._pictureContainer.children[46].width - SceneManager._scene._spriteset._pictureContainer.children[48].width)/100)
|
||
var y = 575;
|
||
x += 7;
|
||
$gameScreen.showPicture(48,"[Game]Book_Bar_Gauge",0,x,y,100,100,255,0)
|
||
$gameVariables._data[540] = x;
|
||
}
|
||
if(args[0]=="BookGame_Sort1_1"){
|
||
var x = 234;var id = 47;
|
||
var ary=[1,2,3,4];
|
||
for (var count=0;count<10;count++){
|
||
for(var i = (ary.length - 1); 0 < i; i--){
|
||
var r = Math.floor(Math.random() * (i + 1));
|
||
var tmp = ary[i];ary[i] = ary[r];ary[r] = tmp;
|
||
}}
|
||
for(i=0;i < 4; i++){
|
||
$gameScreen.showPicture(id,"[Game]Book_Arrange_000"+ary[i],0,x,480,100,100,255,0)
|
||
x+=83;id++;
|
||
}
|
||
$gameVariables.setValue(543,ary);
|
||
}
|
||
if(args[0]=="BookGame_Sort1_2"){
|
||
var x = 234;var id = 47;
|
||
var index = $gameVariables.value(544)
|
||
var ary=$gameVariables.value(543);
|
||
var tmp = ary[index];
|
||
ary[index] = ary[index+1];
|
||
ary[index+1] = tmp;
|
||
$gameScreen.movePicture(id+index,0,x+83*(index+1),480,100,100,255,0,4)
|
||
$gameScreen.movePicture(id+index+1,0,x+83*index,480,100,100,255,0,4)
|
||
$gameVariables.setValue(543,ary);
|
||
}
|
||
if(args[0]=="BookGame_Sort1_3"){
|
||
var x = 234;var id = 47;
|
||
var index = $gameVariables.value(544)
|
||
var ary=$gameVariables.value(543);
|
||
for(i=0;i < 4; i++){
|
||
$gameScreen.showPicture(id,"[Game]Book_Arrange_000"+ary[i],0,x,480,100,100,255,0)
|
||
x+=83;id++;
|
||
}
|
||
}
|
||
if(args[0]=="BookGame_Sort2_1"){
|
||
var x = 234;var id = 47;
|
||
var ary=[1,2,3,4];
|
||
for (var count=0;count<10;count++){
|
||
for(var i = (ary.length - 1); 0 < i; i--){
|
||
var r = Math.floor(Math.random() * (i + 1));
|
||
var tmp = ary[i];ary[i] = ary[r];ary[r] = tmp;
|
||
}}
|
||
for(i=0;i < 4; i++){
|
||
$gameScreen.showPicture(id,"[Game]Book_Arrange_000"+ary[i],0,x,480,100,100,255,0)
|
||
x+=83;id++;
|
||
}
|
||
$gameVariables.setValue(545,ary);
|
||
}
|
||
if(args[0]=="BookGame_Sort2_2"){
|
||
var x = 234;var id = 47;
|
||
var index = $gameVariables.value(546)
|
||
var ary=$gameVariables.value(545);
|
||
var tmp = ary[index];
|
||
ary[index] = ary[index+1];
|
||
ary[index+1] = tmp;
|
||
$gameScreen.movePicture(id+index,0,x+83*(index+1),480,100,100,255,0,4)
|
||
$gameScreen.movePicture(id+index+1,0,x+83*index,480,100,100,255,0,4)
|
||
$gameVariables.setValue(545,ary);
|
||
}
|
||
if(args[0]=="BookGame_Sort2_3"){
|
||
var x = 234;var id = 47;
|
||
var index = $gameVariables.value(546)
|
||
var ary=$gameVariables.value(545);
|
||
for(i=0;i < 4; i++){
|
||
$gameScreen.showPicture(id,"[Game]Book_Arrange_000"+ary[i],0,x,480,100,100,255,0)
|
||
x+=83;id++;
|
||
}
|
||
}
|
||
//本屋ミニゲームNPC処理
|
||
if(args[0]=="BookGame_NPC_common"){
|
||
if(this.character(0).direction() == 2){
|
||
if(this.character(0).x == this.character(-1).x && this.character(0).y < this.character(-1).y && this.character(-1).y <= this.character(0).y+3){
|
||
if(this.character(-1).direction() != 8){
|
||
this.character(0).requestBalloon(1);
|
||
AudioManager.playSe({"name":"[Effect]Notice01","volume":90,"pitch":100,"pan":0})
|
||
if(this.character(-1).direction() == 2){
|
||
$gameVariables.setValue(525,20);//おしり判定
|
||
}else{
|
||
$gameVariables.setValue(525,30);//横乳判定
|
||
}
|
||
}
|
||
}
|
||
}
|
||
if(this.character(0).direction() == 4){
|
||
if(this.character(0).y == this.character(-1).y && this.character(0).x > this.character(-1).x && this.character(-1).x+2 >= this.character(0).x){
|
||
if(this.character(-1).direction() != 6){
|
||
this.character(0).requestBalloon(1);
|
||
AudioManager.playSe({"name":"[Effect]Notice01","volume":90,"pitch":100,"pan":0})
|
||
if(this.character(-1).direction() == 4){
|
||
$gameVariables.setValue(525,20);//おしり判定
|
||
}else{
|
||
$gameVariables.setValue(525,30);//横乳判定
|
||
}
|
||
}
|
||
}
|
||
}
|
||
if(this.character(0).direction() == 6){
|
||
if(this.character(0).y == this.character(-1).y && this.character(0).x < this.character(-1).x && this.character(-1).x <= this.character(0).x+3){
|
||
if(this.character(-1).direction() != 4){
|
||
this.character(0).requestBalloon(1);
|
||
AudioManager.playSe({"name":"[Effect]Notice01","volume":90,"pitch":100,"pan":0})
|
||
if(this.character(-1).direction() == 6){
|
||
$gameVariables.setValue(525,20);//おしり判定
|
||
}else{
|
||
$gameVariables.setValue(525,30);//横乳判定
|
||
}
|
||
}
|
||
}
|
||
}
|
||
if(this.character(0).direction() == 8){
|
||
if(this.character(0).x == this.character(-1).x && this.character(0).y > this.character(-1).y && this.character(-1).y+3 >= this.character(0).y){
|
||
if(this.character(-1).direction() != 2){
|
||
this.character(0).requestBalloon(1);
|
||
AudioManager.playSe({"name":"[Effect]Notice01","volume":90,"pitch":100,"pan":0})
|
||
if(this.character(-1).direction() == 8){
|
||
$gameVariables.setValue(525,20);//おしり判定
|
||
}else{
|
||
$gameVariables.setValue(525,30);//横乳判定
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
if(args[0]=="BookGame_NPC_1"){
|
||
if(!$gameSwitches.value(281)){
|
||
$gameVariables._data[527] -= 15;
|
||
}else{
|
||
$gameVariables._data[527] -= 30;
|
||
}
|
||
if($gameVariables.value(527)<=0){
|
||
$gameVariables.setValue(16,this.character(0).direction())
|
||
this.pluginCommand("TE_SET_SELF_VARIABLE", ['1','0','\\v[16]']);
|
||
this.wait(1)
|
||
while(true){
|
||
if(this.getSelfVariable(1) === this.character(0).direction()){
|
||
this.character(0).setDirection([2,2,4,6,6,8,8][Math.floor(Math.random() * 7)]);
|
||
}else{
|
||
$gameVariables.setValue(527,$gameVariables.value(526));
|
||
break;
|
||
}
|
||
this.wait(1);
|
||
}
|
||
}else{
|
||
this.wait(1);
|
||
}
|
||
}
|
||
if(args[0]=="BookGame_NPC_2"){
|
||
if(!$gameSwitches.value(287)){
|
||
if(!$gameSwitches.value(281)){
|
||
$gameVariables._data[528] -= 20;
|
||
this.character(0).setMoveSpeed(3);
|
||
}else{
|
||
$gameVariables._data[528] -= 40;
|
||
this.character(0).setMoveSpeed(4);
|
||
}
|
||
}
|
||
}
|
||
if(args[0]=="BookGame_NPC_3"){
|
||
if(!$gameSwitches.value(281)){
|
||
if(this.character(0).y == this.character(-1).y && this.character(0).x+1 == this.character(-1).x){
|
||
$gameVariables._data[529] -= 30;
|
||
}else{
|
||
$gameVariables._data[529] -= 15;
|
||
}
|
||
}else{
|
||
$gameVariables._data[529] -= 40;
|
||
}
|
||
}
|
||
if(args[0]=="BookGame_NPC_7"){
|
||
if(!$gameSwitches.value(291)){
|
||
if(!$gameSwitches.value(281)){
|
||
$gameVariables._data[533] -= 20;
|
||
this.character(0).setMoveSpeed(3);
|
||
}else{
|
||
$gameVariables._data[533] -= 40;
|
||
this.character(0).setMoveSpeed(4);
|
||
}
|
||
}
|
||
}
|
||
if(args[0]=="BookGame_NPC_8"){
|
||
if(!$gameSwitches.value(292)){
|
||
if(!$gameSwitches.value(281)){
|
||
$gameVariables._data[534] -= 15;
|
||
this.character(0).setMoveSpeed(3);
|
||
}else{
|
||
$gameVariables._data[534] -= 30;
|
||
this.character(0).setMoveSpeed(4);
|
||
}
|
||
}
|
||
}
|
||
if(args[0]=="BookGame_NPC_9"){
|
||
if(!$gameSwitches.value(293)){
|
||
if(!$gameSwitches.value(281)){
|
||
$gameVariables._data[535] -= 10;
|
||
this.character(0).setMoveSpeed(3);
|
||
}else{
|
||
$gameVariables._data[535] -= 20;
|
||
this.character(0).setMoveSpeed(4);
|
||
}
|
||
}
|
||
}
|
||
|
||
//水道管ゲーム-エリア5-5
|
||
if(args[0]=="pipeGame1"){
|
||
//▼▼▼▼ ┃or━の場合 ▼▼▼▼
|
||
//左の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x+2, y);
|
||
if(!!id && $gameMap.regionId(x+1,y)==43 && $gameMap.event(id)._pattern == 2){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if([1,3].includes($gameMap.event(id).getSelfVariable(1)%4)){
|
||
this.character(0).locate(x+1,y);this.character(10).locate(x+3,y);
|
||
}else{
|
||
this.character(0).locate(x+2,y-1);this.character(10).locate(x+2,y+1);
|
||
}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//上の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y+2);
|
||
if(!!id && $gameMap.regionId(x,y+1)==40 && $gameMap.event(id)._pattern == 2){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if([1,3].includes($gameMap.event(id).getSelfVariable(1)%4)){
|
||
this.character(0).locate(x-1,y+2);this.character(10).locate(x+1,y+2);
|
||
}else{
|
||
this.character(0).locate(x,y+1);this.character(10).locate(x,y+3);
|
||
}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//右の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x-2, y);
|
||
if(!!id && $gameMap.regionId(x-1,y)==41 && $gameMap.event(id)._pattern == 2){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if([1,3].includes($gameMap.event(id).getSelfVariable(1)%4)){
|
||
this.character(0).locate(x-1,y);this.character(10).locate(x+3,y);
|
||
}else{
|
||
this.character(0).locate(x-2,y-1);this.character(10).locate(x-2,y+1);
|
||
}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//下の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y-2);
|
||
if(!!id && $gameMap.regionId(x,y-1)==42 && $gameMap.event(id)._pattern == 2){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if([1,3].includes($gameMap.event(id).getSelfVariable(1)%4)){
|
||
this.character(0).locate(x-1,y-2);this.character(10).locate(x+1,y-2);
|
||
}else{
|
||
this.character(0).locate(x,y-1);this.character(10).locate(x,y-3);
|
||
}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//▼▼▼▼ ┳or┫or┻or┣の場合 ▼▼▼▼
|
||
//左の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x+2, y);
|
||
if(!!id && $gameMap.regionId(x+1,y)==43 && $gameMap.event(id)._pattern == 1){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
[0,1,2].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(0).locate(x+1,y) : this.character(0).locate(x+2,y+1);
|
||
[0,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(10).locate(x+3,y) : this.character(10).locate(x+2,y+1);
|
||
[1,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(2).locate(x+2,y-1) : this.character(2).locate(x+2,y+1);
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//上の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y+2);
|
||
if(!!id && $gameMap.regionId(x,y+1)==40 && $gameMap.event(id)._pattern == 1){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
[0,1,2].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(0).locate(x-1,y+2) : this.character(0).locate(x,y+3);
|
||
[0,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(10).locate(x+1,y+2) : this.character(10).locate(x,y+3);
|
||
[1,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(2).locate(x,y+1) : this.character(2).locate(x,y+3);
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//右の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x-2, y);
|
||
if(!!id && $gameMap.regionId(x-1,y)==41 && $gameMap.event(id)._pattern == 1){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
[0,1,2].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(0).locate(x-3,y) : this.character(0).locate(x-2,y+1);
|
||
[0,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(10).locate(x-1,y) : this.character(10).locate(x-2,y+1);
|
||
[1,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(2).locate(x-2,y-1) : this.character(2).locate(x-2,y+1);
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//下の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y-2);
|
||
if(!!id && $gameMap.regionId(x,y-1)==42 && $gameMap.event(id)._pattern == 1){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
[0,1,2].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(0).locate(x-1,y-2) : this.character(0).locate(x,y-1);
|
||
[0,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(10).locate(x+1,y-2) : this.character(10).locate(x,y-1);
|
||
[1,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(2).locate(x,y-3) : this.character(2).locate(x,y-1);
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//▼▼▼▼ ┃or━の場合 ▼▼▼▼
|
||
//左の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x+2, y);
|
||
if(!!id && $gameMap.regionId(x+1,y)==43 && $gameMap.event(id)._pattern == 0){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if($gameMap.event(id).getSelfVariable(1)%4==0){this.character(0).locate(x+2,y-1);this.character(10).locate(x+3,y);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==1){this.character(0).locate(x+3,y);this.character(10).locate(x+2,y+1);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==2){this.character(0).locate(x+2,y+1);this.character(10).locate(x+1,y);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==3){this.character(0).locate(x+1,y);this.character(10).locate(x+2,y-1);}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//上の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y+2);
|
||
if(!!id && $gameMap.regionId(x,y+1)==40 && $gameMap.event(id)._pattern == 0){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if($gameMap.event(id).getSelfVariable(1)%4==0){this.character(0).locate(x,y+1);this.character(10).locate(x+1,y+2);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==1){this.character(0).locate(x+1,y+2);this.character(10).locate(x,y+3);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==2){this.character(0).locate(x,y+3);this.character(10).locate(x-1,y+2);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==3){this.character(0).locate(x-1,y+2);this.character(10).locate(x,y+1);}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//右の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x-2, y);
|
||
if(!!id && $gameMap.regionId(x-1,y)==41 && $gameMap.event(id)._pattern == 0){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if($gameMap.event(id).getSelfVariable(1)%4==0){this.character(0).locate(x-2,y-1);this.character(10).locate(x-1,y);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==1){this.character(0).locate(x-1,y);this.character(10).locate(x-2,y+1);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==2){this.character(0).locate(x-2,y+1);this.character(10).locate(x-3,y);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==3){this.character(0).locate(x-3,y);this.character(10).locate(x-2,y-1);}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//下の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y-2);
|
||
if(!!id && $gameMap.regionId(x,y-1)==42 && $gameMap.event(id)._pattern == 0){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if($gameMap.event(id).getSelfVariable(1)%4==0){this.character(0).locate(x,y-3);this.character(10).locate(x+1,y-2);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==1){this.character(0).locate(x+1,y-2);this.character(10).locate(x,y-1);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==2){this.character(0).locate(x,y-1);this.character(10).locate(x-1,y-2);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==3){this.character(0).locate(x-1,y-2);this.character(10).locate(x,y-3);}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
}
|
||
|
||
//水道管ゲーム-エリア5-9
|
||
if(args[0]=="pipeGame2"){
|
||
//▼▼▼▼ ┃or━の場合 ▼▼▼▼
|
||
//左の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x+2, y);
|
||
if(!!id && $gameMap.regionId(x+1,y)==43 && $gameMap.event(id)._pattern == 2){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if([1,3].includes($gameMap.event(id).getSelfVariable(1)%4)){
|
||
this.character(0).locate(x+1,y);this.character(10).locate(x+3,y);
|
||
}else{
|
||
this.character(0).locate(x+2,y-1);this.character(10).locate(x+2,y+1);
|
||
}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//上の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y+2);
|
||
if(!!id && $gameMap.regionId(x,y+1)==40 && $gameMap.event(id)._pattern == 2){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if([1,3].includes($gameMap.event(id).getSelfVariable(1)%4)){
|
||
this.character(0).locate(x-1,y+2);this.character(10).locate(x+1,y+2);
|
||
}else{
|
||
this.character(0).locate(x,y+1);this.character(10).locate(x,y+3);
|
||
}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//右の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x-2, y);
|
||
if(!!id && $gameMap.regionId(x-1,y)==41 && $gameMap.event(id)._pattern == 2){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if([1,3].includes($gameMap.event(id).getSelfVariable(1)%4)){
|
||
this.character(0).locate(x-1,y);this.character(10).locate(x+3,y);
|
||
}else{
|
||
this.character(0).locate(x-2,y-1);this.character(10).locate(x-2,y+1);
|
||
}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//下の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y-2);
|
||
if(!!id && $gameMap.regionId(x,y-1)==42 && $gameMap.event(id)._pattern == 2){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if([1,3].includes($gameMap.event(id).getSelfVariable(1)%4)){
|
||
this.character(0).locate(x-1,y-2);this.character(10).locate(x+1,y-2);
|
||
}else{
|
||
this.character(0).locate(x,y-1);this.character(10).locate(x,y-3);
|
||
}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//▼▼▼▼ ┳or┫or┻or┣の場合 ▼▼▼▼
|
||
//左の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x+2, y);
|
||
if(!!id && $gameMap.regionId(x+1,y)==43 && $gameMap.event(id)._pattern == 1){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
[0,1,2].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(0).locate(x+1,y) : this.character(0).locate(x+2,y+1);
|
||
[0,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(10).locate(x+3,y) : this.character(10).locate(x+2,y+1);
|
||
[1,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(2).locate(x+2,y-1) : this.character(2).locate(x+2,y+1);
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//上の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y+2);
|
||
if(!!id && $gameMap.regionId(x,y+1)==40 && $gameMap.event(id)._pattern == 1){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
[0,1,2].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(0).locate(x-1,y+2) : this.character(0).locate(x,y+3);
|
||
[0,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(10).locate(x+1,y+2) : this.character(10).locate(x,y+3);
|
||
[1,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(2).locate(x,y+1) : this.character(2).locate(x,y+3);
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//右の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x-2, y);
|
||
if(!!id && $gameMap.regionId(x-1,y)==41 && $gameMap.event(id)._pattern == 1){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
[0,1,2].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(0).locate(x-3,y) : this.character(0).locate(x-2,y+1);
|
||
[0,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(10).locate(x-1,y) : this.character(10).locate(x-2,y+1);
|
||
[1,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(2).locate(x-2,y-1) : this.character(2).locate(x-2,y+1);
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//下の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y-2);
|
||
if(!!id && $gameMap.regionId(x,y-1)==42 && $gameMap.event(id)._pattern == 1){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
[0,1,2].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(0).locate(x-1,y-2) : this.character(0).locate(x,y-1);
|
||
[0,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(10).locate(x+1,y-2) : this.character(10).locate(x,y-1);
|
||
[1,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(2).locate(x,y-3) : this.character(2).locate(x,y-1);
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//▼▼▼▼ ┃or━の場合 ▼▼▼▼
|
||
//左の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x+2, y);
|
||
if(!!id && $gameMap.regionId(x+1,y)==43 && $gameMap.event(id)._pattern == 0){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if($gameMap.event(id).getSelfVariable(1)%4==0){this.character(0).locate(x+2,y-1);this.character(10).locate(x+3,y);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==1){this.character(0).locate(x+3,y);this.character(10).locate(x+2,y+1);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==2){this.character(0).locate(x+2,y+1);this.character(10).locate(x+1,y);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==3){this.character(0).locate(x+1,y);this.character(10).locate(x+2,y-1);}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//上の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y+2);
|
||
if(!!id && $gameMap.regionId(x,y+1)==40 && $gameMap.event(id)._pattern == 0){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if($gameMap.event(id).getSelfVariable(1)%4==0){this.character(0).locate(x,y+1);this.character(10).locate(x+1,y+2);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==1){this.character(0).locate(x+1,y+2);this.character(10).locate(x,y+3);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==2){this.character(0).locate(x,y+3);this.character(10).locate(x-1,y+2);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==3){this.character(0).locate(x-1,y+2);this.character(10).locate(x,y+1);}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//右の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x-2, y);
|
||
if(!!id && $gameMap.regionId(x-1,y)==41 && $gameMap.event(id)._pattern == 0){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if($gameMap.event(id).getSelfVariable(1)%4==0){this.character(0).locate(x-2,y-1);this.character(10).locate(x-1,y);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==1){this.character(0).locate(x-1,y);this.character(10).locate(x-2,y+1);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==2){this.character(0).locate(x-2,y+1);this.character(10).locate(x-3,y);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==3){this.character(0).locate(x-3,y);this.character(10).locate(x-2,y-1);}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//下の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y-2);
|
||
if(!!id && $gameMap.regionId(x,y-1)==42 && $gameMap.event(id)._pattern == 0){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if($gameMap.event(id).getSelfVariable(1)%4==0){this.character(0).locate(x,y-3);this.character(10).locate(x+1,y-2);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==1){this.character(0).locate(x+1,y-2);this.character(10).locate(x,y-1);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==2){this.character(0).locate(x,y-1);this.character(10).locate(x-1,y-2);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==3){this.character(0).locate(x-1,y-2);this.character(10).locate(x,y-3);}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
}
|
||
|
||
//水道管ゲーム-エリア5-13-1
|
||
if(args[0]=="pipeGame3"){
|
||
//▼▼▼▼ ┃or━の場合 ▼▼▼▼
|
||
//左の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x+2, y);
|
||
if(!!id && $gameMap.regionId(x+1,y)==43 && $gameMap.event(id)._pattern == 2){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if([1,3].includes($gameMap.event(id).getSelfVariable(1)%4)){
|
||
this.character(0).locate(x+1,y);this.character(10).locate(x+3,y);
|
||
}else{
|
||
this.character(0).locate(x+2,y-1);this.character(10).locate(x+2,y+1);
|
||
}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//上の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y+2);
|
||
if(!!id && $gameMap.regionId(x,y+1)==40 && $gameMap.event(id)._pattern == 2){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if([1,3].includes($gameMap.event(id).getSelfVariable(1)%4)){
|
||
this.character(0).locate(x-1,y+2);this.character(10).locate(x+1,y+2);
|
||
}else{
|
||
this.character(0).locate(x,y+1);this.character(10).locate(x,y+3);
|
||
}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//右の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x-2, y);
|
||
if(!!id && $gameMap.regionId(x-1,y)==41 && $gameMap.event(id)._pattern == 2){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if([1,3].includes($gameMap.event(id).getSelfVariable(1)%4)){
|
||
this.character(0).locate(x-1,y);this.character(10).locate(x+3,y);
|
||
}else{
|
||
this.character(0).locate(x-2,y-1);this.character(10).locate(x-2,y+1);
|
||
}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//下の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y-2);
|
||
if(!!id && $gameMap.regionId(x,y-1)==42 && $gameMap.event(id)._pattern == 2){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if([1,3].includes($gameMap.event(id).getSelfVariable(1)%4)){
|
||
this.character(0).locate(x-1,y-2);this.character(10).locate(x+1,y-2);
|
||
}else{
|
||
this.character(0).locate(x,y-1);this.character(10).locate(x,y-3);
|
||
}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//▼▼▼▼ ┳or┫or┻or┣の場合 ▼▼▼▼
|
||
//左の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x+2, y);
|
||
if(!!id && $gameMap.regionId(x+1,y)==43 && $gameMap.event(id)._pattern == 1){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
[0,1,2].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(0).locate(x+1,y) : this.character(0).locate(x+2,y+1);
|
||
[0,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(10).locate(x+3,y) : this.character(10).locate(x+2,y+1);
|
||
[1,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(2).locate(x+2,y-1) : this.character(2).locate(x+2,y+1);
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//上の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y+2);
|
||
if(!!id && $gameMap.regionId(x,y+1)==40 && $gameMap.event(id)._pattern == 1){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
[0,1,2].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(0).locate(x-1,y+2) : this.character(0).locate(x,y+3);
|
||
[0,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(10).locate(x+1,y+2) : this.character(10).locate(x,y+3);
|
||
[1,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(2).locate(x,y+1) : this.character(2).locate(x,y+3);
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//右の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x-2, y);
|
||
if(!!id && $gameMap.regionId(x-1,y)==41 && $gameMap.event(id)._pattern == 1){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
[0,1,2].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(0).locate(x-3,y) : this.character(0).locate(x-2,y+1);
|
||
[0,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(10).locate(x-1,y) : this.character(10).locate(x-2,y+1);
|
||
[1,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(2).locate(x-2,y-1) : this.character(2).locate(x-2,y+1);
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//下の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y-2);
|
||
if(!!id && $gameMap.regionId(x,y-1)==42 && $gameMap.event(id)._pattern == 1){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
[0,1,2].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(0).locate(x-1,y-2) : this.character(0).locate(x,y-1);
|
||
[0,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(10).locate(x+1,y-2) : this.character(10).locate(x,y-1);
|
||
[1,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(2).locate(x,y-3) : this.character(2).locate(x,y-1);
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//▼▼▼▼ ┃or━の場合 ▼▼▼▼
|
||
//左の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x+2, y);
|
||
if(!!id && $gameMap.regionId(x+1,y)==43 && $gameMap.event(id)._pattern == 0){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if($gameMap.event(id).getSelfVariable(1)%4==0){this.character(0).locate(x+2,y-1);this.character(10).locate(x+3,y);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==1){this.character(0).locate(x+3,y);this.character(10).locate(x+2,y+1);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==2){this.character(0).locate(x+2,y+1);this.character(10).locate(x+1,y);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==3){this.character(0).locate(x+1,y);this.character(10).locate(x+2,y-1);}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//上の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y+2);
|
||
if(!!id && $gameMap.regionId(x,y+1)==40 && $gameMap.event(id)._pattern == 0){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if($gameMap.event(id).getSelfVariable(1)%4==0){this.character(0).locate(x,y+1);this.character(10).locate(x+1,y+2);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==1){this.character(0).locate(x+1,y+2);this.character(10).locate(x,y+3);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==2){this.character(0).locate(x,y+3);this.character(10).locate(x-1,y+2);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==3){this.character(0).locate(x-1,y+2);this.character(10).locate(x,y+1);}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//右の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x-2, y);
|
||
if(!!id && $gameMap.regionId(x-1,y)==41 && $gameMap.event(id)._pattern == 0){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if($gameMap.event(id).getSelfVariable(1)%4==0){this.character(0).locate(x-2,y-1);this.character(10).locate(x-1,y);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==1){this.character(0).locate(x-1,y);this.character(10).locate(x-2,y+1);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==2){this.character(0).locate(x-2,y+1);this.character(10).locate(x-3,y);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==3){this.character(0).locate(x-3,y);this.character(10).locate(x-2,y-1);}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//下の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y-2);
|
||
if(!!id && $gameMap.regionId(x,y-1)==42 && $gameMap.event(id)._pattern == 0){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if($gameMap.event(id).getSelfVariable(1)%4==0){this.character(0).locate(x,y-3);this.character(10).locate(x+1,y-2);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==1){this.character(0).locate(x+1,y-2);this.character(10).locate(x,y-1);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==2){this.character(0).locate(x,y-1);this.character(10).locate(x-1,y-2);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==3){this.character(0).locate(x-1,y-2);this.character(10).locate(x,y-3);}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
}
|
||
if(args[0]=="pipeGame_AreaControl"){
|
||
var x = $gamePlayer.x;
|
||
var y = $gamePlayer.y;
|
||
if($gameMap.regionId(x,y)==45){
|
||
var x1 = 6;
|
||
var x2 = 28;
|
||
var y1 = 8;
|
||
var y2 = 28;
|
||
if(x <= x1){
|
||
$gameVariables.setValue(16,x1+1)
|
||
}else if(x2 <= x){
|
||
$gameVariables.setValue(16,x2-1)
|
||
}else{
|
||
$gameVariables.setValue(16,x)
|
||
}
|
||
if(y <= y1){
|
||
$gameVariables.setValue(17,y1+1)
|
||
}else if(y2 <= y){
|
||
$gameVariables.setValue(17,y2-1)
|
||
}else{
|
||
$gameVariables.setValue(17,y)
|
||
}
|
||
}
|
||
}
|
||
|
||
//水道管ゲーム-エリア5-13-2
|
||
if(args[0]=="pipeGame4"){
|
||
//▼▼▼▼ ┃or━の場合 ▼▼▼▼
|
||
//左の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x+2, y);
|
||
if(!!id && $gameMap.regionId(x+1,y)==43 && $gameMap.event(id)._pattern == 2){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if([1,3].includes($gameMap.event(id).getSelfVariable(1)%4)){
|
||
this.character(0).locate(x+1,y);this.character(10).locate(x+3,y);
|
||
}else{
|
||
this.character(0).locate(x+2,y-1);this.character(10).locate(x+2,y+1);
|
||
}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//上の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y+2);
|
||
if(!!id && $gameMap.regionId(x,y+1)==40 && $gameMap.event(id)._pattern == 2){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if([1,3].includes($gameMap.event(id).getSelfVariable(1)%4)){
|
||
this.character(0).locate(x-1,y+2);this.character(10).locate(x+1,y+2);
|
||
}else{
|
||
this.character(0).locate(x,y+1);this.character(10).locate(x,y+3);
|
||
}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//右の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x-2, y);
|
||
if(!!id && $gameMap.regionId(x-1,y)==41 && $gameMap.event(id)._pattern == 2){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if([1,3].includes($gameMap.event(id).getSelfVariable(1)%4)){
|
||
this.character(0).locate(x-1,y);this.character(10).locate(x+3,y);
|
||
}else{
|
||
this.character(0).locate(x-2,y-1);this.character(10).locate(x-2,y+1);
|
||
}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//下の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y-2);
|
||
if(!!id && $gameMap.regionId(x,y-1)==42 && $gameMap.event(id)._pattern == 2){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if([1,3].includes($gameMap.event(id).getSelfVariable(1)%4)){
|
||
this.character(0).locate(x-1,y-2);this.character(10).locate(x+1,y-2);
|
||
}else{
|
||
this.character(0).locate(x,y-1);this.character(10).locate(x,y-3);
|
||
}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//▼▼▼▼ ┳or┫or┻or┣の場合 ▼▼▼▼
|
||
//左の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x+2, y);
|
||
if(!!id && $gameMap.regionId(x+1,y)==43 && $gameMap.event(id)._pattern == 1){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
[0,1,2].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(0).locate(x+1,y) : this.character(0).locate(x+2,y+1);
|
||
[0,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(10).locate(x+3,y) : this.character(10).locate(x+2,y+1);
|
||
[1,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(2).locate(x+2,y-1) : this.character(2).locate(x+2,y+1);
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//上の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y+2);
|
||
if(!!id && $gameMap.regionId(x,y+1)==40 && $gameMap.event(id)._pattern == 1){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
[0,1,2].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(0).locate(x-1,y+2) : this.character(0).locate(x,y+3);
|
||
[0,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(10).locate(x+1,y+2) : this.character(10).locate(x,y+3);
|
||
[1,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(2).locate(x,y+1) : this.character(2).locate(x,y+3);
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//右の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x-2, y);
|
||
if(!!id && $gameMap.regionId(x-1,y)==41 && $gameMap.event(id)._pattern == 1){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
[0,1,2].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(0).locate(x-3,y) : this.character(0).locate(x-2,y+1);
|
||
[0,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(10).locate(x-1,y) : this.character(10).locate(x-2,y+1);
|
||
[1,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(2).locate(x-2,y-1) : this.character(2).locate(x-2,y+1);
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//下の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y-2);
|
||
if(!!id && $gameMap.regionId(x,y-1)==42 && $gameMap.event(id)._pattern == 1){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
[0,1,2].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(0).locate(x-1,y-2) : this.character(0).locate(x,y-1);
|
||
[0,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(10).locate(x+1,y-2) : this.character(10).locate(x,y-1);
|
||
[1,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(2).locate(x,y-3) : this.character(2).locate(x,y-1);
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//▼▼▼▼ ┃or━の場合 ▼▼▼▼
|
||
//左の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x+2, y);
|
||
if(!!id && $gameMap.regionId(x+1,y)==43 && $gameMap.event(id)._pattern == 0){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if($gameMap.event(id).getSelfVariable(1)%4==0){this.character(0).locate(x+2,y-1);this.character(10).locate(x+3,y);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==1){this.character(0).locate(x+3,y);this.character(10).locate(x+2,y+1);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==2){this.character(0).locate(x+2,y+1);this.character(10).locate(x+1,y);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==3){this.character(0).locate(x+1,y);this.character(10).locate(x+2,y-1);}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//上の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y+2);
|
||
if(!!id && $gameMap.regionId(x,y+1)==40 && $gameMap.event(id)._pattern == 0){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if($gameMap.event(id).getSelfVariable(1)%4==0){this.character(0).locate(x,y+1);this.character(10).locate(x+1,y+2);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==1){this.character(0).locate(x+1,y+2);this.character(10).locate(x,y+3);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==2){this.character(0).locate(x,y+3);this.character(10).locate(x-1,y+2);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==3){this.character(0).locate(x-1,y+2);this.character(10).locate(x,y+1);}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//右の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x-2, y);
|
||
if(!!id && $gameMap.regionId(x-1,y)==41 && $gameMap.event(id)._pattern == 0){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if($gameMap.event(id).getSelfVariable(1)%4==0){this.character(0).locate(x-2,y-1);this.character(10).locate(x-1,y);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==1){this.character(0).locate(x-1,y);this.character(10).locate(x-2,y+1);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==2){this.character(0).locate(x-2,y+1);this.character(10).locate(x-3,y);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==3){this.character(0).locate(x-3,y);this.character(10).locate(x-2,y-1);}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//下の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y-2);
|
||
if(!!id && $gameMap.regionId(x,y-1)==42 && $gameMap.event(id)._pattern == 0){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if($gameMap.event(id).getSelfVariable(1)%4==0){this.character(0).locate(x,y-3);this.character(10).locate(x+1,y-2);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==1){this.character(0).locate(x+1,y-2);this.character(10).locate(x,y-1);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==2){this.character(0).locate(x,y-1);this.character(10).locate(x-1,y-2);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==3){this.character(0).locate(x-1,y-2);this.character(10).locate(x,y-3);}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
}
|
||
|
||
//水道管ゲーム-エリア5-16
|
||
if(args[0]=="pipeGameEx"){
|
||
//▼▼▼▼ ┃or━の場合 ▼▼▼▼
|
||
//左の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x+2, y);
|
||
if(!!id && $gameMap.regionId(x+1,y)==43 && $gameMap.event(id)._pattern == 2){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if([1,3].includes($gameMap.event(id).getSelfVariable(1)%4)){
|
||
this.character(0).locate(x+1,y);this.character(10).locate(x+3,y);
|
||
}else{
|
||
this.character(0).locate(x+2,y-1);this.character(10).locate(x+2,y+1);
|
||
}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//上の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y+2);
|
||
if(!!id && $gameMap.regionId(x,y+1)==40 && $gameMap.event(id)._pattern == 2){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if([1,3].includes($gameMap.event(id).getSelfVariable(1)%4)){
|
||
this.character(0).locate(x-1,y+2);this.character(10).locate(x+1,y+2);
|
||
}else{
|
||
this.character(0).locate(x,y+1);this.character(10).locate(x,y+3);
|
||
}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//右の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x-2, y);
|
||
if(!!id && $gameMap.regionId(x-1,y)==41 && $gameMap.event(id)._pattern == 2){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if([1,3].includes($gameMap.event(id).getSelfVariable(1)%4)){
|
||
this.character(0).locate(x-1,y);this.character(10).locate(x+3,y);
|
||
}else{
|
||
this.character(0).locate(x-2,y-1);this.character(10).locate(x-2,y+1);
|
||
}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//下の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y-2);
|
||
if(!!id && $gameMap.regionId(x,y-1)==42 && $gameMap.event(id)._pattern == 2){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if([1,3].includes($gameMap.event(id).getSelfVariable(1)%4)){
|
||
this.character(0).locate(x-1,y-2);this.character(10).locate(x+1,y-2);
|
||
}else{
|
||
this.character(0).locate(x,y-1);this.character(10).locate(x,y-3);
|
||
}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//▼▼▼▼ ┳or┫or┻or┣の場合 ▼▼▼▼
|
||
//左の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x+2, y);
|
||
if(!!id && $gameMap.regionId(x+1,y)==43 && $gameMap.event(id)._pattern == 1){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
[0,1,2].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(0).locate(x+1,y) : this.character(0).locate(x+2,y+1);
|
||
[0,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(10).locate(x+3,y) : this.character(10).locate(x+2,y+1);
|
||
[1,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(2).locate(x+2,y-1) : this.character(2).locate(x+2,y+1);
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//上の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y+2);
|
||
if(!!id && $gameMap.regionId(x,y+1)==40 && $gameMap.event(id)._pattern == 1){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
[0,1,2].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(0).locate(x-1,y+2) : this.character(0).locate(x,y+3);
|
||
[0,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(10).locate(x+1,y+2) : this.character(10).locate(x,y+3);
|
||
[1,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(2).locate(x,y+1) : this.character(2).locate(x,y+3);
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//右の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x-2, y);
|
||
if(!!id && $gameMap.regionId(x-1,y)==41 && $gameMap.event(id)._pattern == 1){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
[0,1,2].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(0).locate(x-3,y) : this.character(0).locate(x-2,y+1);
|
||
[0,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(10).locate(x-1,y) : this.character(10).locate(x-2,y+1);
|
||
[1,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(2).locate(x-2,y-1) : this.character(2).locate(x-2,y+1);
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//下の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y-2);
|
||
if(!!id && $gameMap.regionId(x,y-1)==42 && $gameMap.event(id)._pattern == 1){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
[0,1,2].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(0).locate(x-1,y-2) : this.character(0).locate(x,y-1);
|
||
[0,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(10).locate(x+1,y-2) : this.character(10).locate(x,y-1);
|
||
[1,2,3].includes($gameMap.event(id).getSelfVariable(1)%4) ? this.character(2).locate(x,y-3) : this.character(2).locate(x,y-1);
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//▼▼▼▼ ┃or━の場合 ▼▼▼▼
|
||
//左の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x+2, y);
|
||
if(!!id && $gameMap.regionId(x+1,y)==43 && $gameMap.event(id)._pattern == 0){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if($gameMap.event(id).getSelfVariable(1)%4==0){this.character(0).locate(x+2,y-1);this.character(10).locate(x+3,y);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==1){this.character(0).locate(x+3,y);this.character(10).locate(x+2,y+1);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==2){this.character(0).locate(x+2,y+1);this.character(10).locate(x+1,y);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==3){this.character(0).locate(x+1,y);this.character(10).locate(x+2,y-1);}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//上の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y+2);
|
||
if(!!id && $gameMap.regionId(x,y+1)==40 && $gameMap.event(id)._pattern == 0){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if($gameMap.event(id).getSelfVariable(1)%4==0){this.character(0).locate(x,y+1);this.character(10).locate(x+1,y+2);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==1){this.character(0).locate(x+1,y+2);this.character(10).locate(x,y+3);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==2){this.character(0).locate(x,y+3);this.character(10).locate(x-1,y+2);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==3){this.character(0).locate(x-1,y+2);this.character(10).locate(x,y+1);}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//右の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x-2, y);
|
||
if(!!id && $gameMap.regionId(x-1,y)==41 && $gameMap.event(id)._pattern == 0){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if($gameMap.event(id).getSelfVariable(1)%4==0){this.character(0).locate(x-2,y-1);this.character(10).locate(x-1,y);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==1){this.character(0).locate(x-1,y);this.character(10).locate(x-2,y+1);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==2){this.character(0).locate(x-2,y+1);this.character(10).locate(x-3,y);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==3){this.character(0).locate(x-3,y);this.character(10).locate(x-2,y-1);}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
//下の場合
|
||
var x = $gamePlayer.x;var y = $gamePlayer.y;
|
||
var id = $gameMap.eventIdXy(x, y-2);
|
||
if(!!id && $gameMap.regionId(x,y-1)==42 && $gameMap.event(id)._pattern == 0){
|
||
$gameSelfSwitches.setVariableValue([$gameMap.mapId() , id, 1], $gameMap.event(id).direction()/2 -1);
|
||
if($gameMap.event(id).getSelfVariable(1)%4==0){this.character(0).locate(x,y-3);this.character(10).locate(x+1,y-2);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==1){this.character(0).locate(x+1,y-2);this.character(10).locate(x,y-1);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==2){this.character(0).locate(x,y-1);this.character(10).locate(x-1,y-2);}
|
||
if($gameMap.event(id).getSelfVariable(1)%4==3){this.character(0).locate(x-1,y-2);this.character(10).locate(x,y-3);}
|
||
this.character(14).locate(x,y);
|
||
}
|
||
}
|
||
|
||
//移動先アイコン設定処理
|
||
if(args[0]=="setFastTravelsIcon"){
|
||
//自宅
|
||
id = 0;
|
||
//露出連れ回しの刑イベント
|
||
var damage = Math.floor($gameVariables.value(123) * ($gameVariables.value(124)*0.01))
|
||
if ($gameVariables.value(122) <= damage){
|
||
if(!$gameSwitches.value(562)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=3 && $gameSwitches.value(562) && !$gameSwitches.value(563)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=5 && $gameSwitches.value(563) && !$gameSwitches.value(564)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=7 && $gameSwitches.value(564) && !$gameSwitches.value(565)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=9 && $gameSwitches.value(565) && !$gameSwitches.value(566)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
}
|
||
$gameVariables.setValue(843,id);
|
||
//夢見学園
|
||
id = 0;
|
||
if($gameSwitches.value(124) && $gameVariables.value(2)<=2 && $gameVariables.value(4)%7<=4){
|
||
if($gameVariables.value(4)%7<=4){
|
||
//メインシナリオイベント1章
|
||
if($gameVariables.value(8)<30){
|
||
id = 2928;
|
||
}
|
||
//メインシナリオイベント2章
|
||
if($gameSwitches.value(862) && $gameVariables.value(22)<19){
|
||
id = 2928;
|
||
}
|
||
//メインシナリオイベント3章
|
||
if($gameVariables.value(23)>=10 && $gameVariables.value(23)<=24){
|
||
id = 2928;
|
||
}
|
||
//メインシナリオイベント4章
|
||
if($gameVariables.value(25)==0 && $gameVariables.value(24)<150){
|
||
if($gameVariables.value(2)==0){
|
||
if($gameVariables.value(24)>=15){
|
||
id = 2928;
|
||
}else if($gameVariables.value(24)>=30){
|
||
id = 2928;
|
||
}else if($gameVariables.value(172)>=20){
|
||
id = 2928;
|
||
}
|
||
}
|
||
}
|
||
//悪夢NPCチェック
|
||
if($gameSwitches.value(977)){
|
||
if($gameSwitches.value(936) && $gameSwitches.value(883) && $gameVariables.value(462)>=100 && $gameVariables.value(464)==0){
|
||
id = 2944;
|
||
}
|
||
if($gameVariables.value(464)==50){
|
||
id = 2928;
|
||
}
|
||
if($gameSwitches.value(939) && $gameSwitches.value(889) && $gameVariables.value(468)>=100 && $gameVariables.value(470)==0){
|
||
id = 2944;
|
||
}
|
||
if($gameVariables.value(470)==50){
|
||
id = 2928;
|
||
}
|
||
if($gameSwitches.value(939) && $gameSwitches.value(889) && $gameVariables.value(469)>=100 && $gameVariables.value(471)==0){
|
||
id = 2944;
|
||
}
|
||
if($gameVariables.value(471)==50){
|
||
id = 2928;
|
||
}
|
||
}
|
||
}
|
||
|
||
//メインシナリオイベント1章敗北期間
|
||
if($gameSwitches.value(98)){
|
||
if($gameVariables.value(2)==0){
|
||
if($gameVariables.value(637)<10){
|
||
id = 2928;
|
||
}
|
||
if(!$gameSwitches.value(493)){
|
||
if(id == 0)id = 2960;
|
||
}else if(!$gameSwitches.value(494)){
|
||
if(id == 0)id = 2960;
|
||
}else if(!$gameSwitches.value(495)){
|
||
if(id == 0)id = 2960;
|
||
}else if(!$gameSwitches.value(496)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
}
|
||
}
|
||
|
||
//催眠イベント(!より優先表示)
|
||
if($gameSwitches.value(978) && $gameVariables.value(2)==0){
|
||
if(!$gameSwitches.value(547))id = 2960;
|
||
if(!$gameSwitches.value(548))id = 2960;
|
||
if($gameVariables.value(2)==2 && !$gameSwitches.value(549))id = 2960;//おちんぽ検査は水曜のみ
|
||
if(!$gameSwitches.value(550))id = 2960;
|
||
if(!$gameSwitches.value(551))id = 2960;
|
||
if(!$gameSwitches.value(552))id = 2960;
|
||
if(!$gameSwitches.value(553))id = 2960;
|
||
if($gameSwitches.value(310) && !$gameSwitches.value(554))id = 2960;
|
||
if(!$gameSwitches.value(555))id = 2960;
|
||
if($gameSwitches.value(310) && !$gameSwitches.value(556))id = 2960;
|
||
if(!$gameSwitches.value(557))id = 2960;
|
||
if($gameSwitches.value(310) && !$gameSwitches.value(558))id = 2960;
|
||
if(!$gameSwitches.value(362))id = 2960;
|
||
if($gameSwitches.value(310) && !$gameSwitches.value(363))id = 2960;
|
||
if(!$gameSwitches.value(364))id = 2960;
|
||
if($gameSwitches.value(310) && !$gameSwitches.value(365))id = 2960;
|
||
if(!$gameSwitches.value(366))id = 2960;
|
||
if($gameSwitches.value(310) && !$gameSwitches.value(367))id = 2960;
|
||
if(!$gameSwitches.value(368))id = 2960;
|
||
if($gameSwitches.value(310) && !$gameSwitches.value(369))id = 2960;
|
||
if(!$gameSwitches.value(386))id = 2960;
|
||
if($gameVariables.value(2)==0 && $gameVariables.value(4)%7<=4 && $gameVariables.value(581)>=3 && !$gameSwitches.value(387))id = 2960;//鬼頭の催眠性指導は3回以上サボったときのみ
|
||
if($gameVariables.value(638)>=3 && !$gameSwitches.value(387))id = 2960;
|
||
|
||
if($gameSwitches.value(96) && !$gameSwitches.value(529))id = 2960;
|
||
}
|
||
|
||
//必殺技イベントフラグチェック
|
||
if($gameSwitches.value(926) && !$gameSwitches.value(434)){
|
||
if($gameSwitches.value(977) || $gameVariables.value(2)>=2){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
}
|
||
|
||
//午前中限定エロイベントフラグチェック
|
||
if($gameVariables.value(2)==0){
|
||
//脅迫イベント
|
||
if($gameSwitches.value(977)){//催眠期間外
|
||
if($gameVariables.value(33)>=5 && !$gameSwitches.value(463)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=7 && $gameSwitches.value(463) && !$gameSwitches.value(464)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=9 && $gameSwitches.value(464) && !$gameSwitches.value(465)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=11 && $gameSwitches.value(465) && !$gameSwitches.value(466)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
}
|
||
//生徒指導イベント
|
||
if($gameSwitches.value(752)){
|
||
if($gameVariables.value(20)==0){
|
||
id = 2928;
|
||
}else if($gameVariables.value(20)==1 && !$gameSwitches.value(596)){
|
||
if(id == 0)id = 2960;
|
||
}else if(!$gameSwitches.value(48) && $gameVariables.value(20)==2 && !$gameSwitches.value(597)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(20)==3 && !$gameSwitches.value(598)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(20)==4 && !$gameSwitches.value(599)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
}else if($gameVariables.value(589)>=100 && $gameSwitches.value(871) && !$gameSwitches.value(600)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
//屈辱の服装検査イベント
|
||
if($gameSwitches.value(662) && $gameSwitches.value(987) && $gameVariables._data[362][2]==0){
|
||
if(!$gameSwitches.value(342)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
}
|
||
}
|
||
|
||
|
||
//ポスター撮影イベント
|
||
if(!$gameSwitches.value(98) && !$gameSwitches.value(751) && $gameVariables.value(297)<240){
|
||
if($gameSwitches.value(977) || $gameVariables.value(2)>=2){
|
||
if($gameSwitches.value(4) && $gameVariables.value(297)==0){
|
||
id = 2928;
|
||
}else if($gameVariables.value(297)<20){
|
||
id = 2928;
|
||
}else if(30<=$gameVariables.value(297) && $gameVariables.value(297)<35 && $gameSwitches.value(883)){
|
||
id = 2928;//就寝イベ後、ポスターに出るやつ
|
||
}else if(35<=$gameVariables.value(297) && $gameVariables.value(297)<40 && $gameSwitches.value(883)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(297)==40 && $gameSwitches.value(883)){
|
||
id = 2928;
|
||
}else if(50<=$gameVariables.value(297) && $gameVariables.value(297)<100 && $gameSwitches.value(885)){
|
||
id = 2928;
|
||
}else if($gameVariables.value(297)<110){
|
||
//id = 0;
|
||
}else if(110<=$gameVariables.value(297) && $gameVariables.value(297)<140 && $gameSwitches.value(887)){
|
||
if(id == 0)id = 2960;
|
||
}else if(140<=$gameVariables.value(297) && $gameVariables.value(297)<150 && $gameSwitches.value(887)){
|
||
id = 2928;
|
||
}else if(150<=$gameVariables.value(297) && $gameVariables.value(297)<200 && $gameSwitches.value(889)){
|
||
id = 2928;
|
||
}else if(200<=$gameVariables.value(297) && $gameVariables.value(297)<240 && $gameSwitches.value(891)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
}
|
||
}
|
||
|
||
//立ち絵エロイベントフラグチェック
|
||
if($gameSwitches.value(931) && $gameVariables.value(471)>=100 && !$gameSwitches.value(382)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
if($gameVariables.value(2)==0 && $gameSwitches.value(666)){
|
||
if($gameVariables.value(580)==6 && $gameVariables.value(577)<10 && !$gameSwitches.value(378)){
|
||
if(id == 0)id = 2960;//鍵探し(風紀良い時3-控えめ誘惑)
|
||
}
|
||
if($gameVariables.value(580)==6 && $gameVariables.value(577)<10 && !$gameSwitches.value(379)){
|
||
if(id == 0)id = 2960;//鍵探し(風紀良い時3-露骨誘惑)
|
||
}
|
||
if($gameVariables.value(580)==5 && $gameVariables.value(577)<10 && !$gameSwitches.value(380)){
|
||
if(id == 0)id = 2960;//壁の精子取り(風紀悪化3)
|
||
}
|
||
}
|
||
//ザーメンメトラー 朝かつ見てないかつ6章かつ風紀イベントの抽選がONかつ風紀悪化ポスター掲示中
|
||
if($gameVariables.value(2)==0 && !$gameSwitches.value(377) && $gameVariables.value(33)>=11 && $gameSwitches.value(665) && $gameVariables.value(299)>=3){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
}
|
||
$gameVariables.setValue(844,id);
|
||
//中心街
|
||
id = 0;
|
||
if($gameSwitches.value(128)){
|
||
//メインシナリオイベント3章
|
||
if($gameVariables.value(23)>=25 && $gameVariables.value(23)<=29){
|
||
id = 2928;
|
||
}
|
||
//悪夢NPCチェック
|
||
if($gameVariables.value(462)>=100 && $gameVariables.value(463)==0){
|
||
id = 2944;
|
||
}
|
||
//徘徊NPCエロ-フェラ
|
||
if($gameVariables.value(2)>=3){
|
||
if(!$gameSwitches.value(147)){
|
||
if($gameVariables.value(4)%7==1 || $gameVariables.value(4)%7==5){
|
||
if($gameVariables.value(33)>=7 && !$gameSwitches.value(390)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=9 && !$gameSwitches.value(391)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=11 && !$gameSwitches.value(392)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
//徘徊NPCエロ-本番
|
||
if($gameVariables.value(2)>=3){
|
||
if($gameVariables.value(33)>9){
|
||
if($gameVariables.value(4)%7==2 || $gameVariables.value(4)%7==6){
|
||
if(!$gameSwitches.value(388) || !$gameSwitches.value(389)){
|
||
if(!$gameSwitches.value(723)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
//銭湯イベントチェック
|
||
if($gameVariables.value(36) < 20){
|
||
if(!$gameSwitches.value(422)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=3 && $gameSwitches.value(422) && !$gameSwitches.value(423)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=5 && $gameSwitches.value(423) && !$gameSwitches.value(424)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=7 && $gameSwitches.value(424) && !$gameSwitches.value(425)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=9 && $gameSwitches.value(428) && !$gameSwitches.value(429)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
}
|
||
}
|
||
$gameVariables.setValue(845,id);
|
||
//駅前
|
||
id = 0;
|
||
if($gameSwitches.value(138)){
|
||
//悪夢NPCチェック
|
||
if($gameVariables.value(2)<=2){
|
||
if($gameSwitches.value(938) && $gameSwitches.value(887) && $gameVariables.value(467)>=100 && $gameVariables.value(469)==0){
|
||
id = 2944;
|
||
}
|
||
if($gameVariables.value(469)==50){
|
||
id = 2928;
|
||
}
|
||
}
|
||
//徘徊NPCエロ-フェラ
|
||
if($gameVariables.value(2)>=3){
|
||
if(!$gameSwitches.value(147)){
|
||
if($gameVariables.value(4)%7==0 || $gameVariables.value(4)%7==3){
|
||
if($gameVariables.value(33)>=7 && !$gameSwitches.value(390)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=9 && !$gameSwitches.value(391)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=11 && !$gameSwitches.value(392)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
//徘徊NPCエロ-本番
|
||
if($gameVariables.value(2)>=3){
|
||
if($gameVariables.value(33)>9){
|
||
if($gameVariables.value(4)%7==1 || $gameVariables.value(4)%7==5){
|
||
if(!$gameSwitches.value(388) || !$gameSwitches.value(389)){
|
||
if(!$gameSwitches.value(723)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
//痴漢イベントフラグチェック
|
||
if($gameVariables.value(291)==0 && $gameVariables.value(2)==0 && !$gameSwitches.value(877)){
|
||
id = 2928;
|
||
}
|
||
if($gameVariables.value(291)>=10 && !$gameSwitches.value(412)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=3 && $gameSwitches.value(412) && !$gameSwitches.value(413)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=5 && $gameSwitches.value(413) && !$gameSwitches.value(414)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=7 && $gameSwitches.value(414) && !$gameSwitches.value(415)){
|
||
if(id == 0)id = 2960;;
|
||
}else if($gameVariables.value(33)>=9 && $gameSwitches.value(415) && !$gameSwitches.value(416)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
//本屋イベントフラグチェック
|
||
if($gameVariables.value(284)==0){
|
||
id = 2928;
|
||
}else if($gameVariables.value(33)>=3 && $gameSwitches.value(582) && !$gameSwitches.value(583)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=5 && $gameSwitches.value(583) && !$gameSwitches.value(585)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=7 && $gameSwitches.value(585) && !$gameSwitches.value(586)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=9 && $gameSwitches.value(586) && !$gameSwitches.value(588)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
//必殺技イベントフラグチェック
|
||
if($gameVariables.value(40)==10 && !$gameSwitches.value(432)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(40)==20 && !$gameSwitches.value(433)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(40)>=40 && $gameVariables.value(40)<=41 && !$gameSwitches.value(435)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
}
|
||
$gameVariables.setValue(846,id);
|
||
//歓楽街
|
||
id = 0;
|
||
if($gameSwitches.value(126)){
|
||
//メインシナリオイベント2章
|
||
if($gameVariables.value(2)>=2){
|
||
if($gameVariables.value(22)==20){
|
||
id = 2928;
|
||
}
|
||
if($gameVariables.value(22)==21){
|
||
id = 2928;
|
||
}
|
||
if($gameVariables.value(22)==40){
|
||
id = 2928;
|
||
}
|
||
if($gameVariables.value(22)==41){
|
||
id = 2928;
|
||
}
|
||
if($gameVariables.value(22)==50){
|
||
id = 2960;
|
||
}
|
||
if($gameVariables.value(22)==60){
|
||
id = 2928;
|
||
}
|
||
}
|
||
//メインシナリオイベント3章
|
||
if($gameVariables.value(23)==40){
|
||
id = 2928;
|
||
}
|
||
//悪夢NPCチェック
|
||
if($gameSwitches.value(885) && $gameSwitches.value(937) && $gameVariables.value(465)>=100 && $gameVariables.value(467)==0){
|
||
id = 2944;
|
||
}
|
||
//徘徊NPCエロ-フェラ
|
||
if($gameVariables.value(2)>=3){
|
||
if(!$gameSwitches.value(147)){
|
||
if($gameVariables.value(4)%7==2 || $gameVariables.value(4)%7==6){
|
||
if($gameVariables.value(33)>=7 && !$gameSwitches.value(390)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=9 && !$gameSwitches.value(391)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=11 && !$gameSwitches.value(392)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
//徘徊NPCエロ-本番
|
||
if($gameVariables.value(2)>=3){
|
||
if($gameVariables.value(33)>9){
|
||
if($gameVariables.value(4)%7==0 || $gameVariables.value(4)%7==4){
|
||
if(!$gameSwitches.value(388) || !$gameSwitches.value(389)){
|
||
if(!$gameSwitches.value(723)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
//封印されしマゾの服イベントフラグチェック
|
||
if($gameVariables.value(39)==20 && $gameSwitches.value(939) && !$gameSwitches.value(345)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
//必殺技イベントフラグチェック
|
||
if($gameVariables.value(40)==50 && !$gameSwitches.value(436)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
//マッサージイベントチェック
|
||
if(!$gameSwitches.value(472)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=5 && $gameVariables.value(210)>=2 && $gameSwitches.value(472) && !$gameSwitches.value(473)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=7 && $gameVariables.value(210)>=3 && $gameSwitches.value(473) && !$gameSwitches.value(474)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=9 && $gameVariables.value(210)>=4 && $gameSwitches.value(474) && !$gameSwitches.value(475)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=11 && $gameVariables.value(210)>=5 && $gameSwitches.value(475) && !$gameSwitches.value(476)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
//マッサージイベント昇格チェック
|
||
if(!$gameSwitches.value(480)){
|
||
if($gameVariables.value(33)>=5 && $gameSwitches.value(472) && $gameVariables.value(210)==1 && $gameVariables.value(206)>=3){
|
||
id = 2928;
|
||
}else if($gameVariables.value(33)>=7 && $gameSwitches.value(473) && $gameVariables.value(210)==2 && $gameVariables.value(207)>=3){
|
||
id = 2928;
|
||
}else if($gameVariables.value(33)>=9 && $gameSwitches.value(474) && $gameVariables.value(210)==3 && $gameVariables.value(208)>=3){
|
||
id = 2928;
|
||
}else if($gameVariables.value(33)>=11 && $gameSwitches.value(475) && $gameVariables.value(210)==4 && $gameVariables.value(209)>=5){
|
||
//これだけ5回
|
||
id = 2928;
|
||
}
|
||
}
|
||
if($gameVariables.value(2)>=2){
|
||
//見学店イベントチェック
|
||
if($gameVariables.value(42)==10){
|
||
id = 2928;
|
||
}else if($gameVariables.value(33)>=7 && !$gameSwitches.value(611)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=9 && $gameSwitches.value(611) && !$gameSwitches.value(612)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=11 && $gameSwitches.value(612) && !$gameSwitches.value(613)){
|
||
if(id == 0)id = 2960;
|
||
}else if(!$gameSwitches.value(620) && $gameSwitches.value(613) && !$gameSwitches.value(614)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
//バニーパブイベントチェック
|
||
if(!$gameSwitches.value(629)){
|
||
if($gameVariables.value(33)>=5 && $gameVariables.value(309)<=1){
|
||
id = 2928;
|
||
}else if($gameVariables.value(33)>=5 && !$gameSwitches.value(622)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=7 && $gameSwitches.value(622) && !$gameSwitches.value(623)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=9 && $gameSwitches.value(623) && !$gameSwitches.value(624)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
}
|
||
}
|
||
//AdultMartイベントチェック
|
||
if($gameVariables.value(22)>=150 && $gameVariables.value(60)<=5){
|
||
id = 2928;
|
||
}else if($gameVariables.value(60)>=10 && !$gameSwitches.value(483)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=7 && $gameSwitches.value(483) && !$gameSwitches.value(484)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=9 && $gameSwitches.value(484) && !$gameSwitches.value(485)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=11 && $gameSwitches.value(485) && !$gameSwitches.value(486)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
if($gameVariables.value(320)==1 && $gameSwitches.value(163)){
|
||
id = 2928;
|
||
}
|
||
//敗北期間イベント
|
||
if($gameVariables.value(2)>=2 && $gameSwitches.value(278)){
|
||
if(!$gameSwitches.value(503)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
if(!$gameSwitches.value(504)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
if(!$gameSwitches.value(505)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
if(!$gameSwitches.value(506)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
if(!$gameSwitches.value(507)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
if(!$gameSwitches.value(508)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
if(!$gameSwitches.value(509)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
if(!$gameSwitches.value(510)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
}
|
||
}
|
||
$gameVariables.setValue(847,id);
|
||
//自然公園
|
||
id = 0;
|
||
if($gameSwitches.value(130)){
|
||
//悪夢NPCチェック
|
||
if($gameVariables.value(462)==0){
|
||
id = 2944;
|
||
}
|
||
if($gameVariables.value(462)==50){
|
||
id = 2928;
|
||
}
|
||
if($gameSwitches.value(937) && $gameSwitches.value(885) && $gameVariables.value(464)>=100 && $gameVariables.value(466)==0){
|
||
id = 2944;
|
||
}
|
||
if($gameVariables.value(466)==50){
|
||
id = 2928;
|
||
}
|
||
if($gameSwitches.value(938) && $gameSwitches.value(896) && $gameVariables.value(466)>=100 && $gameVariables.value(468)==0){
|
||
id = 2944;
|
||
}
|
||
if($gameSwitches.value(865) && $gameVariables.value(468)==50){
|
||
id = 2928;
|
||
}
|
||
//露出プレイチェック
|
||
if($gameVariables.value(2)<=2){
|
||
if(!$gameSwitches.value(402)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=3 && $gameSwitches.value(402) && !$gameSwitches.value(403)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=5 && $gameSwitches.value(403) && !$gameSwitches.value(404)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=7 && $gameSwitches.value(404) && !$gameSwitches.value(405) && $gameVariables.value(320)>=10){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=9 && $gameSwitches.value(405) && !$gameSwitches.value(406)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
if($gameVariables.value(320)==0 && $gameSwitches.value(163)){
|
||
id = 2928;
|
||
}
|
||
}
|
||
}
|
||
$gameVariables.setValue(848,id);
|
||
//龍神神社
|
||
id = 0;
|
||
if($gameSwitches.value(140)){
|
||
//メインシナリオ
|
||
if($gameVariables.value(25)>=10 && $gameVariables.value(25)<150 && $gameVariables.value(2)>=3){
|
||
id = 2928;
|
||
}
|
||
//悪夢NPCチェック
|
||
if($gameVariables.value(2)<=2 && $gameSwitches.value(883) && $gameSwitches.value(936) && $gameVariables.value(463)>=100 && $gameVariables.value(465)==0){
|
||
id = 2944;
|
||
}
|
||
//借金返済イベントチェック 夕方かつ5章本編進行度が9以下かつ神社イベントが進んでない場合 返済開始前
|
||
if($gameVariables.value(2)<=2 && $gameVariables.value(25)<=9 && $gameVariables.value(287)<=19){
|
||
//ただし2章後半で導入を見ていない場合は除く
|
||
if(!($gameVariables.value(22)>=10 && $gameVariables.value(33)==4 && $gameVariables.value(287)<=19)){
|
||
id = 2928;
|
||
}
|
||
}
|
||
if($gameVariables.value(33)<=10){
|
||
if(($gameVariables.value(25)>=10 && $gameVariables.value(2)<=2) && $gameVariables.value(287)>=20 || ($gameVariables.value(25)<10 && $gameVariables.value(2)<=3) && $gameVariables.value(287)>=20){
|
||
if(!$gameSwitches.value(571)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=3 && $gameSwitches.value(571) && !$gameSwitches.value(572)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=5 && $gameSwitches.value(572) && !$gameSwitches.value(573)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=7 && $gameSwitches.value(573) && !$gameSwitches.value(574)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
}
|
||
}else{
|
||
if($gameVariables.value(25)>=10 && $gameVariables.value(287)>=20 && $gameSwitches.value(324)){
|
||
if(!$gameSwitches.value(571)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=3 && $gameSwitches.value(571) && !$gameSwitches.value(572)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=5 && $gameSwitches.value(572) && !$gameSwitches.value(573)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=7 && $gameSwitches.value(573) && !$gameSwitches.value(574)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
$gameVariables.setValue(849,id);
|
||
//アクアキングダム
|
||
id = 0;
|
||
if($gameSwitches.value(132)){
|
||
//メインシナリオイベント3章
|
||
if($gameVariables.value(23)>=30 && $gameVariables.value(23)<60 && $gameVariables.value(2)==2){
|
||
id = 2928;
|
||
}
|
||
if($gameVariables.value(23)>=60 && $gameVariables.value(23)<=80 && $gameVariables.value(2)==3){
|
||
id = 2928;
|
||
}
|
||
if($gameVariables.value(23)>=100){
|
||
//ナイトプールイベント
|
||
if($gameVariables.value(33)>=7 && $gameVariables.value(272)<=1){
|
||
id = 2928;
|
||
}else if(!$gameSwitches.value(542)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=9 && $gameSwitches.value(542) && !$gameSwitches.value(543)){
|
||
if(id == 0)id = 2960;
|
||
}else if($gameVariables.value(33)>=11 && $gameSwitches.value(543) && !$gameSwitches.value(544)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
//立ち絵エロ
|
||
if($gameVariables.value(2)>=3 && !$gameSwitches.value(736)){
|
||
if(!$gameSwitches.value(374)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
if($gameVariables.value(33)>=9 && $gameSwitches.value(374) && !$gameSwitches.value(375)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
if($gameVariables.value(33)>=11 && $gameSwitches.value(375) && !$gameSwitches.value(376)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
if(!$gameSwitches.value(370)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
if($gameVariables.value(33)>=9 && $gameSwitches.value(370) && !$gameSwitches.value(371)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
if($gameVariables.value(33)>=11 && $gameSwitches.value(371) && !$gameSwitches.value(372)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
}
|
||
}
|
||
|
||
//敗北イベント
|
||
if($gameVariables.value(2)>=3){
|
||
if($gameSwitches.value(108)){
|
||
//if(!$gameSwitches.value(512)){
|
||
// if(id == 0)id = 2960;
|
||
//}
|
||
if(!$gameSwitches.value(513)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
if(!$gameSwitches.value(514)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
if(!$gameSwitches.value(515)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
if(!$gameSwitches.value(516)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
if(!$gameSwitches.value(517)){
|
||
if(id == 0)id = 2960;
|
||
}
|
||
if(id == 0)id = 2928;//すべてのイベントが見終わった時だけ!
|
||
}
|
||
}
|
||
}
|
||
$gameVariables.setValue(850,id);
|
||
//病院
|
||
id = 0;
|
||
$gameVariables.setValue(851,id);
|
||
}
|
||
if(args[0]=="BattleLog_OK"){
|
||
//変数97はStackBattleLogで指定される
|
||
//console.log(BattleManager._logWindow.numLines())
|
||
$gameVariables._data[97]=520+(BattleManager._logWindow.numLines()-1)*28;
|
||
$gameVariables._data[153]=290
|
||
$gameScreen.showPicture(20,"[APNG]Battle_cursor",0,$gameVariables.value(153),$gameVariables.value(97),100,100,255,0);
|
||
//PositionType=5の番号(5)はMW_ChangeMessageYでy座標を決めるときに計算に用いられる
|
||
this.setWaitMode('key_ok')
|
||
}
|
||
if(args[0]=="BattleEffect_Wait"){
|
||
if(Input.isPressed('ok') || Input.isPressed('cancel') || Input.isPressed('control') || TouchInput.isPressed()){
|
||
this.wait(1);
|
||
}else{
|
||
this.wait(2);
|
||
}
|
||
}
|
||
//絶頂ゲージ処理
|
||
if(args[0]=="EcstasyEmpty1"){
|
||
var value = 1;
|
||
if($gameVariables.value(83)>=$gameVariables.value(82)*0.25){
|
||
value=4
|
||
}else if($gameVariables.value(83)>=$gameVariables.value(82)*0.1){
|
||
value=2
|
||
}
|
||
$gameVariables._data[83]-= value;
|
||
$gameActors.actor(1).gainTp(-value);
|
||
}else if(args[0]=="EcstasyEmpty2"){
|
||
var value = 1;
|
||
if($gameVariables.value(83)>=($gameVariables.value(82)-$gameVariables.value(16))*0.25){
|
||
value=4
|
||
}else if($gameVariables.value(83)>=($gameVariables.value(82)-$gameVariables.value(16))*0.1){
|
||
value=2
|
||
}
|
||
$gameVariables._data[83]-= value;
|
||
$gameActors.actor(1).gainTp(-value);
|
||
}
|
||
//ザーバルン処理
|
||
if(args[0]=="Zaballoon" ){
|
||
if(args[1]=="Damage"){
|
||
var pose = $gameVariables.value(80);
|
||
if (pose == 3 || pose == 6 || pose == 9) {
|
||
$gameVariables._data[84] = 50 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -130 + Math.floor( Math.random() * 11 );
|
||
}else if(pose == 2|| pose == 7){
|
||
$gameVariables._data[84] = -30 + Math.floor( Math.random() * 11 );
|
||
$gameVariables._data[85] = -60 + Math.floor( Math.random() * 11 );
|
||
}else{
|
||
$gameVariables._data[84] = 25 + Math.floor( Math.random() * 11 );
|
||
$gameVariables._data[85] = -130 + Math.floor( Math.random() * 11 );
|
||
}
|
||
}else if(args[1] === "DamageCalc"){
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
$gameVariables._data[87] = [0,0,1,1][Math.floor( Math.random() * 4 )];
|
||
}else{
|
||
$gameVariables._data[87] = [0,1,1,1][Math.floor( Math.random() * 4 )];
|
||
}
|
||
increaseDamageBasedOnProbability();
|
||
}else if(args[1] === "Text"){
|
||
if($gameVariables.value(80)==1){
|
||
switch(result){
|
||
case 1:$gameVariables._data[84] = -60 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = -90 + Math.floor( Math.random() * 11 );this.pluginCommand(commandName, ['[Battle]Word_Dop_01','255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = 105 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = -90 + Math.floor( Math.random() * 16 );this.pluginCommand(commandName, ['[Battle]Word_Dop_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
}else if([2,7].includes($gameVariables.value(80))){
|
||
switch(result){
|
||
case 1:$gameVariables._data[84] = -105 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = -25 + Math.floor( Math.random() * 11 );this.pluginCommand(commandName, ['[Battle]Word_Dop_01','255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = 60 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = -25 + Math.floor( Math.random() * 16 );this.pluginCommand(commandName, ['[Battle]Word_Dop_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
}else if([3,6,9].includes($gameVariables.value(80))){
|
||
switch(result){
|
||
case 1:$gameVariables._data[84] = -35 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = -80 + Math.floor( Math.random() * 11 );this.pluginCommand(commandName, ['[Battle]Word_Dop_01','255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = 130 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = -80 + Math.floor( Math.random() * 16 );this.pluginCommand(commandName, ['[Battle]Word_Dop_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
}
|
||
}else if(args[1] === "Heart"){
|
||
if($gameVariables.value(80)==1){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -75 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -170 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 135 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -170 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}else if([2,7].includes($gameVariables.value(80))){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -120 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -105 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 90 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -105 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}else if([3,6,9].includes($gameVariables.value(80))){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -50 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -160 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 160 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -160 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}
|
||
}else if(args[1]=="Damage2"){
|
||
$gameVariables._data[84] = 24 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = 190 + Math.floor( Math.random() * 21 );
|
||
}else if(args[1] === "DamageCalc2"){
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
$gameVariables._data[87] = [0,0,1,1,2][Math.floor( Math.random() * 5 )];
|
||
}else{
|
||
$gameVariables._data[87] = [0,1,1,2][Math.floor( Math.random() * 4 )];
|
||
}
|
||
increaseDamageBasedOnProbability();
|
||
}else if(args[1] === "Text2"){
|
||
switch(result){
|
||
case 2:$gameVariables._data[84] = 130 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 140 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_01','255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = -80 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 190 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_02','255,120,140,255']);break;
|
||
case 7:$gameVariables._data[84] = 80 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 210 + Math.floor( Math.random() * 16 );
|
||
switch($gameVariables.value(266)){
|
||
case 0:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 1:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
case 2:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 3:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
default:break;
|
||
}
|
||
}else if(args[1] === "Heart2"){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -160 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -85 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 5 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -85 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}else if(args[1] === "Anime1"){
|
||
var anime = 1 + Math.floor((14 - $gameVariables.value(86)))
|
||
if(anime >=14)anime=14
|
||
if(anime < 10)anime = "0"+anime
|
||
$gameScreen.showPicture(11,"[Battle]Cut-in_Samen_Anime_00" + anime,0,0,0,100,100,255,0);
|
||
//$gameScreen.showPicture(12,"[Battle]Cut-in_Kuri_03a_000" + anime,0,$gameVariables.value(275),$gameVariables.value(276),100,100,255,0);
|
||
}else if(args[1] === "Anime2"){
|
||
var anime = Math.abs($gameVariables.value(86)%8)+1
|
||
$gameScreen.showPicture(11,"[Battle]Cut-in_Kuri_03_000" + anime,0,0,0,100,100,255,0);
|
||
if(anime==4 || anime==8)AudioManager.playSe({"name":"Wind4","volume":90,"pitch":150,"pan":0})
|
||
$gameScreen.showPicture(12,"[Battle]Cut-in_Kuri_03a_000" + anime,0,$gameVariables.value(275),$gameVariables.value(276),100,100,255,0);
|
||
}
|
||
|
||
//[1層目]ジェントルハンド処理
|
||
}else if(args[0] === "GentlHand"){
|
||
if(args[1] === "Damage"){
|
||
$gameVariables._data[84] = -25 + Math.floor( Math.random() * 141 );
|
||
$gameVariables._data[85] = 0 + Math.floor( Math.random() * 31 );
|
||
}else if(args[1] === "DamageCalc"){
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
if(!$gameActors.actor(1).hasSkill(251)){
|
||
$gameVariables._data[87] = [0,0,1][Math.floor( Math.random() * 3 )];
|
||
}else{
|
||
$gameVariables._data[87] = [0,1][Math.floor( Math.random() * 2 )];
|
||
}
|
||
}else{
|
||
if(!$gameActors.actor(1).hasSkill(251)){
|
||
$gameVariables._data[87] = [0,0,0,1,1][Math.floor( Math.random() * 5 )];
|
||
}else{
|
||
$gameVariables._data[87] = [0,1,1,2][Math.floor( Math.random() * 4 )];
|
||
}
|
||
}
|
||
increaseDamageBasedOnProbability();
|
||
}else if(args[1] === "Text"){
|
||
switch(result){
|
||
case 5:$gameVariables._data[84] = 150 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 20 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Momi_02','255,120,140,255']);break;
|
||
case 7:$gameVariables._data[84] = 40 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 210 + Math.floor( Math.random() * 16 );
|
||
switch($gameVariables.value(266)){
|
||
case 0:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 1:$gameVariables._data[266]=2;this.pluginCommand(commandName, ['[Battle]Word_Mura_01','255,120,140,255']);break;
|
||
case 2:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
case 3:$gameVariables._data[266]=0;this.pluginCommand(commandName, ['[Battle]Word_Mura_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
default:break;
|
||
}
|
||
}else if(args[1] === "Heart"){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -50 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -150 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 160 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -150 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}else if(args[1] === "Anime"){
|
||
var anime = Math.abs($gameVariables.value(86)%4)+1
|
||
var equipId = 1;
|
||
if($gameActors.actor(1).hasArmor($dataArmors[7])){equipId = 2;}
|
||
if($gameActors.actor(1).hasArmor($dataArmors[8])){equipId = 3;}
|
||
$gameScreen.showPicture(13,"[Battle]Cut-in_GentleHand_" + equipId + "_000" + anime,0,0,0,100,100,255,0);
|
||
$gameScreen.showPicture(14,"[Battle]Cut-in_GentleHand_Text_000" + anime,0,$gameVariables.value(275),$gameVariables.value(276),100,100,255,0);
|
||
}else if(args[1] === "AnimeEx"){
|
||
var anime = 5;
|
||
var equipId = 1;
|
||
if($gameActors.actor(1).hasArmor($dataArmors[7])){equipId = 2;}
|
||
if($gameActors.actor(1).hasArmor($dataArmors[8])){equipId = 3;}
|
||
$gameScreen.showPicture(13,"[Battle]Cut-in_GentleHand_" + equipId + "_000" + anime,0,0,0,100,100,255,0);
|
||
$gameScreen.showPicture(14,"[Battle]Cut-in_GentleHand_Text_000" + anime,0,$gameVariables.value(275),$gameVariables.value(276),100,100,255,0);
|
||
}
|
||
//[1層目]ベロリンパ処理
|
||
}else if(args[0] === "Berorinpa"){
|
||
if(args[1]=="Damage"){
|
||
var pose = $gameVariables.value(80);
|
||
if (pose == 3 || pose == 6 || pose == 9) {
|
||
$gameVariables._data[84] = 50 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -80 + Math.floor( Math.random() * 11 );
|
||
}else if(pose == 2|| pose == 7){
|
||
$gameVariables._data[84] = -90 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -5 + Math.floor( Math.random() * 11 );
|
||
}else{
|
||
$gameVariables._data[84] = 25 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -90 + Math.floor( Math.random() * 11 );
|
||
}
|
||
}else if(args[1] === "DamageCalc"){
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
$gameVariables._data[87] = [0,0,0,0,1][Math.floor( Math.random() * 5 )];
|
||
}else{
|
||
$gameVariables._data[87] = [0,1][Math.floor( Math.random() * 2 )];
|
||
}
|
||
increaseDamageBasedOnProbability();
|
||
}else if(args[1] === "Text"){
|
||
if($gameVariables.value(80)==1){
|
||
switch(result){
|
||
case 1:$gameVariables._data[84] = -60 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = -90 + Math.floor( Math.random() * 11 );
|
||
var filename = $gameVariables._data[86]%2 ? "[Battle]Word_Chu_01":"[Battle]Word_Chupa_01"
|
||
this.pluginCommand(command, [filename,'255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = 105 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = -90 + Math.floor( Math.random() * 16 );
|
||
var filename = $gameVariables._data[86]%2 ? "[Battle]Word_Chupa_02":"[Battle]Word_Chu_02"
|
||
this.pluginCommand(command, [filename,'255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
}else if([2,7].includes($gameVariables.value(80))){
|
||
switch(result){
|
||
case 1:$gameVariables._data[84] = -165 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = -25 + Math.floor( Math.random() * 11 );
|
||
var filename = $gameVariables._data[86]%2 ? "[Battle]Word_Chu_01":"[Battle]Word_Chupa_01"
|
||
this.pluginCommand(command, [filename,'255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = 0 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = -25 + Math.floor( Math.random() * 16 );
|
||
var filename = $gameVariables._data[86]%2 ? "[Battle]Word_Chupa_02":"[Battle]Word_Chu_02"
|
||
this.pluginCommand(command, [filename,'255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
}else if([3,6,9].includes($gameVariables.value(80))){
|
||
switch(result){
|
||
case 1:$gameVariables._data[84] = -35 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = -80 + Math.floor( Math.random() * 11 );
|
||
var filename = $gameVariables._data[86]%2 ? "[Battle]Word_Chu_01":"[Battle]Word_Chupa_01"
|
||
this.pluginCommand(command, [filename,'255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = 130 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = -80 + Math.floor( Math.random() * 16 );
|
||
var filename = $gameVariables._data[86]%2 ? "[Battle]Word_Chupa_02":"[Battle]Word_Chu_02"
|
||
this.pluginCommand(command, [filename,'255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
}
|
||
}else if(args[1] === "Heart"){
|
||
if($gameVariables.value(80)==1){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -75 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -170 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 135 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -170 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}else if([2,7].includes($gameVariables.value(80))){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -180 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -105 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 30 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -105 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}else if([3,6,9].includes($gameVariables.value(80))){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -50 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -160 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 160 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -160 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}
|
||
}
|
||
//[2層目]操り黒子処理
|
||
}else if(args[0] === "Kuroko"){
|
||
if(args[1]=="Damage"){//ダメージの座標指定
|
||
$gameVariables._data[84] = 50 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = 240 + Math.floor( Math.random() * 16 );
|
||
}else if(args[1] === "DamageCalc"){
|
||
if($gameVariables.value(86)%2==0){
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
$gameVariables._data[87] = Math.floor( Math.random() * 3 );
|
||
}else{
|
||
$gameVariables._data[87] = Math.floor( Math.random() * 4 );
|
||
}
|
||
}else{
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
$gameVariables._data[87] = Math.floor( Math.random() * 2 );
|
||
}else{
|
||
$gameVariables._data[87] = Math.floor( Math.random() * 3 );
|
||
}
|
||
}
|
||
increaseDamageBasedOnProbability();
|
||
}else if(args[1] === "Text"){
|
||
switch(result){
|
||
case 4: $gameVariables._data[84] = 100 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = 240 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
case 7:$gameVariables._data[84] = -10 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = 240 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
}else if(args[1] === "Heart"){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -40 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -140 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 150 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -140 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}
|
||
//[2層目]デンマヅチ処理-攻撃A
|
||
}else if(args[0] === "DenmadutiA"){
|
||
if(args[1]=="Damage"){//ダメージの座標指定
|
||
$gameVariables._data[84] = 50 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = 240 + Math.floor( Math.random() * 6 );
|
||
}else if(args[1] === "DamageCalc"){
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
$gameVariables._data[87] = Math.floor( Math.random() * 3 );
|
||
}else{
|
||
$gameVariables._data[87] = Math.floor( Math.random() * 4 );
|
||
}
|
||
increaseDamageBasedOnProbability();
|
||
}else if(args[1] === "Text"){
|
||
switch(result){
|
||
case 4: $gameVariables._data[84] = 100 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = 240 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Baibu_01','255,120,140,255']);break;
|
||
case 7:$gameVariables._data[84] = -10 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = 240 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Baibu_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
}else if(args[1] === "Heart"){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -40 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -140 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 150 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -140 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}
|
||
//[2層目]デンマヅチ処理-攻撃B
|
||
}else if(args[0] === "DenmadutiB"){
|
||
if(args[1]=="Damage"){//ダメージの座標指定//
|
||
$gameVariables._data[84] = 50 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = 235 + Math.floor( Math.random() * 6 );
|
||
}else if(args[1] === "DamageCalc"){
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
$gameVariables._data[87] = Math.floor( Math.random() * 2 );
|
||
}else{
|
||
$gameVariables._data[87] = Math.floor( Math.random() * 3 );
|
||
}
|
||
increaseDamageBasedOnProbability();
|
||
}else if(args[1] === "Text"){
|
||
switch(result){
|
||
case 4: $gameVariables._data[84] = 100 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = 310 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Baibu_01','255,120,140,255']);break;
|
||
case 7:$gameVariables._data[84] = -10 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = 310 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Baibu_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
}else if(args[1] === "Heart"){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -40 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -140 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 150 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -140 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}
|
||
//[2層目]ニップルディスク処理
|
||
}else if(args[0] === "NippleDisk"){
|
||
if(args[1]=="Damage"){
|
||
var pose = $gameVariables.value(80);
|
||
if (pose == 4|| pose == 5) {
|
||
$gameVariables._data[84] = -40 + Math.floor( Math.random() * 6 );
|
||
$gameVariables._data[85] = 90 + Math.floor( Math.random() * 6 );
|
||
if($gameVariables.value(86)%2!=0){
|
||
$gameVariables._data[84] += 105;
|
||
}
|
||
}else if (pose == 3 || pose == 6 || pose == 9) {
|
||
$gameVariables._data[84] = -35 + Math.floor( Math.random() * 6 );
|
||
$gameVariables._data[85] = 30 + Math.floor( Math.random() * 6 );
|
||
if($gameVariables.value(86)%2!=0){
|
||
$gameVariables._data[84] += 120;
|
||
}
|
||
}else if(pose == 2|| pose == 7){
|
||
$gameVariables._data[84] = -110 + Math.floor( Math.random() * 6 );
|
||
$gameVariables._data[85] = 85 + Math.floor( Math.random() * 6 );
|
||
if($gameVariables.value(86)%2!=0){
|
||
$gameVariables._data[84] += 115;
|
||
$gameVariables._data[85] -= 15;
|
||
}
|
||
}else{
|
||
$gameVariables._data[84] = -50 + Math.floor( Math.random() * 6 );
|
||
$gameVariables._data[85] = 20 + Math.floor( Math.random() * 6 );
|
||
if($gameVariables.value(86)%2!=0){
|
||
$gameVariables._data[84] += 95;
|
||
}
|
||
}
|
||
}else if(args[1] === "DamageCalc"){
|
||
var damage = 2;
|
||
if($gameActors.actor(1).isStateAffected(45)) damage +=1;
|
||
if($gameActors.actor(1).hasSkill(251)) damage += 1;
|
||
$gameVariables._data[87] = Math.floor( Math.random() * damage );
|
||
increaseDamageBasedOnProbability();
|
||
}else if(args[1] === "Text"){
|
||
if($gameVariables.value(80)==1){
|
||
switch(result){
|
||
case 2:$gameVariables._data[84] = -100 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 20 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_01','255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = 120 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 20 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_02','255,120,140,255']);break;
|
||
case 7:$gameVariables._data[84] = 40 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 210 + Math.floor( Math.random() * 16 );
|
||
switch($gameVariables.value(266)){
|
||
case 0:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 1:$gameVariables._data[266]=2;this.pluginCommand(commandName, ['[Battle]Word_Mura_01','255,120,140,255']);break;
|
||
case 2:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
case 3:$gameVariables._data[266]=0;this.pluginCommand(commandName, ['[Battle]Word_Mura_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
default:break;
|
||
}
|
||
}else if([2,7].includes($gameVariables.value(80))){
|
||
switch(result){
|
||
case 2:$gameVariables._data[84] = -160 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 55 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_01','255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = 70 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 50 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_02','255,120,140,255']);break;
|
||
case 7:$gameVariables._data[84] = 15 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 210 + Math.floor( Math.random() * 16 );
|
||
switch($gameVariables.value(266)){
|
||
case 0:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 1:$gameVariables._data[266]=2;this.pluginCommand(commandName, ['[Battle]Word_Mura_01','255,120,140,255']);break;
|
||
case 2:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
case 3:$gameVariables._data[266]=0;this.pluginCommand(commandName, ['[Battle]Word_Mura_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
default:break;
|
||
}
|
||
}else if([3,6,9].includes($gameVariables.value(80))){
|
||
switch(result){
|
||
case 2:$gameVariables._data[84] = -90 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 20 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_01','255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = 130 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 20 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_02','255,120,140,255']);break;
|
||
case 7:$gameVariables._data[84] = 40 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 210 + Math.floor( Math.random() * 16 );
|
||
switch($gameVariables.value(266)){
|
||
case 0:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 1:$gameVariables._data[266]=2;this.pluginCommand(commandName, ['[Battle]Word_Mura_01','255,120,140,255']);break;
|
||
case 2:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
case 3:$gameVariables._data[266]=0;this.pluginCommand(commandName, ['[Battle]Word_Mura_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
default:break;
|
||
}
|
||
}else if([4,5].includes($gameVariables.value(80))){
|
||
switch(result){
|
||
case 2:$gameVariables._data[84] = -98 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 62 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_01','255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = 134 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 62 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_02','255,120,140,255']);break;
|
||
case 7:$gameVariables._data[84] = 67 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 290 + Math.floor( Math.random() * 16 );
|
||
switch($gameVariables.value(266)){
|
||
case 0:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 1:$gameVariables._data[266]=2;this.pluginCommand(commandName, ['[Battle]Word_Mura_01','255,120,140,255']);break;
|
||
case 2:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
case 3:$gameVariables._data[266]=0;this.pluginCommand(commandName, ['[Battle]Word_Mura_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
default:break;
|
||
}
|
||
}
|
||
}else if(args[1] === "Heart"){
|
||
if($gameVariables.value(80)==1){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -75 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -170 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 135 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -170 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}else if([2,7].includes($gameVariables.value(80))){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -105 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -85 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 75 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -85 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}else if([3,6,9].includes($gameVariables.value(80))){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -37 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -105 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 153 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -105 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}else if([4,5].includes($gameVariables.value(80))){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -33 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -115 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 107 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -115 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}
|
||
}
|
||
|
||
//[3層目]3Pリング
|
||
}else if(args[0] === "3Prings"){
|
||
if(args[1]=="Damage"){
|
||
//右乳首と左乳首を交互に刺激する処理あり
|
||
if($gameVariables.value(80)==1){
|
||
$gameVariables._data[84] = -50 + Math.floor( Math.random() * 6 );
|
||
$gameVariables._data[85] = 20 + Math.floor( Math.random() * 6 );
|
||
if($gameVariables.value(86)%3==1){
|
||
$gameVariables._data[84] += 95;
|
||
}else if($gameVariables.value(86)%3==2){
|
||
$gameVariables._data[84] += 85;
|
||
$gameVariables._data[85] += 190;
|
||
}
|
||
}else if([2].includes($gameVariables.value(80))){
|
||
$gameVariables._data[84] = -85 + Math.floor( Math.random() * 6 );
|
||
$gameVariables._data[85] = 70 + Math.floor( Math.random() * 6 );
|
||
if($gameVariables.value(86)%3==1){
|
||
$gameVariables._data[84] += 100;
|
||
}else if($gameVariables.value(86)%3==2){
|
||
$gameVariables._data[84] += 135;
|
||
$gameVariables._data[85] += 120;
|
||
}
|
||
}else if([7].includes($gameVariables.value(80))){
|
||
$gameVariables._data[84] = -125 + Math.floor( Math.random() * 6 );
|
||
$gameVariables._data[85] = 85 + Math.floor( Math.random() * 6 );
|
||
if($gameVariables.value(86)%3==1){
|
||
$gameVariables._data[84] += 100;
|
||
}else if($gameVariables.value(86)%3==2){
|
||
$gameVariables._data[84] += 135;
|
||
$gameVariables._data[85] += 120;
|
||
}
|
||
}else if([4,5,8].includes($gameVariables.value(80))){
|
||
$gameVariables._data[84] = -40 + Math.floor( Math.random() * 6 );
|
||
$gameVariables._data[85] = 90 + Math.floor( Math.random() * 6 );
|
||
if($gameVariables.value(86)%3==1){
|
||
$gameVariables._data[84] += 105;
|
||
}else if($gameVariables.value(86)%3==2){
|
||
$gameVariables._data[84] += 100;
|
||
$gameVariables._data[85] += 190;
|
||
}
|
||
}
|
||
}else if(args[1] === "DamageCalc"){
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
$gameVariables._data[87] = [0,0,1,1,2][Math.floor( Math.random() * 5 )];
|
||
}else{
|
||
$gameVariables._data[87] = [0,1,1,2][Math.floor( Math.random() * 4 )];
|
||
}
|
||
if($gameActors.actor(1).hasSkill(251)) $gameVariables._data[87] += [0,1,1][Math.floor( Math.random() * 3 )];
|
||
increaseDamageBasedOnProbability();
|
||
}else if(args[1] === "Text"){
|
||
if($gameVariables.value(80)==1){
|
||
switch(result){
|
||
case 2:$gameVariables._data[84] = -100 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 20 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_01','255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = 120 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 20 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_02','255,120,140,255']);break;
|
||
case 7:$gameVariables._data[84] = 40 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 210 + Math.floor( Math.random() * 16 );
|
||
switch($gameVariables.value(266)){
|
||
case 0:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 1:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
case 2:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 3:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
default:break;
|
||
}
|
||
}else if([2].includes($gameVariables.value(80))){
|
||
switch(result){
|
||
case 2:$gameVariables._data[84] = -160 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 55 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_01','255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = 70 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 50 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_02','255,120,140,255']);break;
|
||
case 7:$gameVariables._data[84] = 15 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 210 + Math.floor( Math.random() * 16 );
|
||
switch($gameVariables.value(266)){
|
||
case 0:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 1:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
case 2:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 3:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
default:break;
|
||
}
|
||
}else if([7].includes($gameVariables.value(80))){
|
||
switch(result){
|
||
case 2:$gameVariables._data[84] = -160 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 55 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_01','255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = 40 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 50 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_02','255,120,140,255']);break;
|
||
case 7:$gameVariables._data[84] = 15 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 210 + Math.floor( Math.random() * 16 );
|
||
switch($gameVariables.value(266)){
|
||
case 0:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 1:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
case 2:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 3:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
default:break;
|
||
}
|
||
}else if([4,5].includes($gameVariables.value(80))){
|
||
switch(result){
|
||
case 2:$gameVariables._data[84] = -98 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 62 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_01','255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = 134 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 62 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_02','255,120,140,255']);break;
|
||
case 7:$gameVariables._data[84] = 67 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 290 + Math.floor( Math.random() * 16 );
|
||
switch($gameVariables.value(266)){
|
||
case 0:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 1:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
case 2:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 3:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
default:break;
|
||
}
|
||
}
|
||
}else if(args[1] === "Heart"){
|
||
if($gameVariables.value(80)==1){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -75 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -170 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 135 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -170 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}else if([2].includes($gameVariables.value(80))){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -105 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -85 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 75 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -85 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}else if([7].includes($gameVariables.value(80))){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -160 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -85 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 5 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -85 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}else if([4,5].includes($gameVariables.value(80))){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -33 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -115 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 107 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -115 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}
|
||
}
|
||
//[3層目]処理
|
||
}else if(args[0] === "MCgear"){
|
||
if(args[1]=="Damage"){//ダメージの座標指定
|
||
$gameVariables._data[84] = 50 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = 240 + Math.floor( Math.random() * 16 );
|
||
}else if(args[1] === "DamageCalc"){
|
||
if($gameVariables.value(86)%2==0){
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
$gameVariables._data[87] = [0,0,1,1,1][Math.floor( Math.random() * 5 )];
|
||
}else{
|
||
$gameVariables._data[87] = [0,0,1,2][Math.floor( Math.random() * 4 )];
|
||
}
|
||
}else{
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
$gameVariables._data[87] = [0,0,0,1][Math.floor( Math.random() * 4 )];
|
||
}else{
|
||
$gameVariables._data[87] = [0,0,1,1][Math.floor( Math.random() * 4 )];
|
||
}
|
||
}
|
||
increaseDamageBasedOnProbability();
|
||
}else if(args[1] === "Text"){
|
||
switch(result){
|
||
case 4: $gameVariables._data[84] = 100 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = 240 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
case 7:$gameVariables._data[84] = -10 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = 240 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
}else if(args[1] === "Heart"){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -40 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -140 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 150 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -140 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}
|
||
//[3層目]処理
|
||
}else if(args[0] === "AIpearl"){
|
||
if(args[1]=="Damage"){
|
||
$gameVariables._data[84] = 24 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = 190 + Math.floor( Math.random() * 21 );
|
||
}else if(args[1] === "DamageCalc"){
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
$gameVariables._data[87] = [0,1,1,1,2][Math.floor( Math.random() * 5 )];
|
||
}else{
|
||
$gameVariables._data[87] = [1,1,1,2][Math.floor( Math.random() * 4 )];
|
||
}
|
||
increaseDamageBasedOnProbability();
|
||
}else if(args[1] === "Text"){
|
||
switch(result){
|
||
case 2:$gameVariables._data[84] = 130 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 140 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_01','255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = -80 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 190 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_02','255,120,140,255']);break;
|
||
case 7:$gameVariables._data[84] = 80 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 210 + Math.floor( Math.random() * 16 );
|
||
switch($gameVariables.value(266)){
|
||
case 0:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 1:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
case 2:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 3:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
default:break;
|
||
}
|
||
}else if(args[1] === "Heart"){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -100 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -150 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 60 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -150 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}
|
||
//[4層目]ソウルジャック(DamageとTextとHeartは操り黒子を利用)
|
||
}else if(args[0] === "SoulJack"){
|
||
if(args[1] === "DamageCalc"){
|
||
if($gameVariables.value(86)%2==0){
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
$gameVariables._data[87] = Math.floor( Math.random() * 2 +0.5);
|
||
}else{
|
||
$gameVariables._data[87] = Math.floor( Math.random() * 3 +0.5);
|
||
}
|
||
}else{
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
$gameVariables._data[87] = Math.floor( Math.random() * 1 +0.5);
|
||
}else{
|
||
$gameVariables._data[87] = Math.floor( Math.random() * 2 +0.5);
|
||
}
|
||
}
|
||
increaseDamageBasedOnProbability();
|
||
}
|
||
//[4層目]ドレインワーム処理(DamageとTextとHeartはニップルディスクを利用)
|
||
}else if(args[0] === "DrainWorm"){
|
||
if(args[1] === "DamageCalc"){
|
||
var damage = 2;
|
||
if($gameActors.actor(1).isStateAffected(45)) damage +=1;
|
||
if($gameActors.actor(1).hasSkill(251)) damage += 1;//敏感乳首
|
||
$gameVariables._data[87] = Math.floor( Math.random() * damage );
|
||
increaseDamageBasedOnProbability();
|
||
}
|
||
else if(args[1] === "Anime"){
|
||
var PopupCount = Math.abs($gameVariables.value(86) % 6)
|
||
var equipId = 1;
|
||
var picId = "0001";
|
||
if([1,5].includes(PopupCount)) picId = "0002";
|
||
if([2,4].includes(PopupCount)) picId = "0003";
|
||
if([3].includes(PopupCount)) picId = "0004";
|
||
if($gameActors.actor(1).hasArmor($dataArmors[7])){equipId = 2;}
|
||
if($gameActors.actor(1).hasArmor($dataArmors[8])){equipId = 3;}
|
||
|
||
var filename = "[Battle]Cut-in_Nipple_0008_" + equipId + "_" + picId;
|
||
|
||
$gameScreen.showPicture(11,filename,0,0,0,100,100,255,0);
|
||
}
|
||
//[4層目]クリッピー処理-攻撃B
|
||
}else if(args[0] === "Clippy"){
|
||
if(args[1]=="Damage"){//ダメージの座標指定//
|
||
$gameVariables._data[84] = 10 + Math.floor( Math.random() * 6 );
|
||
$gameVariables._data[85] = 210 + Math.floor( Math.random() * 6 );
|
||
}else if(args[1] === "DamageCalc1"){
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
$gameVariables._data[87] = [0,0,0,1,1,1,2][Math.floor( Math.random() * 7 )];
|
||
}else{
|
||
$gameVariables._data[87] = [0,1,1,2,2][Math.floor( Math.random() * 5 )];
|
||
}
|
||
increaseDamageBasedOnProbability();
|
||
}else if(args[1] === "DamageCalc2"){
|
||
//攻撃前後の最大HPに対するHPの割合を求め、受けたダメージ(%)にMath.floor(Math.random() * x)0-5を足す
|
||
var enemyHP1 = $gameVariables.value(192) / $gameVariables.value(194);
|
||
var enemyHP2 = $gameVariables.value(193) / $gameVariables.value(194);
|
||
var damageRate = Math.floor((enemyHP1 - enemyHP2 ) *100);
|
||
$gameVariables._data[87] = Math.floor( Math.random() * 6 );
|
||
$gameVariables._data[87] += damageRate;
|
||
increaseDamageBasedOnProbability();
|
||
if($gameVariables._data[87] >= 50)$gameVariables._data[87] = 50;
|
||
}else if(args[1] === "Text"){
|
||
switch(result){
|
||
case 2:$gameVariables._data[84] = 130 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 140 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_01','255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = -80 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 190 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_02','255,120,140,255']);break;
|
||
case 7:$gameVariables._data[84] = 80 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 210 + Math.floor( Math.random() * 16 );
|
||
switch($gameVariables.value(266)){
|
||
case 0:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 1:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
case 2:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 3:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
default:break;
|
||
}
|
||
}else if(args[1] === "Heart"){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -180 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -95 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 20 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -105 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}
|
||
//[5層目]処理 ポルチオボマー
|
||
}else if(args[0] === "PortioBomber"){
|
||
if(args[1]=="Damage"){
|
||
$gameVariables._data[84] = -45 + Math.floor( Math.random() * 38 );
|
||
$gameVariables._data[85] = 160 + Math.floor( Math.random() * 25 );
|
||
}else if(args[1] === "DamageCalc"){
|
||
if($gameVariables.value(574)==0){
|
||
var damage = Math.ceil( ($gameVariables.value(82))/60 );
|
||
$gameVariables._data[87] = [damage,damage+1][Math.floor( Math.random() * 2 )];
|
||
}else{
|
||
var damage = Math.ceil( ($gameVariables.value(82))/30 );
|
||
$gameVariables._data[87] = [damage,damage+1,damage+2][Math.floor( Math.random() * 3 )];
|
||
}
|
||
increaseDamageBasedOnProbability();
|
||
}else if(args[1] === "Text"){
|
||
switch(result){
|
||
case 2:$gameVariables._data[84] = -100 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 195 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Baibu_01','255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = 120 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 160 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Baibu_02','255,120,140,255']);break;
|
||
case 7:
|
||
switch($gameVariables.value(266)){
|
||
case 0:$gameVariables._data[266]=1;$gameVariables._data[84] = 70 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = -5 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_01','255,120,140,255']);break;
|
||
case 1:$gameVariables._data[266]=2;$gameVariables._data[84] = -140 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 55 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Zoku_01','255,120,140,255']);break;
|
||
case 2:$gameVariables._data[266]=3;$gameVariables._data[84] = 70 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = -5 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Zoku_02','255,120,140,255']);break;
|
||
case 3:$gameVariables._data[266]=0;$gameVariables._data[84] = -140 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 55 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
default:break;
|
||
}
|
||
}else if(args[1] === "Heart"){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -170 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -95 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 15 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -90 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}else if(args[1] === "Anime1"){
|
||
var name = "[Battle]Pose" + $gameVariables.value(191) + "-Bomb_000" + $gameVariables.value(573);
|
||
$gameScreen.showPicture(6, name, 0, 765, 416, 100, 100, 255, 0);
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameScreen.movePicture(6,0,768,416,100,100,255,0,2)
|
||
}else{
|
||
$gameScreen.movePicture(6,0,764,416,100,100,255,0,2)
|
||
}
|
||
}else if(args[1] === "Anime2"){//Anime1のピクチャの移動の入れ替え
|
||
var name = "[Battle]Pose" + $gameVariables.value(191) + "-Bomb_000" + $gameVariables.value(573);
|
||
$gameScreen.showPicture(6, name, 0, 765, 416, 100, 100, 255, 0);
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameScreen.movePicture(6,0,764,416,100,100,255,0,2)
|
||
}else{
|
||
$gameScreen.movePicture(6,0,768,416,100,100,255,0,2)
|
||
}
|
||
}
|
||
//[5層目]処理 さまよう触手鎧
|
||
}else if(args[0] === "TentacleArmor"){
|
||
if(args[1]=="Damage1"){
|
||
$gameVariables._data[84] = -25 + Math.floor( Math.random() * 141 );
|
||
$gameVariables._data[85] = 0 + Math.floor( Math.random() * 31 );
|
||
}else if(args[1] === "DamageCalc1"){
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
$gameVariables._data[87] = [0,1,1,2][Math.floor( Math.random() * 4 )];
|
||
}else{
|
||
$gameVariables._data[87] = [1,1,2,2][Math.floor( Math.random() * 4 )];
|
||
}
|
||
//■追加処理2-乳房経験に応じてダメージが1000毎に1増える
|
||
$gameVariables._data[87] += Math.floor($gameVariables.value(102)/1000)
|
||
increaseDamageBasedOnProbability();
|
||
}else if(args[1] === "Text1"){
|
||
switch(result){
|
||
case 2:$gameVariables._data[84] = -70 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 20 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Siko_01','255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = 150 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 20 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Siko_02','255,120,140,255']);break;
|
||
case 7:$gameVariables._data[84] = 40 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 210 + Math.floor( Math.random() * 16 );
|
||
switch($gameVariables.value(266)){
|
||
case 0:$gameVariables._data[266]=1;
|
||
this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 1:$gameVariables._data[266]=2;
|
||
this.pluginCommand(commandName, ['[Battle]Word_Mura_01','255,120,140,255']);break;
|
||
case 2:$gameVariables._data[266]=3;
|
||
this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
case 3:$gameVariables._data[266]=0;
|
||
this.pluginCommand(commandName, ['[Battle]Word_Mura_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
default:break;
|
||
}
|
||
}else if(args[1] === "Heart1"){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -50 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -150 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 160 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -150 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}else if(args[1] === "Anime1"){
|
||
if([0,4].includes($gameVariables.value(86)%4)){
|
||
$gameScreen.showPicture(11,"[Battle]Cut-in_Nipple_0012_" + $gameVariables.value(17) + "_0001",0,0,0,100,100,255,0);
|
||
$gameScreen.showPicture(12,"[Battle]Cut-in_Nipple_0012a_0001",0,$gameVariables.value(275),$gameVariables.value(276),100,100,255,0);
|
||
}else if([1,3,5,7].includes($gameVariables.value(86)%4)){
|
||
$gameScreen.showPicture(11,"[Battle]Cut-in_Nipple_0012_" + $gameVariables.value(17) + "_0002",0,0,0,100,100,255,0);
|
||
$gameScreen.showPicture(12,"[Battle]Cut-in_Nipple_0012a_0001",0,$gameVariables.value(275),$gameVariables.value(276),100,100,255,0);
|
||
}else if([2,6].includes($gameVariables.value(86)%4)){
|
||
$gameScreen.showPicture(11,"[Battle]Cut-in_Nipple_0012_" + $gameVariables.value(17) + "_0003",0,0,0,100,100,255,0);
|
||
$gameScreen.showPicture(12,"[Battle]Cut-in_Nipple_0012a_0001",0,$gameVariables.value(275),$gameVariables.value(276),100,100,255,0);
|
||
}
|
||
}
|
||
//クリ責め
|
||
if(args[1]=="Damage2"){
|
||
$gameVariables._data[84] = -45 + Math.floor( Math.random() * 141 );
|
||
$gameVariables._data[85] = 200 + Math.floor( Math.random() * 31 );
|
||
}else if(args[1] === "DamageCalc2"){
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
$gameVariables._data[87] = [0,0,0,1,1,1,2][Math.floor( Math.random() * 7 )];
|
||
}else{
|
||
$gameVariables._data[87] = [0,1,1,2,2][Math.floor( Math.random() * 5 )];
|
||
}
|
||
increaseDamageBasedOnProbability();
|
||
}else if(args[1] === "Text2"){
|
||
switch(result){
|
||
case 2:$gameVariables._data[84] = -80 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 195 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = 100 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 160 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
case 7:
|
||
switch($gameVariables.value(266)){
|
||
case 0:$gameVariables._data[266]=1;$gameVariables._data[84] = -140 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 70 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_01','255,120,140,255']);break;
|
||
case 1:$gameVariables._data[266]=2;$gameVariables._data[84] = 70 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = -5 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Zoku_01','255,120,140,255']);break;
|
||
case 2:$gameVariables._data[266]=3;$gameVariables._data[84] = -140 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 70 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Zoku_02','255,120,140,255']);break;
|
||
case 3:$gameVariables._data[266]=0;$gameVariables._data[84] = 70 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = -5 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
default:break;
|
||
}
|
||
}else if(args[1] === "Heart2"){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -170 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -90 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 15 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -90 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}else if(args[1] === "Anime2"){
|
||
if([0,4].includes($gameVariables.value(86)%4)){
|
||
$gameScreen.showPicture(11,"[Battle]Cut-in_Kuri_02_0001",0,0,0,100,100,255,0);
|
||
$gameScreen.showPicture(12,"[Battle]Cut-in_Kuri_02_0001a",0,$gameVariables.value(275),$gameVariables.value(276),100,100,255,0);
|
||
}else if([1,3,5,7].includes($gameVariables.value(86)%4)){
|
||
$gameScreen.showPicture(11,"[Battle]Cut-in_Kuri_02_0002",0,0,0,100,100,255,0);
|
||
$gameScreen.showPicture(12,"[Battle]Cut-in_Kuri_02_0002a",0,$gameVariables.value(275),$gameVariables.value(276),100,100,255,0);
|
||
}else if([2,6].includes($gameVariables.value(86)%4)){
|
||
$gameScreen.showPicture(11,"[Battle]Cut-in_Kuri_02_0003",0,0,0,100,100,255,0);
|
||
$gameScreen.showPicture(12,"[Battle]Cut-in_Kuri_02_0003a",0,$gameVariables.value(275),$gameVariables.value(276),100,100,255,0);
|
||
}
|
||
}
|
||
//[5層目]処理 デビルダイサー
|
||
}else if(args[0] === "DevilDicer"){
|
||
if(args[1]=="Damage1"){
|
||
$gameVariables._data[84] = -45 + Math.floor( Math.random() * 38 );
|
||
$gameVariables._data[85] = 200 + Math.floor( Math.random() * 25 );
|
||
}else if(args[1] === "DamageCalc1"){
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
$gameVariables._data[87] = [8,9,10,11][Math.floor( Math.random() * 4 )];
|
||
}else{
|
||
$gameVariables._data[87] = [9,10,11,12][Math.floor( Math.random() * 4 )];
|
||
}
|
||
//■追加処理2-乳房経験に応じてダメージが1000毎に1増える
|
||
$gameVariables._data[87] += Math.floor($gameVariables.value(102)/1000)
|
||
increaseDamageBasedOnProbability();
|
||
}else if(args[1] === "Text1"){
|
||
$gameVariables._data[84] = -140 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = 55 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_01','255,120,140,255']);
|
||
}else if(args[1] === "Text2"){
|
||
$gameVariables._data[84] = 0 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = 0 + Math.floor( Math.random() * 16 );
|
||
}else if(args[1] === "Heart1"){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -170 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -90 + Math.floor( Math.random() * 16 );
|
||
}
|
||
|
||
if(args[1]=="Damage2"){
|
||
$gameVariables._data[84] = -60 + Math.floor( Math.random() * 71 );
|
||
$gameVariables._data[85] = 210 + Math.floor( Math.random() * 31 );
|
||
}else if(args[1] === "DamageCalc2"){
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
$gameVariables._data[87] = [0,1,1,2][Math.floor( Math.random() * 4 )];
|
||
}else{
|
||
$gameVariables._data[87] = [1,1,2,2][Math.floor( Math.random() * 4 )];
|
||
}
|
||
//■追加処理2-乳房経験に応じてダメージが1000毎に1増える
|
||
$gameVariables._data[87] += Math.floor($gameVariables.value(102)/1000)
|
||
increaseDamageBasedOnProbability();
|
||
}else if(args[1] === "Text3"){
|
||
switch(result){
|
||
case 2:$gameVariables._data[84] = -50 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 175 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = 40 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 175 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
case 7:
|
||
switch($gameVariables.value(266)){
|
||
case 0:$gameVariables._data[266]=1;$gameVariables._data[84] = 150 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 135 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_01','255,120,140,255']);break;
|
||
case 1:$gameVariables._data[266]=2;$gameVariables._data[84] = -180 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 125 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Heko_01','255,120,140,255']);break;
|
||
case 2:$gameVariables._data[266]=3;$gameVariables._data[84] = -180 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 125 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_02','255,120,140,255']);break;
|
||
case 3:$gameVariables._data[266]=0;$gameVariables._data[84] = 150 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 135 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Heko_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
default:break;
|
||
}
|
||
}else if(args[1] === "Heart2"){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 0 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -115 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 160 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -115 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}
|
||
|
||
//[3章]分裂体処理
|
||
}else if(args[0] === "Slime_Anal"){
|
||
if(args[1]=="Damage"){
|
||
$gameVariables._data[84] = 24 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = 190 + Math.floor( Math.random() * 21 );
|
||
}else if(args[1] === "DamageCalc1"){
|
||
$gameVariables._data[87] = [8,10,11,12][Math.floor( Math.random() * 4 )];
|
||
if($gameActors.actor(1).isStateAffected(45)){
|
||
$gameVariables._data[87]+=1
|
||
}
|
||
//■追加処理2-陰核経験に応じてダメージが1000毎に1増える
|
||
$gameVariables._data[87] += Math.floor($gameVariables.value(104)/1000)
|
||
increaseDamageBasedOnProbability();
|
||
}else if(args[1] === "DamageCalc"){
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
$gameVariables._data[87] = [0,1,1,2,3][Math.floor( Math.random() * 5 )];
|
||
}else{
|
||
$gameVariables._data[87] = [1,1,2,3][Math.floor( Math.random() * 4 )];
|
||
}
|
||
increaseDamageBasedOnProbability();
|
||
}else if(args[1] === "Text"){
|
||
switch(result){
|
||
case 2:$gameVariables._data[84] = 130 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 140 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_01','255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = -80 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 190 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_02','255,120,140,255']);break;
|
||
case 7:$gameVariables._data[84] = 80 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 210 + Math.floor( Math.random() * 16 );
|
||
switch($gameVariables.value(266)){
|
||
case 0:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 1:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
case 2:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 3:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
default:break;
|
||
}
|
||
}else if(args[1] === "Heart"){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -100 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -150 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 60 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -150 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}
|
||
}else if(args[0] === "Slime_Boobs"){
|
||
if(args[1]=="Damage"){
|
||
//右乳首と左乳首を交互に刺激する処理あり
|
||
if($gameVariables.value(80)==1){
|
||
$gameVariables._data[84] = -50 + Math.floor( Math.random() * 6 );
|
||
$gameVariables._data[85] = 20 + Math.floor( Math.random() * 6 );
|
||
if($gameVariables.value(86)%2==1){
|
||
$gameVariables._data[84] += 95;
|
||
}
|
||
}else if([2].includes($gameVariables.value(80))){
|
||
$gameVariables._data[84] = -85 + Math.floor( Math.random() * 6 );
|
||
$gameVariables._data[85] = 70 + Math.floor( Math.random() * 6 );
|
||
if($gameVariables.value(86)%2==1){
|
||
$gameVariables._data[84] += 100;
|
||
}
|
||
}else if([3,6,9].includes($gameVariables.value(80))){
|
||
$gameVariables._data[84] = -35 + Math.floor( Math.random() * 6 );
|
||
$gameVariables._data[85] = 30 + Math.floor( Math.random() * 6 );
|
||
if($gameVariables.value(86)%2!=0){
|
||
$gameVariables._data[84] += 120;
|
||
}
|
||
}else if([7].includes($gameVariables.value(80))){
|
||
$gameVariables._data[84] = -125 + Math.floor( Math.random() * 6 );
|
||
$gameVariables._data[85] = 85 + Math.floor( Math.random() * 6 );
|
||
if($gameVariables.value(86)%2==1){
|
||
$gameVariables._data[84] += 100;
|
||
}
|
||
}else if([4,5,8].includes($gameVariables.value(80))){
|
||
$gameVariables._data[84] = -40 + Math.floor( Math.random() * 6 );
|
||
$gameVariables._data[85] = 90 + Math.floor( Math.random() * 6 );
|
||
if($gameVariables.value(86)%2==1){
|
||
$gameVariables._data[84] += 105;
|
||
}
|
||
}
|
||
}else if(args[1] === "DamageCalc"){
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
$gameVariables._data[87] = [1,1,1,2][Math.floor( Math.random() * 4 )];
|
||
}else{
|
||
$gameVariables._data[87] = [1,1,2][Math.floor( Math.random() * 3 )];
|
||
}
|
||
increaseDamageBasedOnProbability();
|
||
}else if(args[1] === "Text"){
|
||
if($gameVariables.value(80)==1){
|
||
switch(result){
|
||
case 2:$gameVariables._data[84] = -100 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 20 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_01','255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = 120 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 20 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_02','255,120,140,255']);break;
|
||
case 7:$gameVariables._data[84] = 40 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 210 + Math.floor( Math.random() * 16 );
|
||
switch($gameVariables.value(266)){
|
||
case 0:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 1:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
case 2:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 3:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
default:break;
|
||
}
|
||
}else if([2].includes($gameVariables.value(80))){
|
||
switch(result){
|
||
case 2:$gameVariables._data[84] = -160 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 55 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_01','255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = 70 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 50 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_02','255,120,140,255']);break;
|
||
case 7:$gameVariables._data[84] = 15 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 210 + Math.floor( Math.random() * 16 );
|
||
switch($gameVariables.value(266)){
|
||
case 0:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 1:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
case 2:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 3:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
default:break;
|
||
}
|
||
}else if([3,6,9].includes($gameVariables.value(80))){
|
||
switch(result){
|
||
case 2:$gameVariables._data[84] = -90 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 20 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_01','255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = 130 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 20 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_02','255,120,140,255']);break;
|
||
case 7:$gameVariables._data[84] = 40 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 210 + Math.floor( Math.random() * 16 );
|
||
switch($gameVariables.value(266)){
|
||
case 0:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 1:$gameVariables._data[266]=2;this.pluginCommand(commandName, ['[Battle]Word_Mura_01','255,120,140,255']);break;
|
||
case 2:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
case 3:$gameVariables._data[266]=0;this.pluginCommand(commandName, ['[Battle]Word_Mura_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
default:break;
|
||
}
|
||
}else if([7].includes($gameVariables.value(80))){
|
||
switch(result){
|
||
case 2:$gameVariables._data[84] = -160 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 55 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_01','255,120,140,255']);break;
|
||
case 5:$gameVariables._data[84] = 40 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 50 + Math.floor( Math.random() * 16 );
|
||
this.pluginCommand(commandName, ['[Battle]Word_Biku_02','255,120,140,255']);break;
|
||
case 7:$gameVariables._data[84] = 15 + Math.floor( Math.random() * 16 );$gameVariables._data[85] = 210 + Math.floor( Math.random() * 16 );
|
||
switch($gameVariables.value(266)){
|
||
case 0:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 1:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
case 2:$gameVariables._data[266]=1;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_01','255,120,140,255']);break;
|
||
case 3:$gameVariables._data[266]=3;this.pluginCommand(commandName, ['[Battle]Word_Kutyu_02','255,120,140,255']);break;
|
||
default:break;
|
||
}
|
||
default:break;
|
||
}
|
||
}
|
||
}else if(args[1] === "Heart"){
|
||
if($gameVariables.value(80)==1){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -75 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -170 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 135 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -170 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}else if([2].includes($gameVariables.value(80))){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -105 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -85 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 75 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -85 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}else if([3,6,9].includes($gameVariables.value(80))){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -37 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -105 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 153 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -105 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}else if([7].includes($gameVariables.value(80))){
|
||
if($gameVariables._data[86]%2==0){
|
||
$gameVariables._data[265] = "[Battle]Word_HeartA_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = -160 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -85 + Math.floor( Math.random() * 16 );
|
||
}else{
|
||
$gameVariables._data[265] = "[Battle]Word_HeartB_" + (Math.floor( Math.random() * 4 ) + 1)
|
||
$gameVariables._data[84] = 5 + Math.floor( Math.random() * 16 );
|
||
$gameVariables._data[85] = -85 + Math.floor( Math.random() * 16 );
|
||
}
|
||
}
|
||
}
|
||
//[4章]ドスケベ学園兵処理
|
||
}else if(args[0] === "DosukebeSoldier"){
|
||
if(args[1] === "DamageCalc"){
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
if(!$gameActors.actor(1).hasSkill(251)){
|
||
$gameVariables._data[87] = [0,1,1,1,2][Math.floor( Math.random() * 5 )];
|
||
}else{
|
||
$gameVariables._data[87] = [0,1,1,2,2][Math.floor( Math.random() * 5 )];
|
||
}
|
||
}else{
|
||
if(!$gameActors.actor(1).hasSkill(251)){
|
||
$gameVariables._data[87] = [0,1,1,1,2,2][Math.floor( Math.random() * 6 )];
|
||
}else{
|
||
$gameVariables._data[87] = [0,1,2,2][Math.floor( Math.random() * 4 )];
|
||
}
|
||
}
|
||
increaseDamageBasedOnProbability();
|
||
}else if(args[1] === "Anime"){
|
||
var anime = Math.abs($gameVariables.value(86)%4)+1
|
||
var equipId = 1;
|
||
if($gameActors.actor(1).hasArmor($dataArmors[7])){equipId = 2;}
|
||
if($gameActors.actor(1).hasArmor($dataArmors[8])){equipId = 3;}
|
||
$gameScreen.showPicture(13,"[Battle]Cut-in_Dosukebe_" + equipId + "_000" + anime,0,0,0,100,100,255,0);
|
||
$gameScreen.showPicture(14,"[Battle]Cut-in_GentleHand_Text_000" + anime,0,$gameVariables.value(275),$gameVariables.value(276),100,100,255,0);
|
||
}else if(args[1] === "AnimeEx"){
|
||
var anime = 5;
|
||
var equipId = 1;
|
||
if($gameActors.actor(1).hasArmor($dataArmors[7])){equipId = 2;}
|
||
if($gameActors.actor(1).hasArmor($dataArmors[8])){equipId = 3;}
|
||
$gameScreen.showPicture(13,"[Battle]Cut-in_Dosukebe_" + equipId + "_000" + anime,0,0,0,100,100,255,0);
|
||
$gameScreen.showPicture(14,"[Battle]Cut-in_GentleHand_Text_000" + anime,0,$gameVariables.value(275),$gameVariables.value(276),100,100,255,0);
|
||
}
|
||
//[4章]佐井
|
||
}else if(args[0] === "Mintarou"){
|
||
if(args[1] === "DamageCalc"){
|
||
if($gameVariables.value(86)%2==0){
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
$gameVariables._data[87] = 1 + Math.floor( Math.random() * 2 );
|
||
}else{
|
||
$gameVariables._data[87] = 1 + Math.floor( Math.random() * 3 );
|
||
}
|
||
}else{
|
||
if(!$gameActors.actor(1).isStateAffected(45)){
|
||
$gameVariables._data[87] = 1 + Math.floor( Math.random() * 1 );
|
||
}else{
|
||
$gameVariables._data[87] = 1 + Math.floor( Math.random() * 2 );
|
||
}
|
||
}
|
||
increaseDamageBasedOnProbability();
|
||
}
|
||
}
|
||
}
|
||
};
|
||
})();
|
||
|
||
|