Skip to content

Instantly share code, notes, and snippets.

@triacontane
Created February 12, 2016 23:37
Show Gist options
  • Save triacontane/91a9a28f840b9ee32a61 to your computer and use it in GitHub Desktop.
Save triacontane/91a9a28f840b9ee32a61 to your computer and use it in GitHub Desktop.
最後に行動したのが敵か味方か
var value = BattleManager._subject instanceof Game_Actor;
$gameSwitches.setValue(100, value);
alert($gameSwitches.value(100));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment