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,592
Reaction score
6,522
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

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,863
Messages
1,017,053
Members
137,571
Latest member
grr
Top