I noticed in the MV Script Call list that there's a way to add all items, weapons, and armor (that doesn't have a blank space in the database) to the party. I was wondering if there was a similar function to add skills (again, only the ones without blank spaces) to all the party members.
For Debugging and Testing: Adding all Skills?
RPG Maker MV Supportdo you want to add all skills from the database or only the skill that user can get by leveling up?
Looking to add all skills.
Hey ♫
$dataSkills.forEach(function(skill){ if(skill) $gameParty.leader().learnSkill(skill.id);});Should do the trick! You can replace $gameParty.leader() with any other actor.
/Kai
$dataSkills.forEach(function(skill){ if(skill) $gameParty.leader().learnSkill(skill.id);});Should do the trick! You can replace $gameParty.leader() with any other actor.
/Kai
Got it. Thank you!
So when you say replace the "party leader" portion, should my code look like this if I wanted my third actor to learn all skills?
$dataSkills.forEach(function(skill){if(skill)$gameParty.members()[2].learnSkill(skill.id);});Can't test it yet, but I'm pretty sure that would work.
EDIT: Tested and working. Thanks guys.
Original thread: https://forums.rpgmakerweb.com/threads/for-debugging-and-testing-adding-all-skills.52513/