Information: If you want to test this template, please use Sandbox.
The documentation does not exist, you can click here to create.
Template:RitsuTest: Difference between revisions
From Elwiki
No edit summary |
No edit summary |
||
Line 41: | Line 41: | ||
{{#vardefine: loop_count|1}} | {{#vardefine: loop_count|1}} | ||
{{#arrayprint:arr_useful||@@@@|<nowiki/> | {{#arrayprint:arr_useful||@@@@|<nowiki/> | ||
{{#ifexpr: {{#var: loop_count}} >= 3| | |||
{{#vardefine: suffix |_pvp}} | |||
{{#vardefine: prefix |pvp_}} | |||
{{#vardefine: number |1}} | |||
}} | |||
{{#vardefine: @@@@{{#var:suffix}} |0}} | {{#vardefine: @@@@{{#var:suffix}} |0}} | ||
{{#forargs: {{#var:prefix}}dmg | |||
| key | |||
| value | |||
| <nowiki /> | |||
{{#vardefine: @@@@{{#var:suffix}} | {{#expr: {{#var:@@@@{{#var:suffix}} }} + {{#var:{{#var:prefix}}dmg{{#var:key}} }} * {{#var:{{#ifeq:@@@@|avg_damage|avg_}}hits{{#var:key}} }} }} }} | |||
{{#vardefine: loop_count| {{#var: loop_count}} + 1 }} | |||
}} | }} | ||
}} | }} |