Difference between revisions of "User:Sirrob01"
m (→DPL Fun) |
m (→DPL Fun) |
||
Line 20: | Line 20: | ||
<!--1st x2 DPLs retrieve Campaign Info --> | <!--1st x2 DPLs retrieve Campaign Info --> | ||
<!---------------------------------------> | <!---------------------------------------> | ||
− | |||
{{#arraydefine:campall|{{#sub:{{#dpl: | {{#arraydefine:campall|{{#sub:{{#dpl: | ||
|category =Campaign | |category =Campaign | ||
Line 37: | Line 36: | ||
|format=,$ | |format=,$ | ||
}}|1}}|$}} | }}|1}}|$}} | ||
− | |||
<!-------------------------------------> | <!-------------------------------------> | ||
<!--2nd x2 DPLs retrieve Battle Info --> | <!--2nd x2 DPLs retrieve Battle Info --> | ||
Line 57: | Line 55: | ||
|format=,$ | |format=,$ | ||
}}|1}}|$}} | }}|1}}|$}} | ||
− | |||
<!----------------------------------------------> | <!----------------------------------------------> | ||
<!-- Set the inital variables and define requried | <!-- Set the inital variables and define requried | ||
Line 73: | Line 70: | ||
{{#vardefine:subbatsize|{{#arraysize:subbattleall}}}} | {{#vardefine:subbatsize|{{#arraysize:subbattleall}}}} | ||
{{#vardefine:batsize|{{#arraysize:battleall}}}} | {{#vardefine:batsize|{{#arraysize:battleall}}}} | ||
− | |||
<!----------------------------------------------> | <!----------------------------------------------> | ||
<!-- While loop which runs through the array and | <!-- While loop which runs through the array and | ||
Line 81: | Line 77: | ||
2nd loop is for battles, essentially identical --> | 2nd loop is for battles, essentially identical --> | ||
<!----------------------------------------------> | <!----------------------------------------------> | ||
− | |||
{{ #vardefine: iac | 0 }} | {{ #vardefine: iac | 0 }} | ||
{{ | {{ | ||
Line 100: | Line 95: | ||
}} | }} | ||
{{#arraydefine:subsumbatall|{{#var:sumbatall}}|$|}} | {{#arraydefine:subsumbatall|{{#var:sumbatall}}|$|}} | ||
− | |||
<!--{{#arrayprint:subsumcampall}}for error checking --> | <!--{{#arrayprint:subsumcampall}}for error checking --> | ||
<!--{{#arrayprint:subsumbatall}}for error checking --> | <!--{{#arrayprint:subsumbatall}}for error checking --> | ||
− | |||
<!----------------------------------------------> | <!----------------------------------------------> | ||
<!-- The below two loops multiply the number of | <!-- The below two loops multiply the number of | ||
Line 110: | Line 103: | ||
Templates for easy maintenance/adjustment--> | Templates for easy maintenance/adjustment--> | ||
<!----------------------------------------------> | <!----------------------------------------------> | ||
− | + | {{ #vardefine: icp | 0 }} | |
− | {{ #vardefine: icp | 0 }} | + | |
{{#vardefine:sumcampall}} | {{#vardefine:sumcampall}} | ||
{{ | {{ | ||
Line 132: | Line 124: | ||
<!--{{#arrayprint:subsumbatall2}}for error checking --> | <!--{{#arrayprint:subsumbatall2}}for error checking --> | ||
<!--{{#arrayprint:subsumcampall2}}for error checking --> | <!--{{#arrayprint:subsumcampall2}}for error checking --> | ||
− | |||
<!--------------------------------------------------------> | <!--------------------------------------------------------> | ||
<!-- Merge the three arrays together to make one large array | <!-- Merge the three arrays together to make one large array | ||
Line 162: | Line 153: | ||
{{#arraydefine:arrallsum|{{#sub:{{#var:allsum}}|1}}|$}} | {{#arraydefine:arrallsum|{{#sub:{{#var:allsum}}|1}}|$}} | ||
<!--{{#arrayprint:arrallsum}}for error checking --> | <!--{{#arrayprint:arrallsum}}for error checking --> | ||
− | |||
<!--------------------------------------------------------> | <!--------------------------------------------------------> | ||
<!-- The below goes through the total array and compares | <!-- The below goes through the total array and compares | ||
Line 186: | Line 176: | ||
2nd highest faction:{{#var:2ndhighfaction}}<br> | 2nd highest faction:{{#var:2ndhighfaction}}<br> | ||
Highest faction: {{#var:highfaction}} | Highest faction: {{#var:highfaction}} | ||
− | |||
<!--------------------------------------------------------> | <!--------------------------------------------------------> | ||
<!--The 2nd highest and highest faction are now compared to check | <!--The 2nd highest and highest faction are now compared to check |
Revision as of 05:32, 6 September 2014
Template:Army/Preload Template:Preset Army Data Trial:Legio CIX Template:.IArmy/Preload
Value1:Sirrob01
DPL Fun
Expression error: Missing operand for >.
2nd highest faction:0@0
Highest faction: 0@0
Influence Summary | |
---|---|
Faction | Influence |
p>Extension:DynamicPageList (DPL), version 2.3.0 : Warning: No results.</p> |
junk 3
a:A, a, b, A
x:A, A
a:A, a, b, A
15
junk2
- 0* 1* 2
→ yes
for(int i = 0; i < size; i++) with an if statement inside it, like this 1 2 if(num > largets) largest = num;
Legio Topper
Break
Initial Array setup
apple@red, apple@green, green@apple, apple@red, apple@purple, purple@apple, apple@purple, apple@purple, apple@purple, apple@purple
apple@red, apple@green, green@apple, apple@purple, purple@apple
apple@red@2
apple@green@1
green@apple@1
unique list enemys
red, green, purple
Final Array
red@2@0$green@1@1$purple@5@1$
Final Output
red@2@0, green@1@1, purple@5@1,
apple fought | ||
---|---|---|
Combatants | Won | Lost |
red | 2 | 0 |
green | 1 | 1 |
purple | 5 | 1 |
Top Banner
Extension:DynamicPageList (DPL), version 2.3.0 : Warning: No results.
________________________________
Extension:DynamicPageList (DPL), version 2.3.0 : Warning: Wrong 'mode' parameter: 'inline'! Using default: 'unordered'. Help: mode= none | ordered | unordered
.