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
        {{#forargs: {{#var:prefix}}dmg
            | key
        | key
            | value
        | value
            | <nowiki />
        | <nowiki />
             {{#ifexpr: {{#var: loop_count}} >= 3|
              
                {{#vardefine: suffix    |_pvp}}
        {{#vardefine: @@@@{{#var:suffix}}  | {{#expr: {{#var:@@@@{{#var:suffix}} }} + {{#var:{{#var:prefix}}dmg{{#var:key}} }} * {{#var:{{#ifeq:@@@@|avg_damage|avg_}}hits{{#var:key}} }} }} }}
                {{#vardefine: prefix    |pvp_}}
        {{#vardefine: loop_count| {{#var: loop_count}} + 1 }}
                {{#vardefine: number    |1}}
            }}
            {{#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 }}
         }}
         }}
     }}
     }}

Revision as of 14:33, 17 March 2022

Information: If you want to test this template, please use Sandbox.
The documentation does not exist, you can click here to create.