Need help with a formula i cant remember how i did it.

Kaligath

Veteran
Veteran
Joined
May 13, 2019
Messages
36
Reaction score
14
First Language
English
Primarily Uses
RMMV
Basically the more TP the character gains the less damage the character does think of it like fatigue and the way to reduce TP is by using the guard command that its done in % due to TP can only ever go to 100 so at 100 you would be fully fatigue and do 0 damage.

As for reducing it that is where guard command comes in it will also provide a buff for 2 turns for the class primary stat that can be stacked two times as for reduction in tp it would reduce it by 25 thus using it 2 times will reduce it by 50%.

I will be changing the name TP to something to represent fatigue.

The problem i have though is i cant seem to work out what the formula was...
 

Soulrender

Jack Of All Trades
Veteran
Joined
Jan 12, 2019
Messages
675
Reaction score
370
First Language
Poland
Primarily Uses
RMMV
Have you tried simply substract TP in damage formula? As you said:
"the more TP the character gains the less damage the character does"

so for example:
Code:
(a.atk * 2) + (a.level * a.mat) - a.tp
Should do
 

Kaligath

Veteran
Veteran
Joined
May 13, 2019
Messages
36
Reaction score
14
First Language
English
Primarily Uses
RMMV
i believe the TP is i recall had like 0.005 or something as a percentage value but i cant seem to think for the love of me what it was.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,600
Reaction score
1,931
First Language
English
Primarily Uses
RMMV
If TP at 100 makes you do 0 damage, it would have to reduce damage by 1% per point:

var dmg = (a.atk * 2) - (a.level * a.mat); var tpMod = dmg * 0.01 * a.tp; dmg - tpMod
 

Kaligath

Veteran
Veteran
Joined
May 13, 2019
Messages
36
Reaction score
14
First Language
English
Primarily Uses
RMMV
I worked it out god my head hurts so much dealing with that (a.atk * 3 - b.def) * (1 - (a.tp * 0.010))

Thanks for the responses in future i should really log all this stuff down.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,600
Reaction score
1,931
First Language
English
Primarily Uses
RMMV
Glad you got it figured out. Mine does the same thing just in a slightly different way. :)
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,373
Reaction score
5,030
First Language
Dutch
Primarily Uses
RMXP

I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

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

Latest Threads

Latest Posts

Latest Profile Posts

We start in 5 minutes!
I'm making MAGIC!
aww I am sad but happy for brackeys to decide to pursue something new but seing brackeys ending is so sad ;w;
Now RPG Maker has brought him here. He will never be rid of his need for it. He hates and loves the RPG Maker, just as he hates and loves himself. Featherbrain's life is a sad story. Yes, Featherbrain, he was called. Before the RPG Maker found him. Before it drove him mad.
Really struggling with XP animations but my game deserves my best.

Forum statistics

Threads
102,926
Messages
996,026
Members
134,380
Latest member
Marcussss
Top