- Joined
- Sep 18, 2015
- Messages
- 6
- Reaction score
- 1
- First Language
- French
- Primarily Uses
Hello 
First of all, sorry for broken english, I'll try to make as less gramatical errors as possible.
I'm working on a skill, but I'm not even sure I can manage to do it with skill formulas.
This spell, let's call it "Arcane Shock", deals damage depending on specific states ("Arcane Stain") applied to the target and applies those specific states if they are not already applied. There are two levels to those states ("Arcane Stain I & Arcane Stain II).
Here is how I'd like it to go :
I have it specified in "Arcane Stain II" Notes that "Arcane Stain I" is removed when "Arcane Stain II" is applied thanks to Yanfly's Buff & State Core.
I also have <State 39 Turns: +1> in the Skill Note, in order to refresh "Arcane Stain II".
I have two issues with my formula :
Multi-conditions does not seems to work, at least not written like this, as the skill does 0 damage 100% of the time.
Meaning, this, alone, does not work :
What should I write in my damage formula for my skill to work as intended ?
Thanks in advance to anyone who could help in any way
EDIT : I know I could workaround the damage buff of the spell by making the spell one specific Element and the States changing the weakness to this Element but as I'm learning to do whatever I can with formulas, I'd be happy to find a way to do this with formulas
Also, I've no idea yet how to deal with the "Stack" mechanic without formulas (Adding "Arcane Stain I" if no state is already applied and "Arcane Stain II" if "Arcane Stain I" is already applied).
EDIT 2: Yeah, of course I noticed the Thread about formulas 10 minutes after creating this one...Sorry, Maths hurt my brain.
First of all, sorry for broken english, I'll try to make as less gramatical errors as possible.
I'm working on a skill, but I'm not even sure I can manage to do it with skill formulas.
This spell, let's call it "Arcane Shock", deals damage depending on specific states ("Arcane Stain") applied to the target and applies those specific states if they are not already applied. There are two levels to those states ("Arcane Stain I & Arcane Stain II).
Here is how I'd like it to go :
I tried this formula :> Player Character casts "Arcane Shock"
> Check if "Arcane Stain II" is applied to the enemy, if it is : deals 125% damage, refresh "Arcane Stain II"
> If not, check if "Arcane Stain I" is applied to the enemy, if it is : deals 100% damage, applies "Arcane Stain II", removes "Arcane Stain I"
> If not, deals 75% damage, applies "Arcane Stain I"
State 31 is "Arcane Stain I" and State 39 is "Arcane Stain II"b.isStateAffected(39) ? a.mat * 1.25 : b.isStateAffcted(31) ? a.mat ; b.addState(39) : a.mat * 0.75 ; b.addState(31)
I have it specified in "Arcane Stain II" Notes that "Arcane Stain I" is removed when "Arcane Stain II" is applied thanks to Yanfly's Buff & State Core.
I also have <State 39 Turns: +1> in the Skill Note, in order to refresh "Arcane Stain II".
I have two issues with my formula :
Multi-conditions does not seems to work, at least not written like this, as the skill does 0 damage 100% of the time.
Meaning, this, alone, does not work :
I don't know how I can deal damage AND add a state at the same time (with formula command) Even with a simpleb.isStateAffected(40) ? a.mat * 1.25 : b.isStateAffcted(31) ? a.mat : a.mat * 0.75
It should deal 100 damage and add state X to the enemy, right ? But it does not work, I guess I just do not know how I should write it.100; b.addstate(X)
What should I write in my damage formula for my skill to work as intended ?
Thanks in advance to anyone who could help in any way
EDIT : I know I could workaround the damage buff of the spell by making the spell one specific Element and the States changing the weakness to this Element but as I'm learning to do whatever I can with formulas, I'd be happy to find a way to do this with formulas
Also, I've no idea yet how to deal with the "Stack" mechanic without formulas (Adding "Arcane Stain I" if no state is already applied and "Arcane Stain II" if "Arcane Stain I" is already applied).
EDIT 2: Yeah, of course I noticed the Thread about formulas 10 minutes after creating this one...Sorry, Maths hurt my brain.
Last edited:


