• Welcome to Final Fantasy Hacktics. Please login or sign up.
 
June 16, 2025, 07:26:51 am

News:

Don't be hasty to start your own mod; all our FFT modding projects are greatly understaffed! Find out how you can help in the Recruitment section or our Discord!


[Formulas] Status proc % for Dmg and Heal formulas

Started by R999, February 23, 2010, 09:03:17 pm

R999

In order to have a control over the status hit%, or if you want to inflict status at a higher than 25% rate, you will need to use those formulas with a hit% or hit_F()%. The discussion below is to outline the formulas that can do damage or healing in addition to status infliction. It is this status infliction rate that is ambiguous because sometimes we just don't know whether the Hit% is the status itself or the hit rate, or both.  

Every formula that have a Hit% or Hit_F()% that has No Dmg part and No Heal part will inflict the status effect by a variable you can set (or a 100% rate). The formulas that actually do damage or heal behave rather differently.


Damage with Status formulas, 25% status formulas are ignored, NS formulas are ignored:

09 Dmg(Y/100)%  Hit_F(MA+X)% [Demi]
-> This is actually suppose to be Dmg(Y)%
- The Hit_F(MA+X)% is the hit rate of the attack, NOT the status infliction (and regardless if the Evadeable is checked or not). The actual rate of status infliction based on this formula is 25%.
- Status is applied after damage.

0E Dmg_(Y)% Hit_F(MA+X)% 100% Status Hide Status [Death]
- No status being displayed means exactly that.
- Status is applied first; if target is immune to status, no damage will be taken.
- Formula is hardcoded to reverse damage on Undead [formerdeathcorps]

2D Dmg_(PA*(WP+Y)) 100% Status [Holy Sword]
- Damage is applied first, regardless if target is immune to status. [formerdeathcorps]
- Like other 100% formulas, Separate inflict status sets each status to a 25% success rate.

1D Hit_(X)% NS [Dance]
->This is NS, but needs to be mentioned  because all of Dancers skills share this formula, including Wiznaibus and Nameless Dance. Wiznaibus uses a hidden Y=30 variable for the damage, but it's hardcoded into that skill. If you try to clone Wiznaibus, you will not be able to do damage. It will give you a X% success rate with a blank status labelled in the preview screen, however, no status infliction actually occurs.

47 AbsHP_(Y)% 100% Status [Blood Suck]
- Status is applied after damage. Damage is always applied regardless if the target is immune to status. [formerdeathcorps]

Healing with Status formulas, NS formulas are ignored:

0C Heal_F(MA*Y)
-> This is the standard Cure formula. Impossible to inflict status --not even 25%. The hit rate is always 100%, but infliction rate is 0%; so this is NS.

0D Heal_(Y)% Hit_F(MA+X)%
-> This is the Raise2 formula. MUST HAVE a status to work, else is 0% hit rate.  This formula's Hit_F()% is actually both the hit rate AND the infliction rate (and regardless if the Evadeable is checked or not). Another strange thing about this formula is that if you don't set a status ID (00), it will always have 00% success rate. So, status must be applied before heal. This lets you do stuff like say, a missable Heal that heals 50% of target's HP and always inflict Regen.

35 Heal_(Y)% Hit(PA+X)%
-> This is the Revive and Life Spirit formula. Status is applied first; if status is blocked by target, no heal.


48 Heal_(Z*10) and 49. HealMP(Z*10) --> this is NS
- Does not add status. (tested by formerdeathcorps)
-> Z variable is controlled by the Potion's setting.  (Vanya correction)

4A Heal100% HealMP100% --> this is also NS
-> Elixir formula.

4B Heal_(Rdm(1-9)) 100% Status
-> Phoenix Down formula. Similar to 0D, status is applied first.



So as you can see, the status infliction % can be rather ambiguous depending on the formula you use. I encourage everyone to keep these restrictions in mind when creating new Abilities that can trigger status infliction.


Update:

formerdeathcorps provided some new information regarding NS formulas; that they don't seem to be able to deal elemental damage.
Quote1. Formula OC always deals non-elemental damage to the undead. Flagging it as holy elemental has no effect. R999 found out that it was NS.
2. The life drain formula is NS. As the makers of 1.3 found out, it cannot be flagged as darkness elemental, even though it mimics the effect of darkness elemental attacks.
3. As we now know, status effects cannot be added to the potion formulas. Observe too how their damage/healing is clearly non-elemental.
4. Worker 8's formula is NS. I flagged dispose as electric elemental, but squidlarkens took normal damage.
5. I just tested Gafgarion's attacks in vanilla, which should theoretically be flagged as weapon elemental. However, a coral sword using Gafgarion still did damage to enemies wearing rubber costumes and rubber shoes.

Vanya

Z variable is sort of controllable. When using those formulas with skills, the Z variable is taken from the Potion's setting.
  • Modding version: Other/Unknown
