Neo Soul Gamer

Veteran
Veteran
Joined
Aug 10, 2012
Messages
663
Reaction score
412
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
663
Reaction score
412
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
663
Reaction score
412
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

so... I decided since a park was an area in my game... here's an enemy that's slide with a hand behind it. cause why not.
Hot chocolate and music make studying and note-taking much easier :kaoluv:
Until my hand cramps up from writing too much!
Doing RPG Maker News for 21st September 2021


Malak is still waiting for Dark Deception Chapter 4... This was him yesterday after another sugar crash.
Again, he's fine. He's just bored at this point, considering he's exhausted his entire vacation bucket list.
Am I the only one who files custom resources under specific folders to remember who to credit? :kaoswt2:
1632263519730.png

Forum statistics

Threads
115,270
Messages
1,088,481
Members
149,874
Latest member
AlolanNinetales
Top