From Dark and Darker Wiki

(Automated edit: HF54-1)
(Automated edit: Luck potion data in utility data)
Line 2,466: Line 2,466:
|all=rarity
|all=rarity
}}
}}
|all=DrinkPotionActivateState
|luck02={{#switch:{{lc:{{{7|}}}}}
|rarity={{#switch:{{lc:{{{8|}}}}}
|global={{#switch:{{lc:{{{9|}}}}}
|luck=20
|all=Luck
}}
|3={{#switch:{{lc:{{{9|}}}}}
|probability=45%
|all=Probability
}}
|all=Global,3
}}
|all=rarity
}}
|luck05={{#switch:{{lc:{{{7|}}}}}
|rarity={{#switch:{{lc:{{{8|}}}}}
|global={{#switch:{{lc:{{{9|}}}}}
|luck=50
|all=Luck
}}
|3={{#switch:{{lc:{{{9|}}}}}
|probability=35%
|all=Probability
}}
|5={{#switch:{{lc:{{{9|}}}}}
|probability=33.33%
|all=Probability
}}
|all=Global,3,5
}}
|all=rarity
}}
|luck08={{#switch:{{lc:{{{7|}}}}}
|rarity={{#switch:{{lc:{{{8|}}}}}
|global={{#switch:{{lc:{{{9|}}}}}
|luck=80
|all=Luck
}}
|3={{#switch:{{lc:{{{9|}}}}}
|probability=20%
|all=Probability
}}
|all=Global,3
}}
|all=rarity
}}
|luck10={{#switch:{{lc:{{{7|}}}}}
|rarity={{#switch:{{lc:{{{8|}}}}}
|global={{#switch:{{lc:{{{9|}}}}}
|luck=100
|all=Luck
}}
|5={{#switch:{{lc:{{{9|}}}}}
|probability=33.33%
|all=Probability
}}
|all=Global,5
}}
|all=rarity
}}
|luck15={{#switch:{{lc:{{{7|}}}}}
|rarity={{#switch:{{lc:{{{8|}}}}}
|global={{#switch:{{lc:{{{9|}}}}}
|luck=150
|all=Luck
}}
|5={{#switch:{{lc:{{{9|}}}}}
|probability=33.33%
|all=Probability
}}
|all=Global,5
}}
|all=rarity
}}
|all=DrinkPotionActivateState,Luck02,Luck05,Luck08,Luck10,Luck15
}}
}}
|all=effects
}}
|={{#switch:{{lc:{{{5|}}}}}
|movementmultiplier=75%
|movementmultiplier=75%
|all=movementmultiplier
|all=effects,movementmultiplier
}}
}}
|all=Self,
|all=Self
}}
}}
|all=Other
|all=Other

Revision as of 07:07, 25 June 2024


Usage

{{Utility_Data|<variable1>|<variable2>|...}}


Variables

  • <item_name>
    • stats
      • <stat_name>
      • allstats
    • abilities
      • <ability_type>
        • <ability_name>
          • <ability_attribute>
    • types
      • <type>
    • hitbox
      • height
      • width
      • height
    • rarities
    • handtype
    • slottype
    • artifactname
    • artifactpower
    • invslots
    • invwidth
    • invheight
    • hitslow
    • hitslowduration
    • flavortext
    • maxammocount
    • maxcount
    • maxcontentscount
    • reloadtime
    • wearingdelaytime
    • equiptime
    • unequiptime
    • ap
      • <rarity>
    • xp
      • <rarity>
    • gearscore
      • <rarity>
    • sellprices
      • <rarity>
    • initialspeed
    • damagefalloff
    • piercecount
    • classes
    • impactresistance
    • interactiontime
    • interactiontimescaling


Global

All attributes that are shared between all other attributes in the same layer are moved to a global layer

For example, if all |movementmultiplier's under Abilities|Primary| are the same, they will be moved to Abilities|Primary|global

See Example 2 for more information


All

All sub-layers can also call |all for a list of all unique attributes For example,

{{Utility_Data|all}}

will output a list of all items

For example,

{{Utility_Data|<itemname>|all}}

will output a list of all attributes of a particular

See example 1 and 6 for more information


Examples

Note, some variables may not be applicable to all item categories. The below examples are for the Arming Sword, which only exists in Weapon_Data. Other item categories, like Misc_Data, may have different variables, and obviously don't have others, like abilities

Example 1

All stats of the Arming Sword

{{Utility_Data|Arming Sword|stats|all}}

Outputs


Example 2

All shared attributes for Primary attacks of Arming Sword

{{Utility_Data|Arming Sword|abilities|Primary|global}}

Outputs


Example 3

Damagefalloff widget of Longbow

{{Utility_Data|Longbow|damagefalloff}}

Outputs


Example 4

All non-artifact rarities of the Arming Sword

{{Utility_Data|Arming Sword|rarities}}

Outputs


Example 5

Invslots size image of Arming Sword

{{Utility_Data|Arming Sword|invslots}}

Outputs


Example 6

All attributes of primary abilities of Arming Sword

{{Utility_Data|Arming Sword|abilities|Primary|all}}

Outputs