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
371
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,374
Reaction score
5,031
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

Hello I buyed RPG Maker VX Ace a long ago and I want to use it again but in the meantime I changed my pc but I lost the paper with my product key on so I can't use RPG maker again... someone can help me please ? or there is no hopes ?:'( ( I have a bad english I'm sorry )
I was away this days here in the forum but it was for a good cause!
The trailer of the demo of Luke Inn is on youtube and I am so happy!
I need to see the bugs of the game but I am happy that I have new content to show!

The last part of the modern interior will be ready soon. This will be a B-tile. With interior items for the kitchen, bathroom, toilet and storage room.
This frantic shooting ARPG plugin for MZ looks really great. Here is the link to a post from the official Japanese RPG Maker forum.
We start in 5 minutes!

Forum statistics

Threads
102,940
Messages
996,114
Members
134,391
Latest member
coffeequeer
Top