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,728
Reaction score
8,511
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,728
Reaction score
8,511
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 Profile Posts

gotta love when a plugin you thought had nothing to do with why something else wasn't working winds up being the issue...
Doing RPG Maker News for 26th September 2021

Well... it's been a while since I was last here :kaoswt: I don't want to say I'm officially 'back' yet, but I've recently started working with RM again, so I might become active here again :kaohi:
Mmmm I love Coca Cola candy! :kaoluv:
aaaand my power is out. I sometimes think that I'm cursed.

Forum statistics

Threads
115,395
Messages
1,089,546
Members
150,132
Latest member
pipgea
Top