Yanfly JP Manager Add-on: Display JP on Screen
Script by bgillisp
Introduction
This script displays the JP available to the actor's current class on screen. It does not display JP for subclasses or any other classes the character may have used, just the current class.
Features
Shows the current JP available on screen, below the MP bar.
Screenshots
None yet, will edit once I figure out how to upload them.
How to Use
Copy and paste the script in to the material's folder, below Yanfly's Menu Engine and Yanfly's JP manager.
Important: If you do not have Yanfly's JP manager installed the script will most likely crash. Also, the script was designed to work with Yanfly's menu engine, but in theory it could work (with some editing) on another menu engine.
Demo
None, its plug and play.
Script
Grab it on pastebin: http://pastebin.com/4v0e7r1p
FAQ
Q: The JP is displayed in an awful location!
A: This script was only designed to work with Yanfly's Menu Engine and JP manager combined. If you wish to use this for another menu engine, you will have to tweak line 31 (the draw_actor_jp line) to get it to display properly.
Credit and Thanks
Yanfly, as they wrote the scripts that made this possible.
The forum posters, for directing me to what line was needed to draw the JP on screen.
Author's Notes
Free for use in commercial and non-commercial games. I do not require credit for this script, but be sure to credit Yanfly for their scripts!
Yanfly JP Manager Add-on: Display JP on screen
● ARCHIVED · READ-ONLY
-
-
So I've installed the JP manager, below that the Ace Menu Engine, and just below that your script.
Do I still need to call some sort of method, or modify the Ace Menu Engine, or..?
I'm asking this because the instructions are unclear to me (duh!), and because I don't see a change.
EDIT: I don't see any MP shown in the main menu or in the skills window as long as Ace Menu Engine is installed.
As soon as I remove that one, the MP comes back, but still no JP. -
Therefore JP Manager goes above this script, not below it.below Yanfly's Menu Engine and Yanfly's JP manager
-
Correct. You need to put this below both Yanfly scripts, because Yanfly overwrites the methods I call.
-
As I stated earlier, I have this script below JP Manager. It actually is the bottom-most script under materials.So I've installed the JP manager, below that the Ace Menu Engine, and just below that your script.
Still, I don't see the JP. And with Ace Menu Engine installed, I still don't see MP.
Can anyone explain this? -
The MP issue is a different script issue, you will need to post under support for that. My script has no control on that.
As for the seeing nothing, it is probably related to the no MP part, as my script draws the JP info under the MP/TP bar. If something else is writing over that, then nothing will display.
I'd suggest posting under script support to figure out why you have no MP bar. List *all* your scripts too, as this sounds like to me a couple of your scripts not cooperating with Yanfly's Menu script (do you have Mog scripts installed at all? From my experience those do not work well with Yanfly scripts, and cause many visual errors). As it is, I've tested this in a project with all Yanfly scripts and it works as long as it is installed last (which it sounds like you are doing). -
Thank you very much, I will do that!
-
Sounds good. Let me know the results.
Out of curiousity, if you go to line 31, and change the part that says dy + line_height * 3 to read just dy, does the JP now show up for you, but above the HP bar? -
No, but after loading a save file that already existed before I added the scripts I got the following:

EDIT: Note that I changed the term for TP to AD (as in Adrenaline)
EDIT: And after using up JP in the "Learn Skills" menu, the MP does appear. Above the HP that is.
Also, after using up some JP a few times, it does appear at the right end of the HP bar, over the HP number (like in the screenshot) -
Ok, looks like you have a different Menu engine, as Yanfly does not reverse the MP and HP bars like that. Chances are it is needing more lines for the display than I accounted for. That would also explain why Yanfly's menu engine didn't work for you, as you now had two menu engines in the game!
Try changing part of line 31 to:
dy + line_height * 2. If 2 fails, try 4 instead. That should move the display down some lines for the JP. The only thing is, I cannot guarantee it will not overlap your next actor (whether or not it does depends on what Menu engine you are using. I can tell from the display though that you are not using Yanfly's, as he does not have MP first). -
Hi, I really like this add on, it's very useful! But I have found a little problem... I changed the Ace Menu Engine to show a TP Bar below HP and MP bars. Fine, no problem. Looks this way:

So when I insert your Script I get this:

So, after a lot of thinking and digging for a solution (I'm almost a total noob when comes to coding xD) and don't finding anything that solved my problem, I start messing with the code, until I get this result:

So, for someone who may be getting the same problem (and is a noob like me), what I have done was tweak a little the position of the lines, this way:
class Window_Base < Window
def draw_actor_simple_status(actor, x, y)
draw_actor_name(actor, x, y - 10)
draw_actor_level(actor, x, y + line_height * 1 - 10)
draw_actor_jp(actor, x, y + line_height * 2 - 10)
#draw_actor_icons(actor, x, y + line_height * 2)
draw_actor_class(actor, x + 120, y - 10)
draw_actor_hp(actor, x + 120, y + line_height * 0 + 10)
draw_actor_mp(actor, x + 120, y + line_height * 1 + 10)
draw_actor_tp(actor, x + 120, y + line_height * 2 + 10)
end
def draw_actor_jp(actor, dx, dy)
change_color(system_color)
draw_text(dx, dy, 32, line_height, Vocab::jp)
change_color(normal_color)
draw_text(dx + 32, dy, 24, line_height, actor.jp.group, 2)
end
end
Hope this can be useful! And, again, thank you for your script!