Modyfi the level indicator to show level 1 as level 0 ?

Status
Not open for further replies.

Andynator

Veteran
Veteran
Joined
May 15, 2012
Messages
79
Reaction score
4
First Language
German
Primarily Uses
For a small test without using to much scripts, i'm trying to use the VX-ACE Level-Indicator as a sort of "Talent-Point" indicator. Idea works fine, but the Problem is, the Minimum display of "Talent Points left" is 1, but if the Actor did not have any talent points, it shoud be shown as 0.

Is there any way to modify the Level Indicator in the Main and Status menu to show the charakter Level as "Real-Level -1"?

All i want is, the actor could technical have "Level 1" but in the Menu is indicated as "level 0", Level 2 is indicated as Level 1, level 3 as Level 2, level 4 as level 3 ... and so on.

Is there a Posibillity?
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
This sounds inconsistent. Why would one display say "level 1" but another display say "level 0"?
 

Tommy Gun

♩ ♪ ♫ ♬
Veteran
Joined
Jan 20, 2014
Messages
385
Reaction score
123
First Language
English
This sounds inconsistent. Why would one display say "level 1" but another display say "level 0"?
I think the OP wants it to show "level 0" *everywhere*, s/he just worded it poorly.
 

poorrabbit

Veteran
Veteran
Joined
Mar 15, 2014
Messages
60
Reaction score
23
First Language
english
Primarily Uses
RMMZ
You're probably going to have to edit the core scripts.

In Window_Base, there is draw_actor_level:

 def draw_actor_level(actor, x, y)
    change_color(system_color)
    draw_text(x, y, 32, line_height, Vocab::level_a)
    change_color(normal_color)
    draw_text(x + 32, y, 24, line_height, actor.level, 2)
  end

You can probably get away with changing that last line to something like this:

    draw_text(x + 32, y, 24, line_height, actor.level - 1, 2)

Mind you, that will change everyone's level display. And it's probably not the only place something
like that occurs. You'll also have to change the display in any scripts you've installed from other people.

You might consider, instead, keeping track of such things in their own variables and then
deciding on a place to show them.
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,624
Reaction score
5,104
First Language
English
Primarily Uses
RMVXA
I think poorrabbit's solution will get you there.  However, you have to be really careful about hijacking something like a character's level for your custom display, because:

  • You won't be able to use standard character levels, nor EXP
  • You will need to set each character's stats in the database so they don't change between levels (otherwise your characters will, for example, lose stats when they spend their Talent Points)
  • Characters won't be able to obtain more than 98 Talent Points at once
If you're okay with these restrictions, great!  Just use poorrabbit's solution, change the Vocab term (in the System tab in the database) appropriate, and you are good to go, my friend.

If any of these restrictions are going to be a problem, however, what you'll want to do instead is to define a new property in Game_Battler (or Game_Actor or Game_BattlerBase) that keeps track of a character's Talent Points, and add in a way to show it on the appropriate windows.  This is fairly complicated in comparison to the quicker fix suggested, and requires some intermediate-level scripting, but it's something we could help you with.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
This just sounds like the whatever script Andynator's using does not properly display those values.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I don't think there IS a script Hime - just the RTP.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
It says "without using too many scripts" so I assumed a script was involved.


I also assumed "level-indicator" was someone else's script.
 

Andynator

Veteran
Veteran
Joined
May 15, 2012
Messages
79
Reaction score
4
First Language
German
Primarily Uses
This sounds inconsistent. Why would one display say "level 1" but another display say "level 0"?
Sorry for the Missunderstanding. I don't want an inconsistent display, but i simply did not know any other Place in the Ingame-Visuals, where the charakter-Level is shown, beside the Main-menu and the status menu. Maybe i forgott one place, but for the moment i can't remember a third "Level Indicator" in the RPG-maker standard-layout.

You're probably going to have to edit the core scripts.

In Window_Base, there is draw_actor_level:

 def draw_actor_level(actor, x, y)

    change_color(system_color)

    draw_text(x, y, 32, line_height, Vocab::level_a)

    change_color(normal_color)

    draw_text(x + 32, y, 24, line_height, actor.level, 2)

  end

You can probably get away with changing that last line to something like this:

    draw_text(x + 32, y, 24, line_height, actor.level - 1, 2)

Mind you, that will change everyone's level display. And it's probably not the only place something

like that occurs. You'll also have to change the display in any scripts you've installed from other people.

You might consider, instead, keeping track of such things in their own variables and then

deciding on a place to show them.
I tried this, before i posted here. Did not Work for me.

Oh ... i don't use any script,  which changes the menu-Layout.

It says "without using too many scripts" so I assumed a script was involved.

I also assumed "level-indicator" was someone else's script.
No. I don't use any script. As i wrote, it's only a small test-Project. And i'm feeling no urge, to spend hours of time in fiddling around with a new script i never used before, until it finaly works like i want.

If i would use a Script, i think there were no need, to use the Level-Indicator as a Skillpoint-Indicator. But - well - there is no script.

I think poorrabbit's solution will get you there.  However, you have to be really careful about hijacking something like a character's level for your custom display, because:

  • You won't be able to use standard character levels, nor EXP
  • You will need to set each character's stats in the database so they don't change between levels (otherwise your characters will, for example, lose stats when they spend their Talent Points)
  • Characters won't be able to obtain more than 98 Talent Points at once
If you're okay with these restrictions, great!  Just use poorrabbit's solution, change the Vocab term (in the System tab in the database) appropriate, and you are good to go, my friend.

If any of these restrictions are going to be a problem, however, what you'll want to do instead is to define a new property in Game_Battler (or Game_Actor or Game_BattlerBase) that keeps track of a character's Talent Points, and add in a way to show it on the appropriate windows.  This is fairly complicated in comparison to the quicker fix suggested, and requires some intermediate-level scripting, but it's something we could help you with.
I now. All of this is exactly, what i want. The Idea behind this, is to try a System, which is Skill-based instead of attribut based and includes the need to visit trainers for charakter-enhancements.
 
Last edited by a moderator:

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
I honestly don't think you can just use the level variable for talents like that, due to how levels are coded into the system, as every time you spend a 'level', the database is going to reset your attributes to the attributes for that level. Instead, I think this is going to require a script, and you will need one that makes it so that the character level does not display, but in its place, the talent level does.

Also, you will have to get rid of EXP from fights. Otherwise, after 50 EXP, the game is going to level you up anyways (assuming start at level 1, and default EXP curve). If you want the game to give you a talent point instead, that will take a script as well I'm afraid.
 

Andynator

Veteran
Veteran
Joined
May 15, 2012
Messages
79
Reaction score
4
First Language
German
Primarily Uses
I honestly don't think you can just use the level variable for talents like that, due to how levels are coded into the system, as every time you spend a 'level', the database is going to reset your attributes to the attributes for that level. Instead, I think this is going to require a script, and you will need one that makes it so that the character level does not display, but in its place, the talent level does.

Also, you will have to get rid of EXP from fights. Otherwise, after 50 EXP, the game is going to level you up anyways (assuming start at level 1, and default EXP curve). If you want the game to give you a talent point instead, that will take a script as well I'm afraid.
In the game Idea, there is no automatic-Level process. No rising attributes, etc.

The Number behind "Lv." is the only value changing, if the charakter level rises.
 

Xypher

Veteran
Veteran
Joined
Apr 1, 2012
Messages
148
Reaction score
26
Primarily Uses
draw_text(x + 32, y, 24, line_height, (actor.level - 1).to_s, 2)
 

Andynator

Veteran
Veteran
Joined
May 15, 2012
Messages
79
Reaction score
4
First Language
German
Primarily Uses
It is working perfectly.

thank you all!
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,975
Members
137,563
Latest member
cexojow
Top