Difference between revisions of "User:Sirrob01"
m (→DPL Fun) |
m (→junk 3) |
||
Line 196: | Line 196: | ||
==junk 3== | ==junk 3== | ||
− | {{ | + | <!--------------------------------------------------------> |
− | # | + | <!-- Inital DPL retrieval, since we need to unique the array |
− | + | and I haven't discovered the function to mirror an array | |
− | {{ | + | we have to do the DPL query twice. Inefficent and maybe |
− | # | + | able to be fixed later --> |
− | + | <!--------------------------------------------------------> | |
− | + | <!---------------------------------------> | |
− | + | <!--1st x2 DPLs retrieve Campaign Info --> | |
− | }} | + | <!---------------------------------------> |
− | {{ | + | {{#arraydefine:campall|{{#sub:{{#dpl: |
− | # | + | |category =Campaign |
− | }} | + | |category =Kildrech Prime |
− | <!-- | + | |notnamespace=Template |
− | <!-- | + | |include={Battlereport}:victor |
− | <!-- | + | |escapelinks=true |
− | <!-- | + | |format=,$}}|1}}|$}} |
− | <!-- | + | {{#arraydefine:subcampall|{{#sub:{{#dpl: |
− | + | |category =Campaign | |
− | + | |category =Kildrech Prime | |
− | + | |notnamespace=Template | |
− | --> | + | |include={Battlereport}:victor |
+ | |escapelinks=true | ||
+ | |format=,$}}|1}}|$}} | ||
+ | <!-------------------------------------> | ||
+ | <!--2nd x2 DPLs retrieve Battle Info --> | ||
+ | <!-------------------------------------> | ||
+ | {{#arraydefine:battleall|{{#sub:{{#dpl: | ||
+ | |category =Battle | ||
+ | |category =Kildrech Prime | ||
+ | |notnamespace=Template | ||
+ | |include={Battlereport}:victor | ||
+ | |escapelinks=true | ||
+ | |format=,$}}|1}}|$}} | ||
+ | {{#arraydefine:subbattleall|{{#sub:{{#dpl: | ||
+ | |category =Battle | ||
+ | |category =Kildrech Prime | ||
+ | |notnamespace=Template | ||
+ | |include={Battlereport}:victor | ||
+ | |escapelinks=true | ||
+ | |format=,$}}|1}}|$}} | ||
+ | <!----------------------------------------------> | ||
+ | <!-- Set the inital variables and define requried | ||
+ | variables for the while loop, --> | ||
+ | <!----------------------------------------------> | ||
==junk2== | ==junk2== |
Revision as of 05:50, 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 >.
Influence Summary | |
---|---|
Faction | Influence |
p>Extension:DynamicPageList (DPL), version 2.3.0 : Warning: No results.</p> |
junk 3
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
.