I'm looking for the part of the script that generates the text for an actor's level. I want this text replaced with something else. I don't want to actually change the actor's level.
All help appreciated, thanks.
Edit: For clarity
Locations in Script that List Character Level
● ARCHIVED · READ-ONLY
-
-
Not a scripter, but . .
Most of the initial level handling can be found in the "Game_Actor" script. ^^ -
That would require a bit of write-up.
If you need to use variables and you need it to be always processing throughout your game, you can use the following :
A parallel process common event.
- Use the 'Change Level' event command.
- You can set an entire party, or a single character to increase/decrease their level according to a constant or variable.
Hope this helps. -
If you want initial level, it's on the RPG::Actor Hidden class. But likeTakuto said you can get the actor level from Game_Actor script.
class Game_Actor < Game_Battler #-------------------------------------------------------------------------- # * Public Instance Variables #-------------------------------------------------------------------------- attr_accessor :name # Name attr_accessor :nickname # Nickname attr_reader :character_name # character graphic filename attr_reader :character_index # character graphic index attr_reader :face_name # face graphic filename attr_reader :face_index # face graphic index attr_reader :class_id # class ID attr_reader :level # level attr_reader :action_input_index # action number being input attr_reader :last_skill # For cursor memorization: Skill #--------------------------------------------------------------------------Look, there's attr_reader :level
That is what you want. There are several ways to get an actor level.
For actor in party $game_party.members[index in party].level
For all actor in database $game_actors[index in database].level
EDIT : Susan tell you to use change level command, that is good.
-
It looks like my original post was unclear. I don't want to change the character's level at all. I want to change the TEXT displaying the level. I want that text to say something else.
-
I think it's displayed in the level_up method of Game_Actor (or Game_Battler - probably Game_Actor though).
However, the TEXT itself is probably in the Vocab script.
If you want to change the text and not include the actor's name or the level, you will have to change both places - the text in the vocab script, as well as wherever the display is triggered as it does substitutions. -
That being the case, look at Game_Actor line 444 for the level up message & Vocab line 41 for the level up vocab.
@ BoluBolu, thanks! -
Thanks everyone. I have it working how I want now.