Skip to content

Instantly share code, notes, and snippets.

@triacontane
Created July 7, 2019 03:50
Show Gist options
  • Save triacontane/f4fea2223d30a67221944b7d62c218a0 to your computer and use it in GitHub Desktop.
Save triacontane/f4fea2223d30a67221944b7d62c218a0 to your computer and use it in GitHub Desktop.
コモンイベントのみをリフレッシュ
$gameMap._commonEvents.forEach(function(event) {
event.refresh();
});
@triacontane
Copy link
Author

イベントのリフレッシュ(出現条件の再チェック)は、スイッチや変数を変更すると自動で実行されるが、マップイベントのリフレッシュが重い場合など、コモンイベントのみを明示的にリフレッシュしたい場合に実行するスクリプト。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment