Follow along with the video below to see how to install our site as a web app on your home screen.
注意事項: This feature may not be available in some browsers.
Ver.1.0.0でテストしたら、エラーになりました。MZ版ARTM_PlayerSensorMZ.jsを使用して、プラグイン画面からコモンイベントを呼び出そうとすると
$gameTemp.reservedCommonEvent is not a functionとエラーが出て止まってしまいます。
他にもスイッチのonとoffも機能していないっぽいです。
自分だけですかね?他の方はちゃんと機能してるっぽいですが。
rmmz_managers.js:2036 TypeError: $gameTemp.reservedCommonEvent is not a function
at Game_Interpreter.setupReservedCommonEventEx (ARTM_PlayerSensorMZ.js:1201)
at Game_Event.foundPlayer (ARTM_PlayerSensorMZ.js:2019)
at Game_Event.sensorUpdate (ARTM_PlayerSensorMZ.js:1966)
at Game_Event.update (ARTM_PlayerSensorMZ.js:1954)
at Game_Map.updateEvents (rmmz_objects.js:6741)
at Game_Map.update (rmmz_objects.js:6700)
at Scene_Map.updateMain (rmmz_scenes.js:842)
at Scene_Map.updateMainMultiply (rmmz_scenes.js:838)
at Scene_Map.update (rmmz_scenes.js:824)
at Function.SceneManager.updateScene (rmmz_managers.js:2103)
fungamemake.com
Game_Interpreter.prototype.setupReservedCommonEvent = function() {
if ($gameTemp.isCommonEventReserved()) {
this.setup($gameTemp.reservedCommonEvent().list);
$gameTemp.clearCommonEvent();
return true;
} else {
return false;
}
};
Game_Interpreter.prototype.setupReservedCommonEvent = function() {
if ($gameTemp.isCommonEventReserved()) {
const commonEvent = $gameTemp.retrieveCommonEvent();
if (commonEvent) {
this.setup(commonEvent.list);
return true;
}
}
return false;
};
Game_Interpreter.prototype.setupReservedCommonEventEx = function (eventId) {
if ($gameTemp.isCommonEventReserved()) {
this.setup($gameTemp.reservedCommonEvent().list, eventId);
$gameTemp.clearCommonEvent();
return true;
} else {
return false;
}
};
Game_Interpreter.prototype.setupReservedCommonEventEx = function (eventId) {
if ($gameTemp.isCommonEventReserved()) {
const commonEvent = $gameTemp.retrieveCommonEvent();
if (commonEvent) {
this.setup(commonEvent.list, eventId);
return true;
}
}
return false;
};
プラグインではなくイベントの作り方(ページと出現条件)をミスしていると予想します。返事が遅れましたすいません。
munokuraさんの言うとおりにコードを書き換えたところ、プラグインパラメータからコモンイベントを動かすことができました。
ありがとうございます。
スイッチのon、offはおっしゃる通りプラグインパラメータ画面のセルフスイッチの事です。
今確認したところ、普通のスイッチ(0001等の数字で指定するスイッチ)は機能しておりますが
やはりセルフスイッチのみが機能していないみたいです。
(まあ、自分はあまりセルフスイッチを使ってないので自分の使い方が間違ってる説もありますが・・。)
具体例は、パラメータ画面の「発見後操作スイッチ」の項目で「セルフスイッチD」を指定しておき、
発見されると別の場所で作っておいた、「出現条件がセルフスイッチDのイベント」が起動し
ゲームオーバーとなる、です。
セルフスイッチの使い方が間違ってますかねこれ?