[Question] TQ Battle Power (Increase/Decrease) on attack

06/26/2014 12:50 littlechris95#1
Hello everybody!

So I have a little problem regarding the Battle Power. In a few days I've been trying to ca find a way to calculate the attack according to the Battle Power of attacker and target.

For example:

Player 1 has 385 Battle Power;
Player 2 has 378 Battle Power;

If player 1 attacked player 2, the attack has to increase.
If player 2 attacked player 1, the attack must decrease.

How can I do this correctly? Get the difference in BP between the two and convert to percentage?
TQ uses some specific calculation for this? Does anyone have?

Suggestions?
Thank you.
06/28/2014 03:47 pintinho12#2
Not ranking based, most peoples uses this calc so peoples focus on donating and buy CPs...
Its basically BP based...
if Attacker BP >= Attacked BP then Attack = 100%
if Attacker BP < Attacked BP then Attack = 50%
if the server has Break and Critical, just put the Break calculation after the BP check, then if Break succeed you send the animation, otherwise, if fails, divide the damage by 2.. After it, you check the Critical..
Remember, Break - Counter or Critical - Immunity = Chance.. if > 100 , then chance = 100%, if less than 0, chance is 0
Immunity multiplies the damage by *1.5..
The damage Calc itself if you want to get TQ damage..
I still didnt make my Jiang system, so this works perfect to me..
Calculate the damage, a rand between Min Damage and Max Damage...
Then, without Jiang, multiply by 2... If you have Jiang, try reducing this, otherwise attacks will exceed the expected.
Then, check battle power, if less than the victim, break is enabled
Calc the break chance, if success, dont change the attack, if fails, Attack * 0.50 (or /2)
Now check the Critical, if fails, dont change the attack, if success, Attack *1.5
Remember, you cant break if u have higher BP! Peoples claim that it gives extra damage, it doesnt!
After this, you can calculate the Stigma...
Make the skills Calculations..
Check if attacker is blessed, calculate the bless hit chance...
If.. attacker is an assassin, this calculation worked perfectly to me..
Multiply Damage * 12 and divide by /100
Great, tested with a full +12 assassin with p6s, the damage will run around 3.7-5k (With skills that would increase it by 500% it gets around 18-25k with Stigma)
Reduce defense now, calculate the Azure Shield, and bla bla bla
Below is my Meele Code... Just for single attacks (no skill)
06/28/2014 05:32 littlechris95#3
Solved!
#request closed