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 Profile Posts

"I, Giorno Giovanna, have a dream". In all seriousness, spatial BGM feature is now complete for my audio plugin.
Stream will be live shortly with some game development followed by the return of the Interactive Text Adventure after a short hiatus! Feel free to drop by!
Lately, I've taken to smashing random nouns/verbs together as insults. It's sort of amusing how many people don't really know how to respond to that. You bottle shaker!
Would be nice to pick color code that is not exclusively for message event
The Ace attorney series are so great games... But at the same time such a travesty.

Forum statistics

Threads
103,243
Messages
998,316
Members
134,733
Latest member
Shadowgrahp
Top