Neo Soul Gamer

Veteran
Veteran
Joined
Aug 10, 2012
Messages
662
Reaction score
410
First Language
English
Primarily Uses
N/A
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.
 

izyees

My Secret Santa
Veteran
Joined
Oct 24, 2015
Messages
248
Reaction score
67
First Language
english
do you want to add all skills from the database or only the skill that user can get by leveling up?
 

Neo Soul Gamer

Veteran
Veteran
Joined
Aug 10, 2012
Messages
662
Reaction score
410
First Language
English
Primarily Uses
N/A
Looking to add all skills. 
 

Kai Monkey

Veteran
Veteran
Joined
Apr 3, 2012
Messages
167
Reaction score
120
First Language
RGSS3
Primarily Uses
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
 
Last edited by a moderator:

Neo Soul Gamer

Veteran
Veteran
Joined
Aug 10, 2012
Messages
662
Reaction score
410
First Language
English
Primarily Uses
N/A
 

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

 
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.
 
Last edited by a moderator:

Latest Threads

Latest Profile Posts

My Overworld might be a mix of inspiration from 2D Final Fantasy games, Breath of Fire, Battlechasers: Nightwar, Super Mario World, and Pillars of Eternity. If I can make it more in-depth than just walking from point A to point B, that might do a lot for the gameplay experience. Hmm...
Terribly depressed. Worst birthday I've had in years, no motivation to work on anything. Still no income. At least I've got my computer running again.
Doing RPG Maker News for 19th September 2021

Stream will be live with some Dark Souls 3, followed by a session of the Interactive Text Adventure! Feel free to drop by!

Forum statistics

Threads
115,197
Messages
1,088,017
Members
149,778
Latest member
kamikun95
Top