Skip to content

Instantly share code, notes, and snippets.

@triacontane
Created August 13, 2017 14:37
Show Gist options
  • Save triacontane/a01758dab32eb76cba1a2d001b9b02b1 to your computer and use it in GitHub Desktop.
Save triacontane/a01758dab32eb76cba1a2d001b9b02b1 to your computer and use it in GitHub Desktop.
敵キャラの持つスキルを習得
var actor = $gameActors.actor(1);
var enemy = $dataEnemies[2];
enemy.actions.forEach(function(action) {
actor.learnSkill(action.skillId);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment