From Dark and Darker Wiki
|  (Updated calls for new Weapon Data structure.) | m (Fixed parameter default value.) | ||
| Line 6: | Line 6: | ||
| 	-->List of slows for {{{1|{{PAGENAME}}}}}:<br><!-- | 	-->List of slows for {{{1|{{PAGENAME}}}}}:<br><!-- | ||
| 	--><div style="display:inline-block; border-left:20px solid #0000;"><!-- | 	--><div style="display:inline-block; border-left:20px solid #0000;"><!-- | ||
| 		-->{{#arraydefine:all_abilities|{{Weapon Data|{{{1}}}|abilities|all}} }}<!-- | 		-->{{#arraydefine:all_abilities|{{Weapon Data|{{{1|{{PAGENAME}}}}}|abilities|all}} }}<!-- | ||
| 		If the weapon has abilities, loop through them | 		If the weapon has abilities, loop through them | ||
| 		-->{{#loop:i|0|{{#arraysize:all_abilities}}<!-- | 		-->{{#loop:i|0|{{#arraysize:all_abilities}}<!-- | ||
| 			-->|{{#vardefine:ability|{{#arrayindex:all_abilities|{{#var:i}} }} }}<!-- | 			-->|{{#vardefine:ability|{{#arrayindex:all_abilities|{{#var:i}} }} }}<!-- | ||
| 			-->{{#if:  {{#vardefineecho:movespeed|{{Weapon Data|{{{1}}}|abilities|{{#var:ability}}|Global|MovementMultiplier}} }}<!-- | 			-->{{#if:  {{#vardefineecho:movespeed|{{Weapon Data|{{{1|{{PAGENAME}}}}}|abilities|{{#var:ability}}|Global|MovementMultiplier}} }}<!-- | ||
| 					-->{{#vardefineecho:preparemovespeed|{{Weapon Data|{{{1}}}|abilities|{{#var:ability}}|Global|PrepareMovementMultiplier}} }}<!-- | 					-->{{#vardefineecho:preparemovespeed|{{Weapon Data|{{{1|{{PAGENAME}}}}}|abilities|{{#var:ability}}|Global|PrepareMovementMultiplier}} }}<!-- | ||
| 				-->|<span style="color:#eee8; font-size:110%; font-weight:bold;"><!-- | 				-->|<span style="color:#eee8; font-size:110%; font-weight:bold;"><!-- | ||
| 					-->{{#ifeq:{{#var:ability}}|Other<!-- | 					-->{{#ifeq:{{#var:ability}}|Other<!-- | ||
| Line 30: | Line 30: | ||
| 				Else loop through all attacks | 				Else loop through all attacks | ||
| 				-->|{{#arraydefine:all_attacks|{{Weapon Data|{{{1}}}|abilities|{{#var:ability}}|all}} }}<!-- | 				-->|{{#arraydefine:all_attacks|{{Weapon Data|{{{1|{{PAGENAME}}}}}|abilities|{{#var:ability}}|all}} }}<!-- | ||
| 				-->{{#loop:i|0|{{#arraysize:all_attacks}}<!-- | 				-->{{#loop:i|0|{{#arraysize:all_attacks}}<!-- | ||
| 					-->|{{#vardefine:attack|{{#arrayindex:all_attacks|{{#var:i}} }} }}<!-- | 					-->|{{#vardefine:attack|{{#arrayindex:all_attacks|{{#var:i}} }} }}<!-- | ||
| 					If the attack has a movement multiplier, display it | 					If the attack has a movement multiplier, display it | ||
| 					-->{{#if:{{#vardefineecho:movespeed|{{Weapon Data|{{{1}}}|abilities|{{#var:ability}}|{{#var:attack}}|MovementMultiplier}} }}<!-- | 					-->{{#if:{{#vardefineecho:movespeed|{{Weapon Data|{{{1|{{PAGENAME}}}}}|abilities|{{#var:ability}}|{{#var:attack}}|MovementMultiplier}} }}<!-- | ||
| 							-->{{#vardefineecho:preparemovespeed|{{Weapon Data|{{{1}}}|abilities|{{#var:ability}}|{{#var:attack}}|PrepareMovementMultiplier}} }}<!-- | 							-->{{#vardefineecho:preparemovespeed|{{Weapon Data|{{{1|{{PAGENAME}}}}}|abilities|{{#var:ability}}|{{#var:attack}}|PrepareMovementMultiplier}} }}<!-- | ||
| 						-->|<span style="color:#eee8; font-size:110%; font-weight:bold;"><!-- | 						-->|<span style="color:#eee8; font-size:110%; font-weight:bold;"><!-- | ||
| 							-->{{#if:{{#pos:{{#var:ability}}|Other}}<!-- | 							-->{{#if:{{#pos:{{#var:ability}}|Other}}<!-- | ||
| Line 62: | Line 62: | ||
| 			<pre>{{ActionMoveSlow|Longsword}}</pre></td> | 			<pre>{{ActionMoveSlow|Longsword}}</pre></td> | ||
| 		<td style="padding: 20px 30px;"> | 		<td style="padding: 20px 30px;"> | ||
| 			{{ActionMoveSlow|Longsword}}</td></tr></table> | 			{{ActionMoveSlow|Longsword}}</td></tr> | ||
| 	<tr> | |||
| 		<td style="padding: 20px 30px;"> | |||
| 			<pre>{{ActionMoveSlow|War Maul}}</pre></td> | |||
| 		<td style="padding: 20px 30px;"> | |||
| 			{{ActionMoveSlow|War Maul}}</td></tr> | |||
| 	<tr> | |||
| 		<td style="padding: 20px 30px;"> | |||
| 			<pre>{{ActionMoveSlow|Rapier}}</pre></td> | |||
| 		<td style="padding: 20px 30px;"> | |||
| 			{{ActionMoveSlow|Rapier}}</td></tr></table> | |||
| </noinclude> | </noinclude> | ||
Latest revision as of 11:20, 10 April 2024
| Code | Preview | 
|---|---|
| {{ActionMoveSlow|Longsword}} | Action Movement SlowWhen 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: 50% Block Reaction Always: 97% Special Attacks Always: 70% | 
| {{ActionMoveSlow|War Maul}} | Action Movement SlowWhen a player performs certain actions, such as attacking or defending themselves, they move slower.List of slows for War Maul: Primary Attacks Mid Attack: 80% Otherwise: 45% Secondary Attacks Mid Attack: 80% Otherwise: 45% | 
| {{ActionMoveSlow|Rapier}} | Action Movement SlowWhen a player performs certain actions, such as attacking or defending themselves, they move slower.List of slows for Rapier: Primary Attacks Mid Attack: 87.5% Otherwise: 60% | 
 
						