Welcome to the DFO World Wiki. With many major updates since the release of DFO, many items are missing. Visit Item Database Project to learn more.
Please remember to click "show preview" before saving the page.
Thanks for the updated logo snafuPop!

Using Mathematical Expressions for Skill Pages

Jump to: navigation, search
Revision as of 24 September 2018 at 18:21.
The highlighted comment was created in this revision.

Hey Bah Wikier, welcome back. I've noticed that you've been updating quite a few of the F. Priest (Shaman) skill pages recently.

Just so you know, you don't have to put all the values on one page. Inputting all the values on a page can be painstakingly mind-numbing, and becomes cumbersome when the Neople team adds a balance patch. You can use a mathematical expression instead; it will save you a lot time and prevent frustration later.

For reference, you can look at the Agent Skill Pages.

    22:24, 22 September 2018

    Out of curiosity, where did those formulas come from? Are they estimations made by players?

      12:05, 23 September 2018

      Kinda. The formulas can be found manually in game with a little bit of mathematics.

      For most percentage values it goes as follows:

      For all values of n >= 1 (with n being the current skill's level):

      Base Level 1 Percentage Value + Per Level Multiplier*(n-1)%

      For Fixed Damage attacks it works pretty much the same way, just requires a lot more code...

      For a more precise estimation for the Per Level Multiplier, I usually use the highest possible values and use a little algebra to solve for the multiplier.

        12:30, 23 September 2018

        So fixed damage skills are like:

        (fixed damage * independent attack) + (independent level multiplier * independent attack)*(n-1);

          12:34, 23 September 2018

          Not exactly. It would be: (Skill's Level 1 Fixed Damage/Your Independent Attack) + (Independent Attack Level Multiplier) * (n-1)

          To solve for the Independent Attack Level Multiplier: Let's treat the 'Independent Attack Level Multiplier' as 'X' and 'n' as the skill's current level.

          X = ((Skill's highest possible Fixed Damage/Your Independent Attack) - (The Skill's Level 1 Fixed Damage/Your Independent Attack))/(n-1)

          OR

          X = (Skill's highest possible fixed damage - Skill's Level 1 Fixed Damage)/(Your Independent Attack * (n-1))

          Also, we do have template to calculate the Ratio for Independent Attack called AbsoluteDamage.

            12:57, 23 September 2018
            Edited by author.
            Last edit: 13:08, 23 September 2018

            So something like: {{AbsoluteDamage|472|472}} + {{AbsoluteDamage|47|472}}*(n-1)

              13:05, 23 September 2018

              {{AbsoluteDamage|472|472}} + {{AbsoluteDamage|472|472}}*(n-1)

                13:06, 23 September 2018

                Yeah something like that. Thanks for pointing that out to me.

                It might even be easier if we just omit the 'Your Independent Attack' from the equation I stated earlier.

                So it turns out like this:

                X = (Skill's highest possible fixed damage - Skill's Level 1 Fixed Damage)/(n-1)

                As mentioned in your example, it would be basically this:

                {{AbsoluteDamage|Skill's level 1 Fixed damage|Your Independent Attack}}+{{AbsoluteDamage|X|Your Independent Attack}}*(n-1)
                  13:24, 23 September 2018

                  Hey, I've noticed that certain skills like Aura Javelin and Lollipop Crush have quite extensive tables that might hover off the page once we put in the expressions. Do you think it would be better if we keep this information in a table or list them out similarly to the 'Skill Options' in-game?

                    10:47, 24 September 2018

                    Because we are now using a single formula instead of listing each level in a table, we don't necessarily need to use tables at all. It's just that the current skill page template automatically takes a table. I actually tried putting two separate tables on the Lolipop Crush page, but the skill page refused to display a second table correctly. I ended up squishing both tables into the single skill growth table.

                    I guess the question is if we're going to create a new skill page template.

                      10:59, 24 September 2018

                      Creating a new skill page template is unnecessary as the table function is completely independent from the template for it to display correctly. You can literally type anything in the area and it should be able to display normally, with the exception of tables or tabs for some reason which require an outer call of

                      <span style="display:none">{{</span> <span style="display:none">}}</span>

                      .

                      To list out the skill options under skill growth, we can always use the SkillAttribute template and put in the individual expressions there.

                        11:21, 24 September 2018