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,896
Reaction score
8,595
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,896
Reaction score
8,595
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

"sorry it took me so long to respond" - can we please agree not to say that anymore unless it actually took a long time?! (Like 36hrs at least) I mean, I'm running out of funny responses here xD
Ugh... 4:53AM over here and I can't sleep so why not just game make.
I just love the MV feature that allows you to create your own animations!
I typically ask this on my normal social media channels, but figured there may be good replies here. Anyone got any good horror movie recommendations? I've seen a lot, but I always love getting suggestions! Bonus points if you know which service it is streaming on (in the US) - bring on the spOoooOky!

Forum statistics

Threads
115,913
Messages
1,093,956
Members
151,167
Latest member
therainbowmuk
Top