From Dark and Darker Wiki
m (Fixed example.) |
m (uniques>artifacts) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 148: | Line 148: | ||
-->{{#if:{{#var:is_shield}}<!-- | -->{{#if:{{#var:is_shield}}<!-- | ||
-->|<td><!-- | -->|<td><!-- | ||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|armor rating 0}} }}<!-- | -->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|armor rating}} }}<!-- | ||
-->|{{#var:weapon_stat}}<!-- | |||
-->|{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|armor rating 0}} }}<!-- | |||
-->|<span class="colorrarity0">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|armor rating 1}} }}<!-- | |||
-->|<span class="colorrarity1">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|armor rating 2}} }}<!-- | |||
-->|<span class="colorrarity2">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|armor rating 3}} }}<!-- | |||
-->|<span class="colorrarity3">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|armor rating 4}} }}<!-- | |||
-->|<span class="colorrarity4">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|armor rating 5}} }}<!-- | |||
-->|<span class="colorrarity5">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|armor rating 6}} }}<!-- | |||
-->|<span class="colorrarity6">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|armor rating 7}} }}<!-- | |||
-->|<span class="colorrarity7">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:artifactname}}|stats|armor rating}} }}<!-- | |||
-->|<span class="colorrarity7">{{#var:weapon_stat}}</span>}} }}</td>}}<!-- | |||
Stats | Stats | ||
Line 375: | Line 377: | ||
Slowdown On Hit | Slowdown On Hit | ||
-->{{#arraydefine:all_attacks|{{Weapon Data|{{#var:current}}|Abilities|Primary|all}} }}{{#arraydefine:global|Global}}{{#arraydiff:all_attacks|all_attacks|global}}<!-- | -->{{#arraydefine:all_attacks|{{Weapon Data|{{#var:current}}|Abilities|Primary|all}} }}{{#arraydefine:global|Global}}{{#arraydiff:all_attacks|all_attacks|global}}<!-- | ||
-->{{#vardefine:global_hitslow|{{Weapon Data|{{#var:current}}|Abilities|Primary|Global|Effects| | -->{{#vardefine:global_hitslow|{{Weapon Data|{{#var:current}}|Abilities|Primary|Global|Effects|HitSlow|Rarity|Global|Move Speed Bonus}} }}<!-- | ||
-->{{#vardefine:global_hitslow_duration|{{Weapon Data|{{#var:current}}|Abilities|Primary|Global|Effects| | -->{{#vardefine:global_hitslow_duration|{{Weapon Data|{{#var:current}}|Abilities|Primary|Global|Effects|HitSlow|Rarity|Global|Duration}} }}<!-- | ||
-->{{#if:{{#var:is_shield}}<!-- | -->{{#if:{{#var:is_shield}}<!-- | ||
Line 385: | Line 387: | ||
-->|{{#vardefine:current_attack|{{#arrayindex:all_attacks|{{#var:i}} }} }}<!-- | -->|{{#vardefine:current_attack|{{#arrayindex:all_attacks|{{#var:i}} }} }}<!-- | ||
-->{{#ifeq:{{#var:i}}|0|<span style="color:#eee8;">Hitslow</span><br>|/}}<!-- | -->{{#ifeq:{{#var:i}}|0|<span style="color:#eee8;">Hitslow</span><br>|/}}<!-- | ||
-->{{Weapon Data|{{#var:current}}|Abilities|Primary|{{#var:current_attack}}|Effects| | -->{{Weapon Data|{{#var:current}}|Abilities|Primary|{{#var:current_attack}}|Effects|HitSlow|Rarity|Global|Move Speed Bonus}} }} }}<!-- | ||
-->{{#if:{{#var:global_hitslow_duration}}<!-- | -->{{#if:{{#var:global_hitslow_duration}}<!-- | ||
-->| for {{#var:global_hitslow_duration}}s<!-- | -->| for {{#var:global_hitslow_duration}}s<!-- | ||
Line 391: | Line 393: | ||
-->|{{#vardefine:current_attack|{{#arrayindex:all_attacks|{{#var:i}} }} }}<!-- | -->|{{#vardefine:current_attack|{{#arrayindex:all_attacks|{{#var:i}} }} }}<!-- | ||
-->{{#ifeq:{{#var:i}}|0| for |/}}<!-- | -->{{#ifeq:{{#var:i}}|0| for |/}}<!-- | ||
-->{{Weapon Data|{{#var:current}}|Abilities|Primary|{{#var:current_attack}}|Effects| | -->{{Weapon Data|{{#var:current}}|Abilities|Primary|{{#var:current_attack}}|Effects|HitSlow|Rarity|Global|Duration}}s}} }}</td>}}<!-- | ||
Max Ammo | Max Ammo | ||
Line 404: | Line 406: | ||
--><td><!-- | --><td><!-- | ||
-->{{#if:{{#var:artifactname}}<!-- | -->{{#if:{{#var:artifactname}}<!-- | ||
-->|[[ | -->|[[Artifacts|{{#var:artifactname}}]]<!-- | ||
-->|None}}</td></tr>}} }}</table><!-- | -->|None}}</td></tr>}} }}</table><!-- | ||
Line 422: | Line 424: | ||
<td style="padding: 20px 30px;"> | <td style="padding: 20px 30px;"> | ||
{{GenerateWeaponTable|Craftable|Dagger}}</td></tr> | {{GenerateWeaponTable|Craftable|Dagger}}</td></tr> | ||
<tr> | |||
<td style="padding: 20px 30px;"> | |||
<pre>{{GenerateWeaponTable|Craftable|Shield}}</pre></td> | |||
<td style="padding: 20px 30px;"> | |||
{{GenerateWeaponTable|Craftable|Shield|type=Shield}}</td></tr> | |||
<tr> | <tr> | ||
<td style="padding: 20px 30px;"> | <td style="padding: 20px 30px;"> |
Latest revision as of 14:54, 6 September 2024
Parameters:
- 1={Craftable,Uncraftable,Both}
- 2={Shield,Sword,Axe,Polearm,Unarmed,Mace,Bow,Dagger,MagicStuff,Staff,Crossbow,Throwable,LightSource}
- type={Bow,Crossbow,Shield} (optional)
Code | Preview | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{GenerateWeaponTable|Craftable|Dagger}} |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{GenerateWeaponTable|Craftable|Shield}} |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{GenerateWeaponTable|Uncraftable|Bow|type=Bow}} |
|