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 Posts

Latest Profile Posts

 …I think I might need to switch from standard ATK/DEF up/down buffs to parameter altering states. I just had an actor whose usual attack against an enemy does ~25 do a buffed attack against a debuffed enemy for ~600…
just saw that titan quest is free on steam until the 23rd
Zombie status is now complete. I didn't have to do much in the way of changing how healing is applied to undead targets, was just a simple 3 line code. I thought I had to overhaul Game_Action lol. Everything else was doable by events. So.. Zombie: You turn undead. Your element changes to darkness. You're weak to light, you're strong to physical attacks and healing hurts you and revival items will kill you.
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...

Forum statistics

Threads
115,226
Messages
1,088,224
Members
149,818
Latest member
JetWentworth
Top