Im using Yanfly's Buffs & States and the skill core in my project and i ran into a snag regarding a specific skill and a few state effects I made standard. If anyone has any ideas as how to get this working or alternatives it'd be appreciated.
I made a skill that deals no damage to its target upfront. It leaves a state on the target that deals the skill's intended damage upon its expiration. I let the damage formula box calculate the damage so that element rates/typed damage traits would be factored in automatically, and then used a <pre-damage eval> to set a variable to store the damage and set the damage to 0. That much works fine alone.
I have a number of states that boost damage dealt through <Custom Confirm Effect> tags. nothing special. They all work by themselves and with eachother just fine.
The issue is that together, the states and this skill dont work. The damage calculated by the reverberation skill that gets passed to the state doesnt consider damage modifiers this way. I can see why, but i cant think of an *easy* way to go about it. From what i get from this, a state's Confirm Effects run after a skill's Pre-Damage Eval effects, so additional damage multipliers applied this way are being applied after ive already set the damage to 0.
I can't see a convenient way around this with the number of multiplier states that i already have and the lack of a "multiplier stat" i can reference (which would also require me to change every state to even start setting up). I cant have the skill itself easily check for each state alone either since the damage multipliers for each may vary and calculating for each would just lead to bugs down the line when i add more later and forget to add them to this skill.
Am I overlooking something? Is there an easier way to achieve this anyone else can think of, or am I just left to doing either of the above? If its the latter, I'd be leaving it as is and putting a note somewhere that the damage of the skill cant be boosted, but one of the points of the game is to combine effects on different classes and try to break it before it breaks you. id figure itd be more fun for a player if it worked.
I made a skill that deals no damage to its target upfront. It leaves a state on the target that deals the skill's intended damage upon its expiration. I let the damage formula box calculate the damage so that element rates/typed damage traits would be factored in automatically, and then used a <pre-damage eval> to set a variable to store the damage and set the damage to 0. That much works fine alone.
Code:
<Pre-Damage Eval>
target._reverb = value;
target.addState(390);
value = 0;
</Pre-Damage Eval>
Code:
<Custom Apply Effect>
user.setStateCounter(stateId, user._reverb);
</Custom Apply Effect>
<Custom Leave Effect>
user.gainHp(-user._reverb);
delete user._reverb;
</Custom Leave Effect>
I have a number of states that boost damage dealt through <Custom Confirm Effect> tags. nothing special. They all work by themselves and with eachother just fine.
The issue is that together, the states and this skill dont work. The damage calculated by the reverberation skill that gets passed to the state doesnt consider damage modifiers this way. I can see why, but i cant think of an *easy* way to go about it. From what i get from this, a state's Confirm Effects run after a skill's Pre-Damage Eval effects, so additional damage multipliers applied this way are being applied after ive already set the damage to 0.
I can't see a convenient way around this with the number of multiplier states that i already have and the lack of a "multiplier stat" i can reference (which would also require me to change every state to even start setting up). I cant have the skill itself easily check for each state alone either since the damage multipliers for each may vary and calculating for each would just lead to bugs down the line when i add more later and forget to add them to this skill.
Am I overlooking something? Is there an easier way to achieve this anyone else can think of, or am I just left to doing either of the above? If its the latter, I'd be leaving it as is and putting a note somewhere that the damage of the skill cant be boosted, but one of the points of the game is to combine effects on different classes and try to break it before it breaks you. id figure itd be more fun for a player if it worked.