Gain TP when attacked if certain state is applied.

Setheim

Veteran
Veteran
Joined
Nov 7, 2013
Messages
54
Reaction score
20
First Language
Spanish
Primarily Uses
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.
 
Last edited by a moderator:

Euphoria

Veteran
Veteran
Joined
Jun 27, 2013
Messages
378
Reaction score
93
First Language
English
Primarily Uses
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.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,573
Reaction score
6,497
First Language
Indonesian
Primarily Uses
RMVXA
How about setting the TCR to 0% by default? and then adding additional TCR in state?
 

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
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.
 

Euphoria

Veteran
Veteran
Joined
Jun 27, 2013
Messages
378
Reaction score
93
First Language
English
Primarily Uses
Hmm didn't think about that :p

Not that my formula was really confusing, just possibly incorrect...
 

Setheim

Veteran
Veteran
Joined
Nov 7, 2013
Messages
54
Reaction score
20
First Language
Spanish
Primarily Uses
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.
 

Euphoria

Veteran
Veteran
Joined
Jun 27, 2013
Messages
378
Reaction score
93
First Language
English
Primarily Uses
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?
 

Setheim

Veteran
Veteran
Joined
Nov 7, 2013
Messages
54
Reaction score
20
First Language
Spanish
Primarily Uses
@Euphoria, if no other solution I believe I could work around that, so yeah! That'd be amazing! thank you :)
 

Euphoria

Veteran
Veteran
Joined
Jun 27, 2013
Messages
378
Reaction score
93
First Language
English
Primarily Uses
I'll see if I can get it to work and PM you!
 

Setheim

Veteran
Veteran
Joined
Nov 7, 2013
Messages
54
Reaction score
20
First Language
Spanish
Primarily Uses
Thank you good sir. 
 

Euphoria

Veteran
Veteran
Joined
Jun 27, 2013
Messages
378
Reaction score
93
First Language
English
Primarily Uses
PM'd you the script.
 

Setheim

Veteran
Veteran
Joined
Nov 7, 2013
Messages
54
Reaction score
20
First Language
Spanish
Primarily Uses
Thank you and thank you again, that worked wondrs.

Cheers.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Ami
--- Diary ---

M.Mage: It's the F.Mage's Diary. While she isn't here,i can read it.

May, 10: I'm hurt after the battle with the Minotaur. But luckily,F.Healer heal me with her Heal-2. That why,i Fall in Love with her.

M.Mage: Eh???
So... some of my Desktop hardware has kicked it apparently (still trying to figure out what and how at the moment :/ ) .... yay?
Stream will be live shortly with some Darkest Dungeon! Feel free to drop by!
Made a HUGE (YYOOOOJJ) Update to Monstructs and moving towards a Steam Early Access release!

Forum statistics

Threads
104,225
Messages
1,004,810
Members
135,740
Latest member
Animalblack
Top