From Dark and Darker Wiki
(typo) |
(Added Action Time and Interaction time.) |
||
Line 14: | Line 14: | ||
Create an array that will be filtered out from the stats data cell. | Create an array that will be filtered out from the stats data cell. | ||
-->{{#arraydefine:stats_filter|Move Speed,Physical Base Weapon Damage}}<!-- | -->{{#arraydefine:stats_filter|Move Speed,Physical Base Weapon Damage}}<!-- | ||
-->{{#arraydefine:allstats|{{Utility Data|{{ | -->{{#arraydefine:allstats|{{Utility Data|{{{1|{{PAGENAME}}}}}|Stats|AllStats}} }}{{#arraydiff:allstats|allstats|stats_filter}}<!-- | ||
-->{{#arraydefine:all_abilities|{{Utility Data|{{ | -->{{#arraydefine:all_abilities|{{Utility Data|{{{1|{{PAGENAME}}}}}|Abilities|All}} }}<!-- | ||
-->{{#arraydefine:effects_filter|Scaling,Duration}}<!-- | -->{{#arraydefine:effects_filter|Scaling,Duration}}<!-- | ||
-->{{#arraydefine:ability_filter|Consume,Throw}}<!-- | -->{{#arraydefine:ability_filter|Consume,Throw}}<!-- | ||
Line 124: | Line 124: | ||
-->|{{#if:{{#var:is_throwable}}|1}}=<!-- | -->|{{#if:{{#var:is_throwable}}|1}}=<!-- | ||
-->Throw a {{lc:{{{1|{{PAGENAME}}}}} }} at the target location.}} | -->Throw a {{lc:{{{1|{{PAGENAME}}}}} }} at the target location.}} | ||
|actiontime ={{#if:{{#var:is_musicalinstrument}}{{#var:is_lightsource}}{{#var:is_throwable}}{{#var:is_mining}}{{#var:is_soulheart}}{{#var:is_healing_consumable}}{{#var:is_consumable}}<!-- | |||
-->||<!-- | |||
-->{{#vardefine:self_effects|{{Utility Data|{{{1|{{PAGENAME}}}}}|Abilities|Other|Self|Effects|All}} }}<!-- | |||
-->{{#vardefine:duration|<!-- | |||
-->{{#switch:1<!-- | |||
-->|{{#if:{{#vardefineecho:global|{{Utility Data|{{{1|{{PAGENAME}}}}}|Abilities|Other|Self|Effects|DrinkPotionActivateState|Rarity|Global|Duration}} }}|1}}=<!-- | |||
-->{{#var:global}} s (100% Scaling)<!-- | |||
-->|{{#if:{{Utility Data|{{{1|{{PAGENAME}}}}}|Abilities|Other|Self|Effects|{{#var:self_effects}}|Rarity|5|Duration}}|1}}=<!-- | |||
-->{{#loop:i|0|{{#arraysize:rarities}}<!-- | |||
-->|{{#ifeq:{{#var:i}}|0|| {{!}} }}<!-- | |||
--><span class="colorrarity{{#var:rarities}}"><!-- | |||
-->{{Utility Data|{{{1|{{PAGENAME}}}}}|Abilities|Other|Self|Effects|{{#var:self_effects}}|Rarity|{{#var:rarities}}|Duration}}</span>}} s (100% Scaling)}} }}<!-- | |||
-->{{#if:{{#var:duration}}|{{#var:duration}} }} }} | |||
|interactiontime ={{#if:{{#var:is_installable}}{{#var:is_healing_consumable}}{{#var:is_consumable}} | |||
|{{#switch:{{lc:{{{1|{{PAGENAME}}}}} }}<!-- | |||
-->|campfire kit=<!-- | |||
-->10 s (100% Scaling)<!-- | |||
-->|hunting trap=<!-- | |||
-->{{#switch:{{#var:rarities}} | |||
|1=<span class="colorrarity1">6</span> s | |||
|2=<span class="colorrarity2">5</span> s | |||
|3=<span class="colorrarity3">4</span> s | |||
|4=<span class="colorrarity4">3</span> s | |||
|5=<span class="colorrarity5">2</span> s | |||
|6=<span class="colorrarity6">1</span> s | |||
|7=<span class="colorrarity7">1</span> s}}<!-- | |||
--> (100% Scaling)<!-- | |||
-->|bandage=<!-- | |||
-->4 s (50% Scaling) | |||
-->|surgical kit=<!-- | |||
-->{{#switch:{{#var:rarities}} | |||
|1=<span class="colorrarity1">15</span> s | |||
|2=<span class="colorrarity2">13</span> s | |||
|3=<span class="colorrarity3">11</span> s | |||
|4=<span class="colorrarity4">9</span> s | |||
|5=<span class="colorrarity5">7</span> s | |||
|6=<span class="colorrarity6">5</span> s | |||
|7=<span class="colorrarity7">3</span> s}}<!-- | |||
--> (50% Scaling)}} }} | |||
|type ={{Utility Data|{{{1}}}|types|all}} | |type ={{Utility Data|{{{1}}}|types|all}} | ||
|description={{Utility Data|{{{1}}}|flavortext}} | |description={{Utility Data|{{{1}}}|flavortext}} |
Revision as of 04:47, 19 August 2024
Auto creates Utility infobox
Example
{{GenerateUtilityInfobox|Campfire Kit|1}} {{GenerateUtilityInfobox|Campfire Kit|2}} {{GenerateUtilityInfobox|Campfire Kit|3}} {{GenerateUtilityInfobox|Campfire Kit|4}} {{GenerateUtilityInfobox|Campfire Kit|5}} {{GenerateUtilityInfobox|Campfire Kit|6}} {{GenerateUtilityInfobox|Campfire Kit|7}} {{GenerateUtilityInfobox|Potion of Healing|1}} {{GenerateUtilityInfobox|Potion of Healing|2}} {{GenerateUtilityInfobox|Potion of Healing|3}} {{GenerateUtilityInfobox|Potion of Healing|4}} {{GenerateUtilityInfobox|Potion of Healing|5}} {{GenerateUtilityInfobox|Potion of Healing|6}} {{GenerateUtilityInfobox|Potion of Healing|7}} {{GenerateUtilityInfobox|Potion of Protection|1}} {{GenerateUtilityInfobox|Potion of Protection|2}} {{GenerateUtilityInfobox|Potion of Protection|3}} {{GenerateUtilityInfobox|Potion of Protection|4}} {{GenerateUtilityInfobox|Potion of Protection|5}} {{GenerateUtilityInfobox|Potion of Protection|6}} {{GenerateUtilityInfobox|Potion of Protection|7}} {{GenerateUtilityInfobox|Pickaxe|4}} {{GenerateUtilityInfobox|Lantern}}
-
Move Speed -20
-
Type:
Installable,CampfireKit
Interaction Time:
10 s (100% Scaling)
Stack Size:
1
Sell Price:
0
A crackling campfire that you can rest near and recover.
-
Move Speed -20
-
Type:
Installable,CampfireKit
Interaction Time:
10 s (100% Scaling)
Stack Size:
1
Sell Price:
5
A crackling campfire that you can rest near and recover.
-
Move Speed -20
-
Type:
Installable,CampfireKit
Interaction Time:
10 s (100% Scaling)
Stack Size:
1
Sell Price:
7
A crackling campfire that you can rest near and recover.
-
Move Speed -20
-
Type:
Installable,CampfireKit
Interaction Time:
10 s (100% Scaling)
Stack Size:
1
Sell Price:
11
A crackling campfire that you can rest near and recover.
-
Move Speed -20
-
Type:
Installable,CampfireKit
Interaction Time:
10 s (100% Scaling)
Stack Size:
1
Sell Price:
19
A crackling campfire that you can rest near and recover.
-
Move Speed -20
-
Type:
Installable,CampfireKit
Interaction Time:
10 s (100% Scaling)
Stack Size:
1
Sell Price:
30
A crackling campfire that you can rest near and recover.
-
Move Speed -20
-
Type:
Installable,CampfireKit
Interaction Time:
10 s (100% Scaling)
Stack Size:
1
Sell Price:
50
A crackling campfire that you can rest near and recover.
-
Move Speed -20
-
Creates a physical base shield that blocks 10 physical damage for 24 seconds. Damage blocked by the shield will be unaffected by Damage Reduction or limb/headshot multipliers. The shield has no scaling.
Type:
Drink
Action Time:
3 s (100% Scaling)
Stack Size:
3
Sell Price:
0
Potion that gives a temporary defensive shield around the user.
-
Move Speed -20
-
Creates a physical base shield that blocks 15 physical damage for 24 seconds. Damage blocked by the shield will be unaffected by Damage Reduction or limb/headshot multipliers. The shield has no scaling.
Type:
Drink
Action Time:
3 s (100% Scaling)
Stack Size:
3
Sell Price:
2
Potion that gives a temporary defensive shield around the user.
-
Move Speed -20
-
Creates a physical base shield that blocks 20 physical damage for 24 seconds. Damage blocked by the shield will be unaffected by Damage Reduction or limb/headshot multipliers. The shield has no scaling.
Type:
Drink
Action Time:
3 s (100% Scaling)
Stack Size:
3
Sell Price:
4
Potion that gives a temporary defensive shield around the user.
-
Move Speed -20
-
Creates a physical base shield that blocks 25 physical damage for 24 seconds. Damage blocked by the shield will be unaffected by Damage Reduction or limb/headshot multipliers. The shield has no scaling.
Type:
Drink
Action Time:
3 s (100% Scaling)
Stack Size:
3
Sell Price:
6
Potion that gives a temporary defensive shield around the user.
-
Move Speed -20
-
Creates a physical base shield that blocks 30 physical damage for 24 seconds. Damage blocked by the shield will be unaffected by Damage Reduction or limb/headshot multipliers. The shield has no scaling.
Type:
Drink
Action Time:
3 s (100% Scaling)
Stack Size:
3
Sell Price:
10
Potion that gives a temporary defensive shield around the user.
-
Move Speed -20
-
Creates a physical base shield that blocks 35 physical damage for 24 seconds. Damage blocked by the shield will be unaffected by Damage Reduction or limb/headshot multipliers. The shield has no scaling.
Type:
Drink
Action Time:
3 s (100% Scaling)
Stack Size:
3
Sell Price:
16
Potion that gives a temporary defensive shield around the user.
-
Move Speed -20
-
Creates a physical base shield that blocks 40 physical damage for 24 seconds. Damage blocked by the shield will be unaffected by Damage Reduction or limb/headshot multipliers. The shield has no scaling.
Type:
Drink
Action Time:
3 s (100% Scaling)
Stack Size:
3
Sell Price:
27
Potion that gives a temporary defensive shield around the user.
-
Physical Base Weapon Damage 30~31
-
-
Regular Interaction Speed 10%
-
-
Move Speed -45
-
Enables the player to interact with mining nodes to produce ore.
Type:
Mining
Stack Size:
1
Sell Price:
6
Item Achieve:
12
A trusty iron pickaxe that can chip away at most ore.
Opens the Goblin Stone Door. This door can only be found in Goblin Caves, in the Goblin Rooms module.
Type:
Consumable
Stack Size:
1
Item Achieve:
10
A beautiful jewel that shines mysteriously. There are elaborate parts that seem to fit somewhere.