Skip to content

Instantly share code, notes, and snippets.

@triacontane
Created August 13, 2017 02:54
Show Gist options
  • Save triacontane/2c1c7b3bc00c29678857cb28b202bb32 to your computer and use it in GitHub Desktop.
Save triacontane/2c1c7b3bc00c29678857cb28b202bb32 to your computer and use it in GitHub Desktop.
職業の変更後に新しい職業のスキルを習得
var actor = $gameActors.actor(1);
actor.currentClass().learnings.forEach(function(learning) {
if (learning.level <= actor._level) {
actor.learnSkill(learning.skillId);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment