bgillisp

Yanfly JP Manager Add-On: Display JP on Screen

Aug 11th, 2014
884
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. #Jp Display Version 1.0
  2.  
  3. #Fix to Yanfly's JP Manager to display the JP on screen in the ACE Menu Engine
  4. #To use, install below the JP manager and below the ACE Menu Engine
  5. #Script should work without Ace Menu Engine installed, but the draw_actor_jp
  6. #line may need to be modified.
  7.  
  8. #Terms of Use: Free for commercial and non-commercial games
  9. #Credit: Credit should be given to Yanfly as it is their system. No credit
  10. #required to me (bgillisp) for the edit.
  11.  
  12.  
  13. class Window_Base < Window
  14. @bg_display_string
  15.  
  16. #--------------------------------------------------------------------------
  17. # alias method: draw_actor_simple_status
  18. #--------------------------------------------------------------------------
  19. alias bg_jpdisplay_draw_actor_simple_status draw_actor_simple_status
  20. def draw_actor_simple_status(actor, dx, dy)
  21. #Call Original Method
  22. bg_jpdisplay_draw_actor_simple_status(actor, dx, dy)
  23.  
  24. #Set the dy value to be the same as in Ace Menu Engine
  25. #May need to comment this line out if not using Ace Menu Engine
  26. dy -= line_height / 2
  27.  
  28. #Draw the jp on screen. Jp will appear below the MP bar, and to the
  29. #far right. If you wish to have jp displayed closer to the left, reduce
  30. #the number being added to dx
  31. draw_actor_jp(actor, dx + 230, dy + line_height * 3)
  32.  
  33. end
  34.  
  35. end # Window_Base
Advertisement
Add Comment
Please, Sign In to add comment