Skip to content

Instantly share code, notes, and snippets.

@triacontane
Created August 28, 2021 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save triacontane/62c0649c7673080522e2131b1c98d220 to your computer and use it in GitHub Desktop.
Save triacontane/62c0649c7673080522e2131b1c98d220 to your computer and use it in GitHub Desktop.
半歩移動プラグインでイベント起動可能チェック
Game_Player.prototype.canStartEvent = function() {
this.checkEventTriggerHere([0]);
this.checkEventTriggerThere([0, 1, 2]);
let result = false;
$gameMap.events().forEach(event => {
if (event.isStarting()) {
event.clearStartingFlag();
event.unlock();
result = true;
}
});
return result;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment