Updating Variable in a Skill Description

ginfubawuba

Villager
Member
Joined
Dec 1, 2017
Messages
12
Reaction score
3
First Language
English
Primarily Uses
RMMV
I have a \V[238] in the description of a skill but even as the variable changes during the fight the number shown in the skills description stays the same.

How do i get the number to update in the skill description over the course of a battle?
 

Eliaquim

Raze: The Rakuen Zero's Guardian!
Veteran
Joined
May 22, 2018
Messages
1,054
Reaction score
438
First Language
Portuguese - Br
Primarily Uses
RMMV
That's strange. You can see the value of the variable in skill description, but this value doesn't update with the variable, right?
Have you tried to see if the value is updating inside a map(outside the battle)?
Are you using any plugins that modify variables or skills?
 

Soulrender

Veteran
Veteran
Joined
Jan 12, 2019
Messages
400
Reaction score
232
First Language
Poland
Primarily Uses
RMMV
Updated value should be displayed on your next turn or when you again select that skill, this is first thing worth to mention, second, if still it's not updating, then add to your skills common event wich will change value of that variable - https://prnt.sc/r6sc0a.

If this also fails then it means you have some parallel event or something else keeps that variable in this value.
This can be:
Common Event
Action Sequence in some skill(s)
Plugin(s)
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
1,510
Reaction score
992
First Language
EN
Primarily Uses
RMMV
Yes, this is an issue present in the default battle system. In battle, when the skill selection window opens, it automatically selects the first entry. However, if you previously had a skill with the same description as that first skill (as written in the database, e.g. "Deals \v[238] damage to an enemy!" - codes get substituted afterwards), the help window's text will not refresh, i.e. it will still display the previously-drawn description text. :kaoswt:

You can try adding the attached plugin to your project, it should skip the help window's "is selected text unchanged" check and just make it update every time it's told to do so (works for me!). It's just a simple override; for compatibility it's probably best to put it near the top of the Plugin Manager list~ :kaothx:
JavaScript:
Window_Help.prototype.setText = function(text) {
    this._text = text;
    this.refresh();
};
 

Attachments

ginfubawuba

Villager
Member
Joined
Dec 1, 2017
Messages
12
Reaction score
3
First Language
English
Primarily Uses
RMMV
Yes, this is an issue present in the default battle system. In battle, when the skill selection window opens, it automatically selects the first entry. However, if you previously had a skill with the same description as that first skill (as written in the database, e.g. "Deals \v[238] damage to an enemy!" - codes get substituted afterwards), the help window's text will not refresh, i.e. it will still display the previously-drawn description text. :kaoswt:

You can try adding the attached plugin to your project, it should skip the help window's "is selected text unchanged" check and just make it update every time it's told to do so (works for me!). It's just a simple override; for compatibility it's probably best to put it near the top of the Plugin Manager list~ :kaothx:
JavaScript:
Window_Help.prototype.setText = function(text) {
    this._text = text;
    this.refresh();
};
This fixed it thank you!
 

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

Latest Posts

Latest Profile Posts

so, ive been gone for too long when i log in and see that everything is where is shouldn't be. XD
Steam killing my eyes.. I forgot why I use it only when I have no other choice
Making a map, my brain went "Look, Mjölnir!" as I plotted out a sacrificial entrance.

Actually, it went, "Look, hammer. Wait, Thor's hammer!"
CG tile rendering, take 3: windows.
which section you guys think looks more accurate to the perspective? left or right?

for reference, this is what it looks like "at street level"
Okay, Animal Crossing is remarkably addictive and exceptionally calming. I've been playing it pretty exclusively... like... 6 hours a day. Been a while since I've been this engrossed.

Forum statistics

Threads
95,402
Messages
928,922
Members
125,622
Latest member
Komalis
Top