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!

Thread history

Fragment of a discussion from User talk:Det
Viewing a history listing
Jump to: navigation, search
Time User Activity Comment
No results

I messaged one of the admins of the wiki about this earlier, here.

Since skill expressions may turn off some of the users, this alternative may be of your interest, as it maintains the table viewing option.

What we are planning to do is auto-generate the skill table using a Loop statement with skill expressions and variables. If you don't know what a "loop" is (in-terms of coding), it's basically a built-in function that repeats a desired action over a number of times while a condition remains true.

The loop we are planning to use is called a "while loop". The condition we are using is called an "if statement". The "desired action" we want the loop to do is print out on-screen the skill values of each row of the table. I'm sure you can find better explanations online.

In this case, we are using the skill growth expressions (which are found via subtraction and division of the highest and lowest skill values) and using variables (which basically represent skill level). Ideally what should happen is by plugging them into the loop, the system will solve them and output the individual values for us.

If this works, then the only thing we have to technically edit on a skill page (if Neople decides to update a skill) is the skill growth expression.

However, there are a few issues that come along with this:

  • First, by using the skill expressions, the values per level could be 1~2% percentage points off from the ones shown in-game. But, the margin of error (difference between them) is so small that it is pretty negligible.
  • Second is an issue arises for skills like Blade Dance.png Blade Dance which has updating attributes every few levels. I'm pretty sure that we can solve this with extra conditional statements and variables.
  • Third is a problem that arises on skills like Core Shield.png Core Shield, Energy Shield (Female).png Energy Shield, and Light of Divinity.png Light of Divinity. The skill's shield value doesn't seem to have a consistent growth pattern and may be difficult to input values manually into a loop. However, we do have a work around. We can store the shield values in an element called an "array" and automatically call the desired value stored in a particular "index" (slot) for each iteration.
  • Fourth is the issue with static values. This is more of a visual issue. Since it is heavily advised not to use the "rowspan" feature within a loop, we have two options. One, we can put the static values in the "SkillAttribute Section" or two, allow the loop to keep printing out the same value on every row.

If you are not familiar with some of these coding terminologies, then this may be a bit confusing. If you have any questions, feel free to ask us on our talk pages. You can contact me directly using the information on my User page.

At the moment though, the wiki doesn't yet have the desired features of "loops" and "arrays" installed. The admin, User:Dfoplayer, is working on that at the moment, and will get back to us around this weekend.

11:41, 7 November 2018