Gain TP when attacked if certain state is applied.

● ARCHIVED · READ-ONLY
Started by Setheim 12 posts View original ↗
  1. Hey there,

    Well, what the title said.  I tried to use Yanfly's TP script, but while it gives me the chance to control that no TP was gained when attacked or that TP is gained when state is INFLICTED it didn't give me what I wanted that is that to get TP when damaged ONLY if a (certain - not any) state is active.. 

    Any help apreciated!

    Thanks in advance.

    S.
  2. I'm not REALLY sure, but maybe this damage formula would work:

    if a.state(x); a.tp += y; else; a.tp += 0; a.atk * 4 - b.def * 4

    x is state number, y is tp to be added 

    That would make the skill add TP to your character when used under said state.

    If the damage result is null, then I'm stupid and the damage formula is wrong.
  3. How about setting the TCR to 0% by default? and then adding additional TCR in state?
  4. TheoAllen said:
    How about setting the TCR to 0% by default? and then adding additional TCR in state?
    ^This

    There's no reason for a script or an insanely confusing dmg formula.
  5. Hmm didn't think about that :p

    Not that my formula was really confusing, just possibly incorrect...
  6. Hey everyone, thanks for the quick replies.

    But...! TCR doesn't seem to work because the state doesn't bring back the TP gain (for some reason) and worse, it affects how much TP actor gains when attacking (and not only when attacked).

    I already tried the custom formula thing (it was my first thought) and it worked, however I would need to apply it to every skill and my custom formulas are compicated enough as they are so it's a no go. :/ 

    Any other ideas? 

    Thanks.
  7. Hmm you could shorten it with a script so that all you would have to add to the formulas would be like:

    a.tpstate;  your forumula 

    Would you like me to attempt that?
  8. @Euphoria, if no other solution I believe I could work around that, so yeah! That'd be amazing! thank you :)
  9. I'll see if I can get it to work and PM you!
  10. Thank you good sir. 
  11. PM'd you the script.
  12. Thank you and thank you again, that worked wondrs.

    Cheers.