Hello! I've been trying to add a mechanic to the combat sort of like Xenoblade Chronicles's "Break -> Topple -> Daze" system and am not sure how to change a target's state when hit with a move only when afflicted with the prior effect in the chain.
Example:
Target is not afflicted with "Break" so the attack will not inflict "Topple"
Target is afflicted with "Break" so the attack will inflict "Topple"
I have tried to set all foes "Topple" effectiveness to 0% and change it to 100% when afflicted with "Break," but the 0% seems to take priority?
Is this with the default battle system, or are you using scripts?
I am using the default system, but would not be opposed to any script-writing with a helping hand.
Does "Break -> Topple -> Daze" system mean that you only need one of the previous states at a time?
Or you'd need to get Break, then replace it with Topple before Daze comes into play?
I mean, as if it were expecting your hero to go through the whole process...
Correct, you need to inflict them all in order. (Break then Topple then Daze)
So you mean you need it to KEEP TRACK of all the state changes till the hero gets the Daze state, right?
It can be a bit cumbersome but it gotta be feasible, nonetheless.
Exactly. That needs to be done in order for the player to be unable to skip stages.
Thank you so much! This forum has been incredibly kind and helpful for me already.
the engine is already making the calculations internally... you don't need to add another conditional to the damage formula.
the problem is, that you can't set state resists to 0% to then override them to 100%, you can only set states invulnerabilities, so the whole logic has to be made with double negatives.
if "topple" requires "break", have "break" negate a state invulnerability to "topple", so that "topple" can be added on top of "break" when IT is active.
on "topple", negate "break" itself.
have the actor itself have a native invulnerability to "topple" AND "daze", and a vulnerability of 0 to "break".
on damage, *add* "break".
"break" negates native invulnerability to "topple". so "topple" can now land.
on "topple", negate active "break", and base invulnerability to "daze", so "daze" can then land.
no.... "topple" will be "the state that gives the effect of topple"
what I mean is, give *the actor* a state that *resists the state named 'topple'*
then, make another state that negates the state that gives the actor the resistance to topple.
double negative.
there's "yes", there's "no", but there's also "not-yes" which not inherently means "no", and "not-no" which not inherently means "yes".
that the effect of both is similar to their counterparts, is an unexpected side effect.