[SOLVED] Problem with status effects

windy10

Villager
Member
Joined
Oct 13, 2020
Messages
8
Reaction score
1
First Language
English
Primarily Uses
RM2k3
Hello, thanks for taking the time to check out my issue.

I'm working on a "unique" battle mechanic for my project in RPGMAKER 2k3. It's something reminiscent to a "limit" bar from FF7, where it fills up and you can do certain attacks and obtain certain buffs for a certain small period of time.

I made the bar and did the code for it to fill up, and so far it works well. However, the bar is shown in the battle through the use of a status effect (with an empty bar being a "normal" state and a bar with 1 tick or charge being an actual status effect), and it creates issues with other status effects I have.

For example (and to serve as the most relevant one), the bar will fill up, then a status like Poison will be inflicted. Poison will stay on the character for a little bit, but once it disappears, the bar will be shown as being empty before the code continues, proceeding to show the actual bar that *should* be displayed.

Is there any way to fix this? (More specifically, is there any way to make a status effect revert to another after it is done?)

1608014455599.png

1608014479821.png

1608014500402.png

EDIT: added my code for reference.
 

kaine

Veteran
Veteran
Joined
Sep 29, 2015
Messages
157
Reaction score
77
First Language
Italian
Primarily Uses
RM2k3
From the rpg maker 2003 help
States
4.Rating


Specify the rating (priority) of the state in the range of 1 to 100.


When multiple states are inflicted, the one with the highest rating will be displayed.


If multiple states are inflicted at the same time, their ratings will be compared to the state with the highest rating, and states that have less than or equal to 10 rating points will be automatically cured.
Probably poison remove one of them or all of them, because it have a high priority.
 

windy10

Villager
Member
Joined
Oct 13, 2020
Messages
8
Reaction score
1
First Language
English
Primarily Uses
RM2k3
From the rpg maker 2003 help

Probably poison remove one of them or all of them, because it have a high priority.
I didn't actually realize it was this simple and easy, I was losing my mind over it earlier. All it took was readjusting the bars and making sure they fell within the 10 range beneath the actual status effects.
Thank you!
 

Cherry

RM2k(3) Developer (English Version)
Developer
Joined
Apr 19, 2015
Messages
157
Reaction score
98
First Language
German
Primarily Uses
@windy10: You may find this information useful the next time you are posting a thread like this: You can actually just paste event commands from RM into the forums (or any other place, for that matter):

O7mWi7WEjj.gif
 

Latest Threads

Latest Posts

Latest Profile Posts

TFW you discover how the script batching works in VNMaker... after you've had the program for almost 3 years.
Writes that the characters have to climb a mountain.

Realized that I have to draw six sets of models where characters are climbing.

At least I know how to draw something. :)
I'm currently scratching my head on how to design plains. What do I even put in plains? Some trees (but not too many or it turns into a forest)? Grass? A few bushes? That's a bit dull.
I'm looking for tutorials but Google didn't seem to find much (or maybe I have the wrong keywords). I don't know how to map plains and I don't know how to learn.
I should probably be dragged kicking and screaming away from Daz3D... I was playing with 8.1 models and came up with this. Thoughts?
and_remember_tomorrow_miranda_8_1.jpg

Forum statistics

Threads
111,403
Messages
1,060,852
Members
144,750
Latest member
corvid
Top