Difference between revisions of "User:Sirrob01"
m (→DPL Fun) |
m (→DPL Fun) |
||
Line 175: | Line 175: | ||
#while: | #while: | ||
| {{#ifexpr: {{#var:iaas}}<{{#var:arrallsz}} | true }} | | {{#ifexpr: {{#var:iaas}}<{{#var:arrallsz}} | true }} | ||
− | |{{#ifexpr: | + | |{{#ifexpr:{{#explode:{{#arrayindex:arrallsum|{{#var:iaas}}}}|@|1}}>{{#explode:{{#var:highfaction}}|@|1}}|yes|no}} |
− | * {{ #var:iaas }} | + | * {{ #var:iaas }}{{#explode:{{#arrayindex:arrallsum|{{#var:iaas}}}}|@|1}}{{#explode:{{#var:highfaction}}|@|1}} |
{{#vardefine:iaas | {{#expr:{{#var:iaas}}+1}}}} | {{#vardefine:iaas | {{#expr:{{#var:iaas}}+1}}}} | ||
}} | }} |
Revision as of 06:30, 5 September 2014
Template:Army/Preload Template:Preset Army Data Trial:Legio CIX Template:.IArmy/Preload
Value1:Sirrob01
DPL Fun
Expression error: Unexpected > operator.
- 0
Rules Minor Lead X, Major lead Y Find highest number Var:max=0 While arraycnt< cnt Num=array(arraycnt) If num>max max=num The above variable max ends with the highest value. While doing the above can use an else to grab the not highest values. Into a new array and then do the same looping to find second highest so we end up with Max = highest Max2=2nd highest Simple if check Grab Max2 and add on either the minorlead or majorlead value then do simple if check If Newmax2 > Max then planet is contested if not then planet belongs to max. Then simply list all points for various factions.
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
.