Help with Yanflys JobPoints

TyraK88

Villager
Member
Joined
Oct 30, 2018
Messages
6
Reaction score
0
First Language
German
Primarily Uses
RMMV
Hey Guys im Using Yanflys JobPoints Plugin to have an extra point system for character progression.
SO im trying sth like the sphere grid in ff10 so i basicly want to click an event that asks me to learn hp+10 and if i say yes
it checks the actors JP and if they are 150 or more decrease them by 150 and give the actor +10 max hp and then turn a switch on to prevent you from buying it more than once.
I tryed a few things like this:

if : $gameActors.actor(1).jp() > 149
show text hp + 10 learned
change max hp+10
skript: $gameActors.actor(1).jp() - 150 <-- this line not working
turn switch on: skill learned

else:show text: not enough points.


And it works as i want it to be as if i have 0 JP it tells me i have not enough to learn the skill
and after i battle and get 300 JP it says i learned the skill and gives the actor +5 max hp
and turns on the switch.
BUT it doesnt decrease the JP so the actor still hast 300 JP and i cant find a script call that
works in decreasing the value
 

HumanNinjaToo

The Cheerful Pessimist
Veteran
Joined
Apr 18, 2013
Messages
1,226
Reaction score
603
First Language
English
Primarily Uses
RMMV
loseJp actorId jp

^I believe this is the plugin command you want.

Alternatively...

Yanfly has a tips and tricks for this if you don't mind also using his skill learn system plugin.


edit: just to be clear it's a plugin command not a script call
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,035
Messages
1,018,450
Members
137,820
Latest member
georg09byron
Top