You can see the current/needed exp in most scripts but I've not managed to find one that shows the total exp gained like in a pokemon game.
How would you display total exp acquired by actor.
RGSS3 Script RequestsI've moved this thread to Script Requests. Thank you.
total experience is current experience. But you're probably referring to total for all party members, right?
*Edit - Done
*Edit - Done
Ruby:
# ╔═════════════════════════════════════╦════════════════════╗
# ║ Title: Display Total Experience ║ Version: 1.00 ║
# ║ Author: Roninator2 ║ ║
# ╠═════════════════════════════════════╬════════════════════╣
# ║ Function: ║ Date Created ║
# ║ ╠════════════════════╣
# ║ Show total experience values ║ 30 May 2021 ║
# ╚═════════════════════════════════════╩════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Displays text on menu to show total experience ║
# ║ for the current party members. ║
# ╚══════════════════════════════════════════════════════════╝
# ╔═════════════════════════════════════╗
# ║ Terms of use: ║
# ║ Free for all uses in RPG Maker ║
# ╚═════════════════════════════════════╝
# ╔═════════════════════════════════════╗
# ║ Credits to: ║
# ║ Roninator2 ║
# ╚═════════════════════════════════════╝
class Window_TotalExp < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, window_width, fitting_height(1))
refresh
end
#--------------------------------------------------------------------------
# * Get Window Width
#--------------------------------------------------------------------------
def window_width
return 160
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
contents.clear
rect = Rect.new(0, 0, contents.width - 4, line_height)
change_color(system_color)
draw_text(rect, "Exp")
change_color(normal_color)
draw_text(rect, value, 2)
end
#--------------------------------------------------------------------------
# * Get Party Gold
#--------------------------------------------------------------------------
def value
total = 0
for i in 0..$game_party.members.size - 1
total += $game_party.members[i].exp.to_i
end
total
end
#--------------------------------------------------------------------------
# * Open Window
#--------------------------------------------------------------------------
def open
refresh
super
end
end
class Scene_Menu < Scene_MenuBase
#--------------------------------------------------------------------------
# * Start Processing
#--------------------------------------------------------------------------
alias r2_start_mainmenu start
def start
r2_start_mainmenu
create_totalexp_window
end
#--------------------------------------------------------------------------
# * Create Exp Window
#--------------------------------------------------------------------------
def create_totalexp_window
@exp_window = Window_TotalExp.new
@exp_window.x = 0
@exp_window.y = Graphics.height - @gold_window.height * 2
end
end
Umm, not sure, I'll have to check default, I have alot of scripts, & maybe I didn't explain very well.
At lv it would say something like you need 50 to lv then next lv is you need 75.
But I'd like to show you have 50 exp & need 75 more to be lv2 & at lv2 it would show you have125 exp & need 100exp, so lv3 is 225 need 125exp.
Something along those lines. honestly its been awhile since I've played a pokemon game but I could have sworn it had a display of their TOTAL EXP EACH POKEMON OR ACTOR IN THIS CASE HAD OBTAIN THUS FAR.
I'll try your script out.
Okay yea your script is decent, but I'll have to redo it so it only shows the selected characters total exp not the whole partys, but its good starting point thx.
Hmm I think Tsukihime has a method that might work.
forums.rpgmakerweb.com
OH NVM WOW I'M AN IDIOT, THE VANILLA GAME DOES ADD TOTAL EXP, it just wasn't showing it on the yanfly menu, wow, I can't even remember what the normal ACE ENGINE is after working in the custom one I've been using for so long. WELL THATS NO LONGER BUGGING MY BRAIN!
This was what I was looking for,
s2 = @actor.max_level? ? "-------" : @actor.exp
only the second was active in my custom menu.
s2 = @actor.max_level? ? "-------" : @actor.next_level_exp - @actor.exp
At lv it would say something like you need 50 to lv then next lv is you need 75.
But I'd like to show you have 50 exp & need 75 more to be lv2 & at lv2 it would show you have125 exp & need 100exp, so lv3 is 225 need 125exp.
Something along those lines. honestly its been awhile since I've played a pokemon game but I could have sworn it had a display of their TOTAL EXP EACH POKEMON OR ACTOR IN THIS CASE HAD OBTAIN THUS FAR.
I'll try your script out.
Okay yea your script is decent, but I'll have to redo it so it only shows the selected characters total exp not the whole partys, but its good starting point thx.
Hmm I think Tsukihime has a method that might work.
How to Display Current EXP Relative to Current Level
This tutorial shows how you can change the way EXP is presented to your actors. When you look at your status screen, the amount of EXP you current have is cumulative relative to level 0. Basically, whatever the value is right now is how much exp you have gained during the game. Now, for...
forums.rpgmakerweb.com
OH NVM WOW I'M AN IDIOT, THE VANILLA GAME DOES ADD TOTAL EXP, it just wasn't showing it on the yanfly menu, wow, I can't even remember what the normal ACE ENGINE is after working in the custom one I've been using for so long. WELL THATS NO LONGER BUGGING MY BRAIN!
This was what I was looking for,
s2 = @actor.max_level? ? "-------" : @actor.exp
only the second was active in my custom menu.
s2 = @actor.max_level? ? "-------" : @actor.next_level_exp - @actor.exp
That's why you need to be very specific, otherwise people will/could make stuff that is not what you want. List what you are using and what you want exactly and where it needs to be.
Yea I'm sorry for that I should of done more work on it ahead of time before posting, I just couldn't figure it out. I was able to add it in the the scripted status menu without issue.
Original thread: https://forums.rpgmakerweb.com/threads/how-would-you-display-total-exp-acquired-by-actor.136977/