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!

Difference between revisions of "Template:Set information"

From DFO World Wiki
Jump to: navigation, search
m
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#set:Has game context=Set}}{{#set:Has name={{{name|{{PAGENAME}}}}}}}
+
<includeonly>{{#css:User:Gardios/Compact.css}}{{#set:Has game context=Set}}{{#set:Has name={{{name|{{PAGENAME}}}}}}}
 
<h2> Set Effects </h2>
 
<h2> Set Effects </h2>
 
{{#arraymap:1,2,3,4,5,6,7,8,9,10,11|,|%%%|{{#if: <!-- something is set for [%%%] -->
 
{{#arraymap:1,2,3,4,5,6,7,8,9,10,11|,|%%%|{{#if: <!-- something is set for [%%%] -->
Line 13: Line 13:
 
=== [%%%] ===
 
=== [%%%] ===
  
{{#vardefine:br}}{{#arraymap:{{lc:{{Stat enumeration|base=only}}}}|,|@@@|{{#if:{{{%%% @@@|}}}|{{#if: {{#var:br}}|<br>|{{#vardefine:br|1}}}}{{stat|@@@|{{{%%% @@@}}}}}
+
{{#vardefine:br|}}{{#vardefine:base stats|
 +
{{#arraymap:{{lc:{{Stat enumeration|base=only}}}}|,|@@@|
 +
{{#if:{{{%%% @@@|}}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{Stat|@@@|{{{%%% @@@}}} }} |}}
 
|}}
 
|}}
|}}{{#if:{{{%%% inflict element|}}}|{{#if: {{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#arraymap:{{{%%% inflict element|}}}|,|@@@|{{#switch: {{lc:@@@}}
+
}}{{#vardefine:br|}}{{#vardefine:shortened base stats|
 +
{{#arraymap:{{lc:{{Stat enumeration|base=only}}}}|,|@@@|
 +
{{#if:{{{%%% @@@|}}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#switch:@@@
 +
| weapon physical attack = P.&nbsp;Atk.
 +
| weapon magical attack = M.&nbsp;Atk.
 +
| independent attack = I.&nbsp;Atk.
 +
| equipment physical defense = P.&nbsp;Def.
 +
| equipment magical defense = M.&nbsp;Def.
 +
| strength = STR
 +
| intelligence = INT
 +
| vitality = VIT
 +
| spirit = SPR
 +
| exorcism = EXO
 +
}}&nbsp;{{Stat|@@@|{{{%%% @@@}}}|format=value}} |}}
 +
|}}
 +
}}{{#vardefine:br|}}{{#vardefine:stat bonuses|
 +
{{#if:{{{%%% inflict element|}}}|{{#if: {{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#arraymap:{{{%%% inflict element|}}}|,|@@@|{{#switch: {{lc:@@@}}
 
| fire | water | light | shadow = Inflict {{ucfirst:{{lc:@@@}}}} Damage
 
| fire | water | light | shadow = Inflict {{ucfirst:{{lc:@@@}}}} Damage
 
| #default = Inflict Unknown Elemental Damage
 
| #default = Inflict Unknown Elemental Damage
 
}}|<br>}}
 
}}|<br>}}
|}}{{#arraymap:{{lc:{{Stat enumeration|base=exclude}}}}|,|@@@|{{#if:{{{%%% @@@|}}}|{{#if: {{#var:br}}|<br>|{{#vardefine:br|1}}}}{{stat|@@@|{{{%%% @@@}}}}}
+
|}}{{#arraymap:{{lc:{{Stat enumeration|base=exclude}}}}|,|@@@|
 +
{{#if:{{{%%% @@@|}}}|{{#if:{{#var:br}}|<br>|{{#vardefine:br|1}}}}{{Stat|@@@|{{{%%% @@@}}} }} |}}
 
|}}
 
|}}
|}}{{#if:{{{%%% single skill bonus|}}}|{{#if: {{#var:br}}|<br>|{{#vardefine:br|1}}}}<!--
+
}}{{#vardefine:br|}}{{#vardefine:skill bonuses|
 +
{{#if:{{{%%% single skill bonus|}}}|{{#if: {{#var:br}}|<br>|{{#vardefine:br|<!-- br will be set in the arraymap; don't set it here or there's one br too many -->}}}}<!--
  
  for every skill, create a var called CLASSskillbonus and add the skills to that var
+
        for every skill, create a var called CLASSskillbonus and add the skills to that var
  
-->{{#arraymap:{{{%%% single skill bonus}}}|;|@@@|{{#if:{{#varexists:{{#explode:@@@|,|0}}skillbonus}}||{{#vardefine:{{#explode:@@@|,|0}}skillbonus|{{#if: {{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#explode:@@@|,|0}}:}}}}{{#vardefine:{{#explode:@@@|,|0}}skillbonus|{{#var:{{#explode:@@@|,|0}}skillbonus}}<br><!-- add skill name to string -->{{#ifexist: {{#switch:{{#sub:{{#explode:@@@|,|0}}|-3}}
+
-->{{#arraymap:{{{%%% single skill bonus}}}|;|@@@|{{#if:{{#varexists:{{#explode:@@@|,|0}}skillbonus}}||{{#vardefine:{{#explode:@@@|,|0}}skillbonus|{{#if: {{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#explode:@@@|,|0}}:}}}}{{#vardefine:{{#explode:@@@|,|0}}skillbonus|{{#var:{{#explode:@@@|,|0}}skillbonus}}<br><!-- add skill name to string -->{{#ifexist: <!-- check if there is a page with gender suffix -->{{#switch:{{#sub:{{#explode:@@@|,|0}}|-3}}
 
   | (M) = {{#explode:@@@|,|1}} (Male)
 
   | (M) = {{#explode:@@@|,|1}} (Male)
 
   | (F) = {{#explode:@@@|,|1}} (Female)
 
   | (F) = {{#explode:@@@|,|1}} (Female)
Line 33: Line 53:
 
   | (F) = [[{{#explode:@@@|,|1}} (Female)|{{#explode:@@@|,|1}}]]
 
   | (F) = [[{{#explode:@@@|,|1}} (Female)|{{#explode:@@@|,|1}}]]
 
   }}
 
   }}
| [[{{#explode:@@@|,|1}}]]}} Skill Lvl +{{#explode:@@@|,|2}} <!-- end skill name -->}}<!-- set property -->
+
| [[{{#explode:@@@|,|1}}]]}} Skill Lvl +{{#explode:@@@|,|2}} <!-- end skill name -->}}
 
|}}<!--
 
|}}<!--
  
  for every skill, check if CLASSskillbonus var exists; if yes print it and empty the string, otherwise do nothing
+
        for every skill, check if CLASSskillbonus var exists; if yes print it and empty the var, otherwise do nothing
  
 
-->{{#arraymap:{{{%%% single skill bonus|}}}|;|@@@|{{#if:{{#var:{{#explode:@@@|,|0}}skillbonus}}|{{#var:{{#explode:@@@|,|0}}skillbonus}}{{#vardefine:{{#explode:@@@|,|0}}skillbonus|}}|<!-- do nothing -->}}|}}
 
-->{{#arraymap:{{{%%% single skill bonus|}}}|;|@@@|{{#if:{{#var:{{#explode:@@@|,|0}}skillbonus}}|{{#var:{{#explode:@@@|,|0}}skillbonus}}{{#vardefine:{{#explode:@@@|,|0}}skillbonus|}}|<!-- do nothing -->}}|}}
 
|}}{{#if:{{{%%% all skill bonus|}}}|{{#if: {{#var:br}}|<br><br>|{{#vardefine:br|1}}}}{{#arraymap:{{{%%% all skill bonus|}}}|;|@@@|{{#explode:@@@|,|0}} Level {{#explode:@@@|,|1}}{{#ifexpr:{{#explode:@@@|,|1}}={{#explode:@@@|,|2}}||-{{#explode:@@@|,|2}}}} All Skill Lv +{{#explode:@@@|,|3}} (Special Skills excluded)|<br>}}<br>The skill level increases based on the initial skill level. There are no increases for skills that are mastered at Level 1.
 
|}}{{#if:{{{%%% all skill bonus|}}}|{{#if: {{#var:br}}|<br><br>|{{#vardefine:br|1}}}}{{#arraymap:{{{%%% all skill bonus|}}}|;|@@@|{{#explode:@@@|,|0}} Level {{#explode:@@@|,|1}}{{#ifexpr:{{#explode:@@@|,|1}}={{#explode:@@@|,|2}}||-{{#explode:@@@|,|2}}}} All Skill Lv +{{#explode:@@@|,|3}} (Special Skills excluded)|<br>}}<br>The skill level increases based on the initial skill level. There are no increases for skills that are mastered at Level 1.
|}}{{#if:{{{%%% aura|}}}|{{#if: {{#var:br}}|<br><br>|{{#vardefine:br|1}}}}{{{%%% aura}}}
+
|}}
|}}{{#if:{{{%%% description|}}}|{{#if: {{#var:br}}|<br><br>|{{#vardefine:br|1}}}}{{{%%% description}}}
+
}}<!--
|}}<!--  
+
 
 +
    print the stuff on the page
 +
 
 +
-->{{#vardefine:br|}}
 +
<div class="compact">
 +
{{#if:{{#var:base stats}}|{{#if: {{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:base stats}}
 +
}}<!--{{#if:{{{%%% inflict element|}}}|{{#if: {{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#arraymap:{{{%%% inflict element|}}}|,|@@@|{{#switch: {{lc:@@@}}
 +
| fire | water | light | shadow = Inflict {{ucfirst:{{lc:@@@}}}} Damage
 +
| #default = Inflict Unknown Elemental Damage
 +
}}|<br>}}
 +
|}}-->{{#if:{{#var:stat bonuses}}|{{#if: {{#var:br}}|<br>|{{#vardefine:br|1}}}}{{#var:stat bonuses}}
 +
}}{{#if:{{#var:skill bonuses|}}|{{#if: {{#var:br}}|<br><br>|{{#vardefine:br|1}}}}{{#var:skill bonuses|}}
 +
|}}{{#if:{{{%%% description|}}}|{{#if: {{#var:br}}|<br><br>|{{#vardefine:br|1}}}}
 +
{{{%%% description}}}<!-- dfoplayer. disable replace due to 1000 chararacter limit{{#replace:{{{%%% description}}}|*|&#42;}} -->
 +
|}}</div><!--  
  
 
   end of effect listing; create subobject
 
   end of effect listing; create subobject
Line 53: Line 87:
 
| Has skill level bonus = {{#arraymap:{{{%%% single skill bonus|}}}|;|@@@|{{#explode:@@@|,|0}};{{#explode:@@@|,|1}};{{#explode:@@@|,|2}}|###}}|+sep=###
 
| Has skill level bonus = {{#arraymap:{{{%%% single skill bonus|}}}|;|@@@|{{#explode:@@@|,|0}};{{#explode:@@@|,|1}};{{#explode:@@@|,|2}}|###}}|+sep=###
 
| Has skill range level bonus = {{#arraymap:{{{%%% all skill bonus|}}}|;|@@@|{{#explode:@@@|,|0}};{{#explode:@@@|,|1}};{{#explode:@@@|,|2}};{{#explode:@@@|,|3}}|###}}|+sep=###
 
| Has skill range level bonus = {{#arraymap:{{{%%% all skill bonus|}}}|;|@@@|{{#explode:@@@|,|0}};{{#explode:@@@|,|1}};{{#explode:@@@|,|2}};{{#explode:@@@|,|3}}|###}}|+sep=###
| Has aura effect = {{{%%% aura|}}}
+
| Has aura effect = {{#switch:{{{aura|}}}|y|yes=true}}
 
| Has effect description = {{{%%% description|}}}
 
| Has effect description = {{{%%% description|}}}
 +
| Has preformatted base stats text={{#var:base stats}}
 +
| Has preformatted shortened base stats text={{#var:shortened base stats}}
 +
| Has preformatted stat bonuses text={{#var:stat bonuses}}
 +
| Has preformatted skill bonuses text={{#var:skill bonuses}}
 
}}<!--
 
}}<!--
  
Line 63: Line 101:
 
}}<!-- end if checking for NAMESPACE -->
 
}}<!-- end if checking for NAMESPACE -->
 
}}<!-- end of [%%%] -->
 
}}<!-- end of [%%%] -->
|}}<!-- end of arraymap -->
+
|}}<!-- end of arraymap --><!--
 
 
<h2> Equipment </h2>
 
 
 
{{Equipment list|set={{PAGENAME}}}}<!--
 
  
 
auto categorization
 
auto categorization
Line 101: Line 135:
 
| 1 exorcism =  
 
| 1 exorcism =  
 
| 1 inflict element =  
 
| 1 inflict element =  
| 1 hp =  
+
| 1 hp maximum =  
| 1 mp =  
+
| 1 mp maximum =  
 
| 1 hp recovery =  
 
| 1 hp recovery =  
 
| 1 mp recovery =  
 
| 1 mp recovery =  
Line 108: Line 142:
 
| 1 movement speed =  
 
| 1 movement speed =  
 
| 1 casting speed =  
 
| 1 casting speed =  
| 1 all elemental resist =  
+
| 1 all elemental resistances =  
 
| 1 fire resist =  
 
| 1 fire resist =  
 
| 1 water resist =  
 
| 1 water resist =  
Line 119: Line 153:
 
| 1 shadow damage =  
 
| 1 shadow damage =  
 
| 1 evasion rate =  
 
| 1 evasion rate =  
| 1 weight limit =  
+
| 1 inventory weight limit =  
 
| 1 hit recovery =  
 
| 1 hit recovery =  
 
| 1 immobility =  
 
| 1 immobility =  
 
| 1 jump strength =  
 
| 1 jump strength =  
| 1 physical crit =  
+
| 1 physical critical chance =  
| 1 magical crit =  
+
| 1 magical critical chance =  
 
| 1 hit rate =  
 
| 1 hit rate =  
 
| 1 town movement speed =  
 
| 1 town movement speed =  
| 1 poison dmg =  
+
| 1 poison damage =  
 
| 1 poison level =  
 
| 1 poison level =  
 
| 1 poison tolerance =  
 
| 1 poison tolerance =  
 
| 1 poison duration =  
 
| 1 poison duration =  
| 1 burn dmg =  
+
| 1 burn damage =  
 
| 1 burn level =  
 
| 1 burn level =  
 
| 1 burn tolerance =  
 
| 1 burn tolerance =  
 
| 1 burn duration =  
 
| 1 burn duration =  
| 1 bleeding dmg =  
+
| 1 bleeding damage =  
 
| 1 bleeding level =  
 
| 1 bleeding level =  
 
| 1 bleeding tolerance =  
 
| 1 bleeding tolerance =  
 
| 1 bleeding duration =  
 
| 1 bleeding duration =  
| 1 electrocution dmg =  
+
| 1 electrocution damage =  
 
| 1 electrocution level =  
 
| 1 electrocution level =  
 
| 1 electrocution tolerance =  
 
| 1 electrocution tolerance =  
Line 168: Line 202:
 
| 1 curse tolerance =  
 
| 1 curse tolerance =  
 
| 1 curse duration =  
 
| 1 curse duration =  
| 1 all abnormal resist =  
+
| 1 all abnormal status resist =  
 
| 1 single skill bonus =  
 
| 1 single skill bonus =  
 
| 1 all skill bonus =  
 
| 1 all skill bonus =  
Line 174: Line 208:
 
| 1 aura =  
 
| 1 aura =  
 
| 1 description =  
 
| 1 description =  
| 2 physical power =  
+
| 2 weapon physical attack =  
| 2 magical power =  
+
| 2 weapon magical attack =  
 
| ...
 
| ...
 
| 11 description =  
 
| 11 description =  
Line 185: Line 219:
  
 
; name : Required. Name of the set. Defaults to the name of the base article (<code><nowiki>{{PAGENAME}}</nowiki></code>).
 
; name : Required. Name of the set. Defaults to the name of the base article (<code><nowiki>{{PAGENAME}}</nowiki></code>).
; X weapon physical attack  .. all abnormal resist : Stat bonuses as numbers. Units such as % or per Min are to be omitted. For '''X inflict element''', separate multiple with a comma. X is the required number of set pieces for the bonus to apply.
+
; X weapon physical attack  .. all abnormal status resist : Stat bonuses as numbers. Units such as % or per Min are to be omitted. For '''X inflict element''', separate multiple with a comma. X is the required number of set pieces for the bonus to apply.
 
; X single skill bonus : Bonus levels given to skills when equipped with the item. Expected format is <code>class(gender), skill name, skill level bonus</code>. Gender has to be included even for classes that do not have gender variants. For common skills, use ''Common'' for <code>class(gender)</code>. Separate multiple with semicolon. X is the required number of set pieces for the bonus to apply.
 
; X single skill bonus : Bonus levels given to skills when equipped with the item. Expected format is <code>class(gender), skill name, skill level bonus</code>. Gender has to be included even for classes that do not have gender variants. For common skills, use ''Common'' for <code>class(gender)</code>. Separate multiple with semicolon. X is the required number of set pieces for the bonus to apply.
 
; X all skill bonus : Bonus levels given to all skills of a class within a level range when equipped with the item. Expected format is <code>class, min level, max level, skill level bonus</code>. Separate multiple with semicolon. X is the required number of set pieces for the bonus to apply.
 
; X all skill bonus : Bonus levels given to all skills of a class within a level range when equipped with the item. Expected format is <code>class, min level, max level, skill level bonus</code>. Separate multiple with semicolon. X is the required number of set pieces for the bonus to apply.
 
; X skill alteration : Changes to a skill that is not a level change. Expected format is <code>class(gender), skill name</code>. Gender has to be included even for classes that do not have gender variants. For common skills, use ''Common'' for <code>class(gender)</code>. Separate multiple with semicolon. X is the required number of set pieces for the change to take effect.
 
; X skill alteration : Changes to a skill that is not a level change. Expected format is <code>class(gender), skill name</code>. Gender has to be included even for classes that do not have gender variants. For common skills, use ''Common'' for <code>class(gender)</code>. Separate multiple with semicolon. X is the required number of set pieces for the change to take effect.
; X aura : Aura that is created when the set bonus takes effect. X is the required number of set pieces for the aura to be created.
+
; X aura : Set to ''y'' if the piece of equipment has an aura that is created in a radius around the user when equipped. X is the required number of set pieces for the aura to be created.
 
; X description : Effect description of the set bonus. All remaining effects the set bonus has. X is the required number of set pieces for the bonus to apply.
 
; X description : Effect description of the set bonus. All remaining effects the set bonus has. X is the required number of set pieces for the bonus to apply.
 
; categorize : Set to ''n'' to disable auto-categorization. Defaults to ''y''.
 
; categorize : Set to ''n'' to disable auto-categorization. Defaults to ''y''.

Latest revision as of 08:00, 20 December 2021

Description

This templates displays all bonuses a set has and lists equipment that is part of the set.

Every set bonus creates a subobject with the following properties:

  • Is set effect of set
  • Has required number of set pieces
  • As well as the appropriate stat properties such as Has strength.

Usage

{{Set information
| name = 
| 1 weapon physical attack = 
| 1 weapon magical attack = 
| 1 independent attack = 
| 1 equipment physical defense = 
| 1 equipment magical defense = 
| 1 strength = 
| 1 intelligence = 
| 1 vitality = 
| 1 spirit = 
| 1 exorcism = 
| 1 inflict element = 
| 1 hp maximum = 
| 1 mp maximum = 
| 1 hp recovery = 
| 1 mp recovery = 
| 1 attack speed = 
| 1 movement speed = 
| 1 casting speed = 
| 1 all elemental resistances = 
| 1 fire resist = 
| 1 water resist = 
| 1 light resist = 
| 1 shadow resist = 
| 1 all elemental damage = 
| 1 fire damage = 
| 1 water damage = 
| 1 light damage = 
| 1 shadow damage = 
| 1 evasion rate = 
| 1 inventory weight limit = 
| 1 hit recovery = 
| 1 immobility = 
| 1 jump strength = 
| 1 physical critical chance = 
| 1 magical critical chance = 
| 1 hit rate = 
| 1 town movement speed = 
| 1 poison damage = 
| 1 poison level = 
| 1 poison tolerance = 
| 1 poison duration = 
| 1 burn damage = 
| 1 burn level = 
| 1 burn tolerance = 
| 1 burn duration = 
| 1 bleeding damage = 
| 1 bleeding level = 
| 1 bleeding tolerance = 
| 1 bleeding duration = 
| 1 electrocution damage = 
| 1 electrocution level = 
| 1 electrocution tolerance = 
| 1 electrocution duration = 
| 1 blind level = 
| 1 blind tolerance = 
| 1 blind duration = 
| 1 frozen level = 
| 1 frozen tolerance = 
| 1 frozen duration = 
| 1 slow down level = 
| 1 slow down tolerance = 
| 1 slow down duration = 
| 1 immobility level = 
| 1 immobility tolerance = 
| 1 immobility duration = 
| 1 stone curse dmg = 
| 1 stone curse level = 
| 1 stone curse tolerance = 
| 1 stone curse duration = 
| 1 stun level = 
| 1 stun tolerance = 
| 1 stun duration = 
| 1 confuse level = 
| 1 confuse tolerance = 
| 1 confuse duration = 
| 1 curse level = 
| 1 curse tolerance = 
| 1 curse duration = 
| 1 all abnormal status resist = 
| 1 single skill bonus = 
| 1 all skill bonus = 
| 1 skill alteration = 
| 1 aura = 
| 1 description = 
| 2 weapon physical attack = 
| 2 weapon magical attack = 
| ...
| 11 description = 
| categorize = 
}}

Parameters

All parameters are optional unless stated otherwise.

name 
Required. Name of the set. Defaults to the name of the base article ({{PAGENAME}}).
X weapon physical attack .. all abnormal status resist 
Stat bonuses as numbers. Units such as % or per Min are to be omitted. For X inflict element, separate multiple with a comma. X is the required number of set pieces for the bonus to apply.
X single skill bonus 
Bonus levels given to skills when equipped with the item. Expected format is class(gender), skill name, skill level bonus. Gender has to be included even for classes that do not have gender variants. For common skills, use Common for class(gender). Separate multiple with semicolon. X is the required number of set pieces for the bonus to apply.
X all skill bonus 
Bonus levels given to all skills of a class within a level range when equipped with the item. Expected format is class, min level, max level, skill level bonus. Separate multiple with semicolon. X is the required number of set pieces for the bonus to apply.
X skill alteration 
Changes to a skill that is not a level change. Expected format is class(gender), skill name. Gender has to be included even for classes that do not have gender variants. For common skills, use Common for class(gender). Separate multiple with semicolon. X is the required number of set pieces for the change to take effect.
X aura 
Set to y if the piece of equipment has an aura that is created in a radius around the user when equipped. X is the required number of set pieces for the aura to be created.
X description 
Effect description of the set bonus. All remaining effects the set bonus has. X is the required number of set pieces for the bonus to apply.
categorize 
Set to n to disable auto-categorization. Defaults to y.

Examples

{{Set information
| name = Okeanos's Blessing Set
| 3 strength = 100
| 3 intelligence = 100
| 3 vitality = 100
| 3 spirit = 100
| 6 attack speed = 10
| 6 movement speed = 10
| 6 casting speed = 15
| 9 physical critical chance = 5
| 9 magical critical chance = 5
| 9 single skill bonus = Common, Leap, 3
| 9 description = [9]Set effect description!
}}

Set Effects

[3]

Strength +100
Intelligence +100
Vitality +100
Spirit +100

[6]

Attack Speed +10 %
Movement Speed +10 %
Casting Speed +15 %

[9]

Physical Critical Chance +5 %
Magic Critical Chance +5 %

Common:
Leap Skill Lvl + 3

[9]Set effect description!