Status
Not open for further replies.

AllosaurusNE

Mixed Attacker
Member
Joined
Aug 28, 2021
Messages
15
Reaction score
6
First Language
English
Primarily Uses
RMMV
Hello! I'm utilizing Yanfly's JP and Skill learning systems to have learnable skills outside of leveling up. I'm a big fan of these mechanics, but there is one thing I'm hoping to accomplish that I'm having some trouble doing with my limited JS knowledge.

Is there any way I can have the same skill cost differing amounts of JP (Job Points) depending on what class is trying to learn it?

Let's say, for example I have a skill called "Big Attack" with an ID of 123 and by default all skill costs are 200 JP. I want the Knight class (ID of 1) to learn "Big Attack" at a cost of 500 JP, but I also want the Warrior class (ID of 2) to learn "Big Attack" at the default cost of 200. How would I go about coding this in the note tags?

Is there any sort of way to accomplish this aside from making multiple instances of the same skill? I would greatly appreciate any assistance from whoever has knowledge in this sort of thing.
 

JamesRyan

Game Designer
Regular
Joined
Sep 13, 2014
Messages
754
Reaction score
267
First Language
Vietnamese
Primarily Uses
RMMV
Maybe using this for the skill note tag?
Code:
<Custom Learn JP Cost>
if (user.currentClass().id === 1){cost = 500;}
else{
if (user.currentClass().id === 2){cost = 200;}}
</Custom Learn JP Cost>
 

AllosaurusNE

Mixed Attacker
Member
Joined
Aug 28, 2021
Messages
15
Reaction score
6
First Language
English
Primarily Uses
RMMV
It works perfectly!!! Exactly what I was hoping to accomplish. I had a feeling it would be a matter of writing conditions in the coding, I just had no idea how exactly to go about making it myself. Anyways, thanks a lot!
Maybe using this for the skill note tag?
Code:
<Custom Learn JP Cost>
if (user.currentClass().id === 1){cost = 500;}
else{
if (user.currentClass().id === 2){cost = 200;}}
</Custom Learn JP Cost>
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
10,548
Reaction score
6,811
First Language
Dutch
Primarily Uses
RMXP

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

Playing arounnd with NUUN's Battle Result as a VS Victory Aftermath alternative. Loving it so far despite the learning curve (there are a LOT of parameters)

1701665328725.png

Just have to figure out how to addin sub class progress.
Partitito's story is supposed to be about defeating poverty while thinking he is a capitalist with socialist ideas. But it's really about stories of redemption and perseverance.
Who would have thought an idea like "I wanna put the character bio in the equip screen" would turn into a bunch of work and fun collaboration @Puppet Knight . Now my Equip/Character screen is the way I want it.
Screenshot 2023-12-03 194313.png
Just one more week of grinding through semester finals and I'll be able to actually work on some games and stuff. Hopefully I'll be able to work on my game document to actually have my ideas somewhere outside of my cranium of madness.
With Day 4 of my advent calendar posted, it's time for y'all to choose what Day 5 will be!

We've seen Strength with our adventurers, so which DnD stat would you like to see in the next NPC: Charisma, Constitution, or Wisdom?

Forum statistics

Threads
136,729
Messages
1,269,252
Members
180,446
Latest member
lathifkediri
Top