From Dark and Darker Wiki

m (Changing Template to use calls that work with Weapon Data.)
(Updated calls for new Weapon Data structure.)
Line 1: Line 1:
<includeonly>{{#if:{{Weapon Data|{{{1|{{PAGENAME}}}}}|abilities|Primary Attack 1|movementmultiplier}}<!--
<includeonly><!--
-->{{#if: {{Weapon Data|{{{1|{{PAGENAME}}}}}|abilities|Primary|Attack 1|movementmultiplier}}<!--
-->{{Weapon Data|{{{1|{{PAGENAME}}}}}|abilities|Primary|Global|movementmultiplier}}<!--
-->|<h2>Action Movement Slow</h2><!--
-->|<h2>Action Movement Slow</h2><!--
-->When a player performs certain actions, such as attacking or defending themselves, they move slower.<br><!--
-->When a player performs certain actions, such as attacking or defending themselves, they move slower.<br><!--
-->List of slows for {{{1|{{PAGENAME}}}}}:<br><!--
-->List of slows for {{{1|{{PAGENAME}}}}}:<br><!--
-->{{#arraydefine:abilities|{{Weapon Data|{{{1|{{PAGENAME}}}}}|abilities|All}} }}{{
--><div style="display:inline-block; border-left:20px solid #0000;"><!--
#loop: i
-->{{#arraydefine:all_abilities|{{Weapon Data|{{{1}}}|abilities|all}} }}<!--
|0
If the weapon has abilities, loop through them
|{{#arraysize:abilities}}
-->{{#loop:i|0|{{#arraysize:all_abilities}}<!--
|{{#vardefine:attack|{{#arrayindex:abilities|{{#var:i}} }} }}<!--
-->|{{#vardefine:ability|{{#arrayindex:all_abilities|{{#var:i}} }} }}<!--
--><span style="color:#eee8;">{{#var:attack}}:</span>&nbsp;{{Weapon Data|{{{1|{{PAGENAME}}}}}|abilities|{{#var:attack}}|movementmultiplier}}<br>
-->{{#if:  {{#vardefineecho:movespeed|{{Weapon Data|{{{1}}}|abilities|{{#var:ability}}|Global|MovementMultiplier}} }}<!--
}} }}</includeonly><noinclude><table class="wikitable">
-->{{#vardefineecho:preparemovespeed|{{Weapon Data|{{{1}}}|abilities|{{#var:ability}}|Global|PrepareMovementMultiplier}} }}<!--
-->|<span style="color:#eee8; font-size:110%; font-weight:bold;"><!--
-->{{#ifeq:{{#var:ability}}|Other<!--
-->|{{#var:ability}} Actions<!--
-->|{{#var:ability}} Attacks}}<br></span><!--
--><div style="display:inline-block; border-left:20px solid #0000;"><!--
-->{{#if:{{#var:preparemovespeed}}<!--
-->|<span style="color:#eee8;"><!--
-->Mid Attack: </span><!--
-->{{#var:preparemovespeed}}<br><!--
--><span style="color:#eee8;"><!--
-->Otherwise: </span><!--
-->{{#var:movespeed}}<!--
 
-->|<span style="color:#eee8;"><!--
-->Always: </span><!--
-->{{#var:movespeed}} }}</div><br><!--
 
Else loop through all attacks
-->|{{#arraydefine:all_attacks|{{Weapon Data|{{{1}}}|abilities|{{#var:ability}}|all}} }}<!--
-->{{#loop:i|0|{{#arraysize:all_attacks}}<!--
-->|{{#vardefine:attack|{{#arrayindex:all_attacks|{{#var:i}} }} }}<!--
If the attack has a movement multiplier, display it
-->{{#if:{{#vardefineecho:movespeed|{{Weapon Data|{{{1}}}|abilities|{{#var:ability}}|{{#var:attack}}|MovementMultiplier}} }}<!--
-->{{#vardefineecho:preparemovespeed|{{Weapon Data|{{{1}}}|abilities|{{#var:ability}}|{{#var:attack}}|PrepareMovementMultiplier}} }}<!--
-->|<span style="color:#eee8; font-size:110%; font-weight:bold;"><!--
-->{{#if:{{#pos:{{#var:ability}}|Other}}<!--
-->|{{#var:attack}}<!--
-->|{{#var:ability}} {{#var:attack}} }}<br></span><!--
--><div style="display:inline-block; border-left:20px solid #0000;"><!--
-->{{#if:{{#var:preparemovespeed}}<!--
-->|<span style="color:#eee8;"><!--
-->Mid Attack: </span><!--
-->{{#var:preparemovespeed}}<br><!--
--><span style="color:#eee8;"><!--
-->Otherwise: </span><!--
-->{{#var:movespeed}}<!--
 
-->|<span style="color:#eee8;"><!--
-->Always: </span><!--
-->{{#var:movespeed}} }}</div><br>}} }} }} }}</div>}}<!--
 
--></includeonly><noinclude>
<table class="wikitable">
<tr>
<tr>
<th>Code</th>
<th>Code</th>
<th>Preview</th>
<th>Preview</th></tr>
</tr>
<tr>
<tr>
<td style="padding: 20px 30px;">
<td style="padding: 20px 30px;">
<pre>{{ActionMoveSlow|Longsword}}</pre>
<pre>{{ActionMoveSlow|Longsword}}</pre></td>
</td>
<td style="padding: 20px 30px;">
<td style="padding: 20px 30px;">
{{ActionMoveSlow|Longsword}}
{{ActionMoveSlow|Longsword}}</td></tr></table>
</td>
</noinclude>
</tr>
</table></noinclude>

Revision as of 11:14, 10 April 2024

Code Preview
{{ActionMoveSlow|Longsword}}

Action Movement Slow

When a player performs certain actions, such as attacking or defending themselves, they move slower.
List of slows for Longsword:
Riposte
Always: 70%

Primary Attacks
Mid Attack: 82.5%
Otherwise: 65%

Block Reaction
Always: 97%

Special Attacks
Always: 70%