¯\(°_0)/¯

formerdeathcorps

48 and 49 definitely don't add status.  I suspect the same is true of 4A.

The only exception to these heal formulas is when they are used against the undead.  In this case, even if your attack doesn't grant any status (or grants one that is inapplicable, like esuna on an undead unit without additional status effects), damage will always come before status effects.
Furthermore, if you try to create a status canceling spell with any of the above curative formulas that allow status (except the phoenix down one), you cannot use such a spell except on those afflicted.  (Cancel status is just the inverse of all or nothing.)

And speaking of status effects, I think I know why 100% status infliction isn't always the same.

If you have all or nothing flagged, you will inflict all of them at 100%.  If you are immune to one of them, the others may still be inflicted.  (Observe that units who innately have a given status, from equipment or from class bonuses, are "immune" to that status.)
If you have random flagged, you will inflict 1 status effect at 100%, but the display will show 25% as simply the "chance" that given status will be inflicted.
If you have separate flagged, you will inflict 1 status effect at 100%, but each subsequent status effect will only have a 25% chance of being inflicted.
If you have more than one flagged, the one on top takes precedence (so you can't inflict abilities and cancel them with one cast of one spell).
The destruction of the will is the rape of the mind.
The dogmas of every era are nothing but the fantasies of those in power; their dreams are our waking nightmares.

R999

Actually for the 100% status infliction and Separate, it is actually only 25%. It's the way the Holy Sword status effects work. They have a 100% status formula, but Separate is used. Separate seem to override the status infliction rate to 25%.

formerdeathcorps

R999, I should have been clearer; I'm referring to formula 38.  I suspect the other formulas may act differently.  To test this, try using finish touch (3 deadly status effects) on a unit with no immunities or evasion.  Does it ever fail to inflict any status effect at all (there should be a 42% chance for this to happen if what you say is true)?
The destruction of the will is the rape of the mind.
The dogmas of every era are nothing but the fantasies of those in power; their dreams are our waking nightmares.

R999

Well, in a new Patch, I see Finishing Touch has Random Flagged instead of Separate. Which makes sense since only one of them is proc'ed at a time.

formerdeathcorps

Quote from: "R999"Well, in a new Patch, I see Finishing Touch has Random Flagged instead of Separate. Which makes sense since only one of them is proc'ed at a time.
Oops, I forgot to double check that.  Try using parasite under the same conditions.  If each is truly at 25%, there should be around a 10% chance a unit with no immunities or evasion will receive no status effect.
The destruction of the will is the rape of the mind.
The dogmas of every era are nothing but the fantasies of those in power; their dreams are our waking nightmares.

R999

I would just go to the status effect screen and allow only one status to proc separately. That way, the success rate should be fairly low and easier to test out (on the 100% formula). I'll get to that later.

R999

This is parasite using its 100% formula (and 25% separate, only 1 status checked):

Screenshot


It actually is 25%.

formerdeathcorps

March 18, 2010, 11:44:18 pm #9 Last Edit: March 19, 2010, 04:11:49 pm by formerdeathcorps
Bumping this with more sobering discoveries.

It seems every weapon formula with NS not only does not admit status, but also always deals non-elemental damage (if it deals damage).
Examples:
1. Formula OC always deals non-elemental damage to the undead.  Flagging it as holy elemental has no effect.  R999 found out that it was NS.
2. The life drain formula is NS.  As the makers of 1.3 found out, it cannot be flagged as darkness elemental, even though it mimics the effect of darkness elemental attacks.
3. As we now know, status effects cannot be added to the potion formulas.  Observe too how their damage/healing is clearly non-elemental.
4. Worker 8's formula is NS.  I flagged dispose as electric elemental, but squidlarkens took normal damage.
5. I just tested Gafgarion's attacks in vanilla, which should theoretically be flagged as weapon elemental.  However, a coral sword using Gafgarion still did damage to enemies wearing rubber costumes and rubber shoes.  In fact, the AI treats the attack as if it were darkness elemental (even though it's not), leading to weird behavior when the enemies equipped N-Kai Armlets (such as choosing to cast slow on the enemies over night sword).
6. Tested wiznaibus, healing staff, and wave fist formulas.  Same issue.
7. The only exception to this seems to be Formula 2, but I suspect weapon damage is in its own league (segregated from ability damage).

Some other odd tidbits:
8. The weapon formulas (00,01,02,05), if given to items, can only be used if throw item is set as the support ability but encounters the same exploit that guns experienced: repeated damage check + good Zodiac compat (which enemies can exploit too) = 999 damage.
9. The magic gun formula (04) will always default to ice elemental if it is set to an element that isn't fire, ice, or lightning.
The destruction of the will is the rape of the mind.
The dogmas of every era are nothing but the fantasies of those in power; their dreams are our waking nightmares.

