Script call for learning multiple skills?

MechScapeZH

Veteran
Veteran
Joined
Mar 23, 2019
Messages
485
Reaction score
578
First Language
English
Primarily Uses
RMMV
Hi everyone,

I have a really quick question- how would I go about teaching an actor multiple skills at once using the "Script" command? (As in, what is the JavaScript that would accomplish this?)

I need to teach an actor all of the skills in my game for testing purposes.

Thank you in advance for your help. :)
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
1,710
Reaction score
1,160
First Language
EN
Primarily Uses
RMMV
This should do it~
Code:
for (var n = $dataSkills.length; --n;) {
  $gameActors.actor(1).learnSkill(n);
}
I.e. loop over all skills, have actor 1 learn each one. :)
 

MechScapeZH

Veteran
Veteran
Joined
Mar 23, 2019
Messages
485
Reaction score
578
First Language
English
Primarily Uses
RMMV
This should do it~
Code:
for (var n = $dataSkills.length; --n;) {
  $gameActors.actor(1).learnSkill(n);
}
I.e. loop over all skills, have actor 1 learn each one. :)
Thanks so much @caethyril- it worked like a charm! I honestly couldn't have clicked "Learn Skill" ~100 times- you really saved me. I couldn't have tolerated that tedium. :guffaw: With this, my testing is completed.

Thanks again!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Quexp wrote on Shaz's profile.
I absolutely love your profile/pic! :kaoluv:
Stream will be live shortly with some Darkest Dungeon! Feel free to drop by!
I made a battle results screen for my minigame.. any feedback? :)
Things I thought would never happen but just did: I needed to use my snow shovel. In August. In the Northern Hemisphere.
So I finished Cupcake, now I need to figure out my next project!
Do I pick up one of my incomplete games?
Do I start something entirely new???
The possibilities are endless!

Forum statistics

Threads
100,682
Messages
978,387
Members
132,308
Latest member
Amarina
Top