How do I create the formula for calculate the damage of a skill

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I need a formula for determine the amount of damage that a skill or ability can do.



I have some data that I don't have create myself, but I just taken from a game.



A character can grow up from lv 1 to 100, and he has a set of skills.



Every skill can go up from lv 1 to (current level of the character)



The skill damage is linear but influenced of character's attack, so more attack the character has and more damage can do the skill.



A character that we call John has the follow parameters



Max stats that John can reach:



  • Level 100

  • Attack 7337

  • Skill damage (lv 100) 16574

Minimum stats:



  • Level 1

  • Attack 71

  • Skill damage (lv 1) 479

The current stats of John:



  • Level 13

  • Attack 202

  • Skill damage (lv 13) 805

When the skill was a previous level:



  • Level 13

  • Attack 202

  • Skill damage (lv 12) 788

In theory the skill damage should get 7 points for level, of course with the current amount attack of John, but is linear.



What I'm trying to do is get the basic damage of a skill plus the correct multiplier



Edit:



Seems that adding an item that give a bonus (+62 atk) the multiplier is change from 7 to 18 and the skill damage increased of +64 (788,852)



  • Level 13

  • Attack 264(202+62 from equip)

  • Skill damage (lv 12) 852


  • Level 13


  • Attack 264(202+62 from equip)

  • Skill damage (lv 13) 870






share|cite|improve this question

























    up vote
    0
    down vote

    favorite












    I need a formula for determine the amount of damage that a skill or ability can do.



    I have some data that I don't have create myself, but I just taken from a game.



    A character can grow up from lv 1 to 100, and he has a set of skills.



    Every skill can go up from lv 1 to (current level of the character)



    The skill damage is linear but influenced of character's attack, so more attack the character has and more damage can do the skill.



    A character that we call John has the follow parameters



    Max stats that John can reach:



    • Level 100

    • Attack 7337

    • Skill damage (lv 100) 16574

    Minimum stats:



    • Level 1

    • Attack 71

    • Skill damage (lv 1) 479

    The current stats of John:



    • Level 13

    • Attack 202

    • Skill damage (lv 13) 805

    When the skill was a previous level:



    • Level 13

    • Attack 202

    • Skill damage (lv 12) 788

    In theory the skill damage should get 7 points for level, of course with the current amount attack of John, but is linear.



    What I'm trying to do is get the basic damage of a skill plus the correct multiplier



    Edit:



    Seems that adding an item that give a bonus (+62 atk) the multiplier is change from 7 to 18 and the skill damage increased of +64 (788,852)



    • Level 13

    • Attack 264(202+62 from equip)

    • Skill damage (lv 12) 852


    • Level 13


    • Attack 264(202+62 from equip)

    • Skill damage (lv 13) 870






    share|cite|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I need a formula for determine the amount of damage that a skill or ability can do.



      I have some data that I don't have create myself, but I just taken from a game.



      A character can grow up from lv 1 to 100, and he has a set of skills.



      Every skill can go up from lv 1 to (current level of the character)



      The skill damage is linear but influenced of character's attack, so more attack the character has and more damage can do the skill.



      A character that we call John has the follow parameters



      Max stats that John can reach:



      • Level 100

      • Attack 7337

      • Skill damage (lv 100) 16574

      Minimum stats:



      • Level 1

      • Attack 71

      • Skill damage (lv 1) 479

      The current stats of John:



      • Level 13

      • Attack 202

      • Skill damage (lv 13) 805

      When the skill was a previous level:



      • Level 13

      • Attack 202

      • Skill damage (lv 12) 788

      In theory the skill damage should get 7 points for level, of course with the current amount attack of John, but is linear.



      What I'm trying to do is get the basic damage of a skill plus the correct multiplier



      Edit:



      Seems that adding an item that give a bonus (+62 atk) the multiplier is change from 7 to 18 and the skill damage increased of +64 (788,852)



      • Level 13

      • Attack 264(202+62 from equip)

      • Skill damage (lv 12) 852


      • Level 13


      • Attack 264(202+62 from equip)

      • Skill damage (lv 13) 870






      share|cite|improve this question













      I need a formula for determine the amount of damage that a skill or ability can do.



      I have some data that I don't have create myself, but I just taken from a game.



      A character can grow up from lv 1 to 100, and he has a set of skills.



      Every skill can go up from lv 1 to (current level of the character)



      The skill damage is linear but influenced of character's attack, so more attack the character has and more damage can do the skill.



      A character that we call John has the follow parameters



      Max stats that John can reach:



      • Level 100

      • Attack 7337

      • Skill damage (lv 100) 16574

      Minimum stats:



      • Level 1

      • Attack 71

      • Skill damage (lv 1) 479

      The current stats of John:



      • Level 13

      • Attack 202

      • Skill damage (lv 13) 805

      When the skill was a previous level:



      • Level 13

      • Attack 202

      • Skill damage (lv 12) 788

      In theory the skill damage should get 7 points for level, of course with the current amount attack of John, but is linear.



      What I'm trying to do is get the basic damage of a skill plus the correct multiplier



      Edit:



      Seems that adding an item that give a bonus (+62 atk) the multiplier is change from 7 to 18 and the skill damage increased of +64 (788,852)



      • Level 13

      • Attack 264(202+62 from equip)

      • Skill damage (lv 12) 852


      • Level 13


      • Attack 264(202+62 from equip)

      • Skill damage (lv 13) 870








      share|cite|improve this question












      share|cite|improve this question




      share|cite|improve this question








      edited Jul 27 at 12:14
























      asked Jul 27 at 11:04









      Kanade Tachibana

      11




      11




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          This is probably not a satisfying answer, but I think it's at least more than a comment.



          It's not possible to answer this exactly without all the knowledge of the game (because there might be some non-linearities going on), but solving a linear system can give us an approximate answer. The linear system assumes that the answer is of the form



          $$
          textskill damage = A times textLevel + Btimes textAttack + Ctimes textSkill level + D
          $$
          Plugging in the values that you have given, we get the equations
          $$
          left{
          beginarrayrcrcrcl
          100 A &+& 7337 B &+& 100 C &+& D &= 16574 \
          A &+& 71 B &+& C &+& D &= 479 \
          13 A &+& 202 B &+& 13 C &+& D &= 805 \
          13 A &+& 202 B &+& 12 C &+& D &= 788
          endarray
          right.
          $$
          Solving this gives us an approximate answer
          $$
          textskill damage = -13.5 times textLevel + 2times textAttack + 17times textSkill level + 321
          $$
          But this seems weird, because the Level multiplier is negative. This serves as evidence that the equation is more complicated than what we assumed.






          share|cite|improve this answer





















            Your Answer




            StackExchange.ifUsing("editor", function ()
            return StackExchange.using("mathjaxEditing", function ()
            StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
            StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
            );
            );
            , "mathjax-editing");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "69"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            noCode: true, onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );








             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2864301%2fhow-do-i-create-the-formula-for-calculate-the-damage-of-a-skill%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            This is probably not a satisfying answer, but I think it's at least more than a comment.



            It's not possible to answer this exactly without all the knowledge of the game (because there might be some non-linearities going on), but solving a linear system can give us an approximate answer. The linear system assumes that the answer is of the form



            $$
            textskill damage = A times textLevel + Btimes textAttack + Ctimes textSkill level + D
            $$
            Plugging in the values that you have given, we get the equations
            $$
            left{
            beginarrayrcrcrcl
            100 A &+& 7337 B &+& 100 C &+& D &= 16574 \
            A &+& 71 B &+& C &+& D &= 479 \
            13 A &+& 202 B &+& 13 C &+& D &= 805 \
            13 A &+& 202 B &+& 12 C &+& D &= 788
            endarray
            right.
            $$
            Solving this gives us an approximate answer
            $$
            textskill damage = -13.5 times textLevel + 2times textAttack + 17times textSkill level + 321
            $$
            But this seems weird, because the Level multiplier is negative. This serves as evidence that the equation is more complicated than what we assumed.






            share|cite|improve this answer

























              up vote
              0
              down vote













              This is probably not a satisfying answer, but I think it's at least more than a comment.



              It's not possible to answer this exactly without all the knowledge of the game (because there might be some non-linearities going on), but solving a linear system can give us an approximate answer. The linear system assumes that the answer is of the form



              $$
              textskill damage = A times textLevel + Btimes textAttack + Ctimes textSkill level + D
              $$
              Plugging in the values that you have given, we get the equations
              $$
              left{
              beginarrayrcrcrcl
              100 A &+& 7337 B &+& 100 C &+& D &= 16574 \
              A &+& 71 B &+& C &+& D &= 479 \
              13 A &+& 202 B &+& 13 C &+& D &= 805 \
              13 A &+& 202 B &+& 12 C &+& D &= 788
              endarray
              right.
              $$
              Solving this gives us an approximate answer
              $$
              textskill damage = -13.5 times textLevel + 2times textAttack + 17times textSkill level + 321
              $$
              But this seems weird, because the Level multiplier is negative. This serves as evidence that the equation is more complicated than what we assumed.






              share|cite|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                This is probably not a satisfying answer, but I think it's at least more than a comment.



                It's not possible to answer this exactly without all the knowledge of the game (because there might be some non-linearities going on), but solving a linear system can give us an approximate answer. The linear system assumes that the answer is of the form



                $$
                textskill damage = A times textLevel + Btimes textAttack + Ctimes textSkill level + D
                $$
                Plugging in the values that you have given, we get the equations
                $$
                left{
                beginarrayrcrcrcl
                100 A &+& 7337 B &+& 100 C &+& D &= 16574 \
                A &+& 71 B &+& C &+& D &= 479 \
                13 A &+& 202 B &+& 13 C &+& D &= 805 \
                13 A &+& 202 B &+& 12 C &+& D &= 788
                endarray
                right.
                $$
                Solving this gives us an approximate answer
                $$
                textskill damage = -13.5 times textLevel + 2times textAttack + 17times textSkill level + 321
                $$
                But this seems weird, because the Level multiplier is negative. This serves as evidence that the equation is more complicated than what we assumed.






                share|cite|improve this answer













                This is probably not a satisfying answer, but I think it's at least more than a comment.



                It's not possible to answer this exactly without all the knowledge of the game (because there might be some non-linearities going on), but solving a linear system can give us an approximate answer. The linear system assumes that the answer is of the form



                $$
                textskill damage = A times textLevel + Btimes textAttack + Ctimes textSkill level + D
                $$
                Plugging in the values that you have given, we get the equations
                $$
                left{
                beginarrayrcrcrcl
                100 A &+& 7337 B &+& 100 C &+& D &= 16574 \
                A &+& 71 B &+& C &+& D &= 479 \
                13 A &+& 202 B &+& 13 C &+& D &= 805 \
                13 A &+& 202 B &+& 12 C &+& D &= 788
                endarray
                right.
                $$
                Solving this gives us an approximate answer
                $$
                textskill damage = -13.5 times textLevel + 2times textAttack + 17times textSkill level + 321
                $$
                But this seems weird, because the Level multiplier is negative. This serves as evidence that the equation is more complicated than what we assumed.







                share|cite|improve this answer













                share|cite|improve this answer



                share|cite|improve this answer











                answered Jul 27 at 11:29









                Matti P.

                1,306212




                1,306212






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2864301%2fhow-do-i-create-the-formula-for-calculate-the-damage-of-a-skill%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    What is the equation of a 3D cone with generalised tilt?

                    Color the edges and diagonals of a regular polygon

                    Relationship between determinant of matrix and determinant of adjoint?