philsov

Quote5. I just tested Gafgarion's attacks in vanilla, which should theoretically be flagged as weapon elemental. However, a coral sword using Gafgarion still did damage to enemies wearing rubber costumes and rubber shoes. In fact, the AI treats the attack as if it were darkness elemental (even though it's not), leading to weird behavior when the enemies equipped N-Kai Armlets (such as choosing to cast slow on the enemies over night sword).

That is more the result of the weapon strike glitch, where all swordskills take on the element of the user's weapon.  A code's been made to fix that and actually make swordskills elemental -- though swordskills have always been capable of status infliction as well.

Quote6. Tested wiznaibus, healing staff, and wave fist formulas. Same issue.

Doesn't wave fist use the same formula as earth slash?
Just another rebel plotting rebellion.

formerdeathcorps

I meant repeating fist.  Thanks for catching that.

As for Gafgarion, you should observe that night and dark sword use formulas 2F and 30, both of which are NS.  The regular swordskill formula is 2D, which is not NS.
The destruction of the will is the rape of the mind.
The dogmas of every era are nothing but the fantasies of those in power; their dreams are our waking nightmares.

R999

I don't know about the Dancers aside from Nameless/Forbidden Dance, but as far as I have tested, the Bard formulas works with status  (offensive or support status, does not matter) and the rate of success is determined by the variable. You don't need to use the Nameless Song ability slot either. But based on what you are saying, Wiznaibus cannot be elemental correct? Although I have tried changing the formula for Wiznaibus to deal different damage (and that works). Come to think of it, it is strange that Wiznaibus uses the Dancer's formula.

formerdeathcorps

Quote from: "R999"I don't know about the Dancers aside from Nameless/Forbidden Dance, but as far as I have tested, the Bard formulas works with status  (offensive or support status, does not matter) and the rate of success is determined by the variable. You don't need to use the Nameless Song ability slot either. But based on what you are saying, Wiznaibus cannot be elemental correct? Although I have tried changing the formula for Wiznaibus to deal different damage (and that works). Come to think of it, it is strange that Wiznaibus uses the Dancer's formula.

I'm saying that formula for wiznaibus is NS and thus forbids elemental damage.
The destruction of the will is the rape of the mind.
The dogmas of every era are nothing but the fantasies of those in power; their dreams are our waking nightmares.

R999

But it cannot be NS since it can trigger status, or I am reading something wrong here?

formerdeathcorps

The formula for dances is 1D; the formula for songs is 1C.  You just proved that 1C isn't NS.
The destruction of the will is the rape of the mind.
The dogmas of every era are nothing but the fantasies of those in power; their dreams are our waking nightmares.

R999

Hmm.. both Witch Hunt and Slow Dance can inflict status as well (on the skill itself). But once you set a status, MP damage and Speed change are lost.

formerdeathcorps

I just tested all the formulas that inflict 100% status with % HP damage/drain/healing.

0E (BM Death)
1. Always reverses against undead.
2. Always tries to inflict status first.  If enemy is immune damage is not dealt.

2D (Holy Sword)
1. Damage is always applied first.  If enemy is immune to status, damage is still dealt.
2. If separate, status infliction = 25%.

38 (100%) and 5A (Dragon 100%)
1. If separate, status infliction = 25%.

47 (Blood Suck)
1. HP is always drained first.  If enemy is immune to status, drain is still dealt.
2. If separate, status infliction = 25%.

4B (Phoenix Down)
1. Status is always inflicted first.
2. If the enemy is immune to status, nothing happens.  Similarly, if enemy curHP + 2 > enemy maxHP, status is not inflicted.

52 (Self Destruct)
1. Damage is always dealt to user and foes, regardless of immunities.
2. If separate, status infliction = 25%.

Please Eat
1. Level up happens first and will occur regardless if wildbow is immune to status.
2. If separate, status infliction = 25%.

5B (Dragon Heal)
1. Healing is the same as wish and energy in vanilla.  Heals, even the undead, for a fixed amount, regardless of immunities.
2. Healing occurs first.  Status is inflicted second.  Separate = 25%.
The destruction of the will is the rape of the mind.
The dogmas of every era are nothing but the fantasies of those in power; their dreams are our waking nightmares.

R999

Odd, I was able to get the Sing and Dance formulas (1C and 1D) to proc status effects previously, however it seems I am not able to do so in a new patch. Until I figure out what's the cause of this (and I can't) I'll have to take back what I said before.

Skip Sandwich

I think it might just be that the slots for nameless dance/song are hardcoded to accept status, even though the formula normally doesn't.
"Dave?  Are you there?"
"Yeah.  I can't get you through the cell now."
"You have to talk through the bratwurst from now on. I'm sorry. I didn't know it would do that."
http://www.johndiesattheend.com