Help with variables affected by combat and states

Clackwork

Villager
Member
Joined
Jul 24, 2021
Messages
12
Reaction score
1
First Language
English
Primarily Uses
RMMV
Hello,

I am very new to RPG Maker MV: and had an idea for doing something.

The concept is: each time a status effect is applied, a specified variable has +1 added to it. I have a common event set up for this.

However, I face two issues.

A: I'm uncertain of if the conditional branch "has: state" applies for each frame of combat in which they have it, each turn, or, what I want, which is each time it is applied.

B: I want to be able to set the variable to 0 upon a combat encounter ending, but I'm unsure of how to do that.

Any help is appreciated
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,909
Reaction score
8,602
First Language
German
Primarily Uses
RMMV
I suggest you take a step back and first explain what that variable is supposed to do with that info.
because there are several ways to handle this, and giving you the answer for the way that leads into the wrong direction would cause more problems than it solves.

just for example, the answer to how often the conditional branch is applied depends on how often a troop event with it is processed, and that depends on the troop event, not on the event command.
 

Clackwork

Villager
Member
Joined
Jul 24, 2021
Messages
12
Reaction score
1
First Language
English
Primarily Uses
RMMV
I suggest you take a step back and first explain what that variable is supposed to do with that info.
because there are several ways to handle this, and giving you the answer for the way that leads into the wrong direction would cause more problems than it solves.

just for example, the answer to how often the conditional branch is applied depends on how often a troop event with it is processed, and that depends on the troop event, not on the event command.
The variable is going to be used for damage formula for a specific ability, in where the attack modifier of the character is multiplied by the amount of said variable.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,909
Reaction score
8,602
First Language
German
Primarily Uses
RMMV
that would be easier solved with damage rates - give that skill a unique damage element, and then give all states that are to affect it a damage rate trait instead.

that said, there are two ways to handle the variable if you're sure you want it that way.
one is using a troop event that counts every turn how many states are there, and overwrites the number every time (so that states that are gone no longer add, and that there is no need to consider the timing)
the other is using a plugin that gives eval-notetags on the sates, there are several of those.
 

Latest Threads

Latest Posts

Latest Profile Posts

To be released 2021/10/21
Now that I made this "What the MZ RTP is missing" spreadsheet it's itching me to fill some the gaps D:
Aaaaand I completely forgot about the RMMV Chicken Rave my brother decided to implement in a parody of my VERY FIRST UNFINISHED project. We could not escape the chicken rave... The chickens would block the ladder...
I love how I can look up a problem I'm having with my game, find a post from like six years ago that addresses the issue, and the solution provided still works in RPG Maker.
It's times like those that my life feels really easy XD
Change costumes with equipment!

Forum statistics

Threads
115,949
Messages
1,094,284
Members
151,205
Latest member
Vertette
Top