- Joined
- Jan 4, 2018
- Messages
- 33
- Reaction score
- 5
- First Language
- English
- Primarily Uses
- RMMV
Hey everyone, I've got a few questions about how to make a passive state and some skills work. First off, I should say that I'm using various Yanfly plugins including Buffs and States Core and Auto Passive States. What I'm going for is a character (an electric-oriented tanking character, if you're curious) that functions off of a "Static" mechanic. "Static" is a passive state that I want to do the following things:
1. Gain a stack when the user deals damage.
2. Gain a stack when the user receives damage.
3. Give +1 magic attack per stack
The state is currently set up as follows:

The <Custom Establish Effect> part seems to be working. During testing, whenever the character successfully deals damage, the state counter for this state goes up by 1, as intended.
...But I think I may be misunderstanding the <Custom Respond Effect> notetag, given that it is not functioning as I thought it would. Based on Yanfly's description of the notetag in his help file, I thought that a Custom Respond Effect would activate whenever the actor with the state was targeted and took damage. I originally didn't have the "if (result.i****() && this.isDamage()) {" in the notebox, but I added it to see if that might fix it. It did not, unfortunately.
The third effect I wanted this state to have was to give +1 magic attack per stack of static as a way to reward the player for getting higher and higher stacks. I'm not sure what notetags to use at all for this part...
Beyond the state itself, I also wanted to have 2 skills that utilize Static stacks as a resource.
Skill #1: Energy Conversion - I intend for this skill to consume all stacks of Static and heal the user for a portion of their magic attack times the number of stacks consumed (something like (0.25 * a.mat) * StaticStacks). Hopefully this formula at least gives the general idea of what I'm going for.
Skill #2: Static Discharge - This skill is supposed to consume all stacks of Static and deal damage to all enemies based on the number of stacks consumed. The formula would probably be similar to the one for Energy Conversion, but would do AOE damage rather than self healing. The problem with this skill is that, after it deals damage, it will surely add a stack of Static back onto the counter due to the Custom Establish Effect in the passive state's notebox. I feel that this wouldn't make sense, given that the skill is thematically supposed to release all of the built up Static at once. So in addition to making the damage formula work right for this skill, I also need help bypassing the passive state for this one...
Outside of what I've already attempted in the image above, I'm still pretty new to Yanfly's notetags, so help with any or all components of this post would be immensely appreciated. Thanks in advance!
1. Gain a stack when the user deals damage.
2. Gain a stack when the user receives damage.
3. Give +1 magic attack per stack
The state is currently set up as follows:

The <Custom Establish Effect> part seems to be working. During testing, whenever the character successfully deals damage, the state counter for this state goes up by 1, as intended.
...But I think I may be misunderstanding the <Custom Respond Effect> notetag, given that it is not functioning as I thought it would. Based on Yanfly's description of the notetag in his help file, I thought that a Custom Respond Effect would activate whenever the actor with the state was targeted and took damage. I originally didn't have the "if (result.i****() && this.isDamage()) {" in the notebox, but I added it to see if that might fix it. It did not, unfortunately.
The third effect I wanted this state to have was to give +1 magic attack per stack of static as a way to reward the player for getting higher and higher stacks. I'm not sure what notetags to use at all for this part...
Beyond the state itself, I also wanted to have 2 skills that utilize Static stacks as a resource.
Skill #1: Energy Conversion - I intend for this skill to consume all stacks of Static and heal the user for a portion of their magic attack times the number of stacks consumed (something like (0.25 * a.mat) * StaticStacks). Hopefully this formula at least gives the general idea of what I'm going for.
Skill #2: Static Discharge - This skill is supposed to consume all stacks of Static and deal damage to all enemies based on the number of stacks consumed. The formula would probably be similar to the one for Energy Conversion, but would do AOE damage rather than self healing. The problem with this skill is that, after it deals damage, it will surely add a stack of Static back onto the counter due to the Custom Establish Effect in the passive state's notebox. I feel that this wouldn't make sense, given that the skill is thematically supposed to release all of the built up Static at once. So in addition to making the damage formula work right for this skill, I also need help bypassing the passive state for this one...
Outside of what I've already attempted in the image above, I'm still pretty new to Yanfly's notetags, so help with any or all components of this post would be immensely appreciated. Thanks in advance!

