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,931
Reaction score
8,607
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,931
Reaction score
8,607
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

2021 has been the runner-up for the worst year of my life. 2015 may take that title, but '21 is pushing it. Excuses really don't justify how much of a jerk I've been this year to a lot of people.

I'm sorry. I don't intend to be a jerk forever, but I'd rather back up my intent with actions, not words.
"Another hundred habaneros... a teaspoon of tumeric... and a heaping helping of nitroglycerin!" The kitten in a chef's hat laughed maniacally as the pot he was stirring promptly exploded.
Woot got a promotion and a pay rise ᕙ( • ‿ • )ᕗ now I'm set.
does anyone feel like explaining to me the difference between simulation and emulation? you have my full permission to be as pedantic as you want.

Forum statistics

Threads
116,010
Messages
1,094,897
Members
151,323
Latest member
yuyucomi
Top