Created
September 9, 2017 06:18
-
-
Save triacontane/9836392c84bf32642d168ab45ce9ee39 to your computer and use it in GitHub Desktop.
アクターから別のアクターにスキルを継承
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var originalActorId = 1; // 継承元アクターID | |
var targetActorId = 2; // 継承先アクターID | |
var originalActor = $gameActors.actor(originalActorId); | |
var targetActor = $gameActors.actor(targetActorId); | |
originalActor._skills.forEach(function(skillId) { | |
targetActor.learnSkill(skillId); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment