cthulhusquid

Veteran
Veteran
Joined
Aug 19, 2013
Messages
418
Reaction score
426
First Language
English
Primarily Uses
RMVXA
I've come across a weird issue. My combat system revolves around states being added or removed based on the actors TP level, but the state icons aren't being refreshed as often as I like. Like, I'll use a skill, the new state will get added and old one removed, but the state icons won't update. How do I get state icons to refresh across all screens instantly?

I'm using Yanfly's Battle Engine, but I've already figured out that the base battle system also has this issue.
If none of this makes sense, here's 2 screenshots that show what I mean. The first one shows his new state, Medium Exhaustion, but his skill section still shows his old state, Heavy Exhaustion. Heavy Exhaustion got removed but the icon is still there on the skill screen.
Screenshot (409).png
Screenshot (410).png
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,394
Reaction score
15,206
First Language
English
Primarily Uses
RMMV
How are you adding/removing the state?
 

cthulhusquid

Veteran
Veteran
Joined
Aug 19, 2013
Messages
418
Reaction score
426
First Language
English
Primarily Uses
RMVXA
With a series of common events. Skills and certain items call a switch, which turns on the event (and then turns off to prevent loops), then runs. There are two different ones, one for detecting when stamina goes under certain thresholds while the other detects when stamina goes above certain thresholds. I'm certain there's a better way to event them, but I'm still experimenting with that.
These screenshots are the simpler versions of the events.

Screenshot (422).png
Screenshot (423).png
Screenshot (424).png
Screenshot (425).png
 
Last edited:

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,394
Reaction score
15,206
First Language
English
Primarily Uses
RMMV
So you are having this issue in a brand new project with no additional scripts?
 

cthulhusquid

Veteran
Veteran
Joined
Aug 19, 2013
Messages
418
Reaction score
426
First Language
English
Primarily Uses
RMVXA
I made a copy of the project and deleted pretty much all of the scripts, except for a global common events one that is critical to the combat system's functionality.
The states update properly, but they do it at the beginning of the player's next turn, at the party command window, instead of immediately in whatever the battle window's called. I removed Yanfly's Battle Engine from my original project, and it functions similar to the copy with the states removed.

The easiest fix I can think of is to do a script call that refreshes the battle window, but I don't know how to do that with Yanfly's Battle Engine since it changes how the refreshes work. This topic is really the only one that I could find that helped in any way.
 

Latest Threads

Latest Profile Posts

Is it weird that i feel overwhelmed from reading codes that i wrote few months ago? Lol.

I dont even know where to continue!:hsad:
Ami
Gosh,I want to Play this Game Again one more again!

Seeing my Own Character & Kannono Once Again!
Tales_of_the_World_Radiant_Mythology_3_JPN_PSP-Coverart.jpg
I've been a bit to depressed to get work done on the game lately. Don't worry, I'll be okay.
LunarFlareStudios wrote on Solar_Flare's profile.
Hey, my name is Lunar Flare Studios, and you're Solar Flare? That's so weird!

Forum statistics

Threads
115,302
Messages
1,088,756
Members
149,943
Latest member
Chymora
Top