Thread:Warrior fr/@comment-3089265-20120504073742/@comment-409884-20120508154839


 * Loops

I know the solution for loops, you may not like it though!

It is not a true loop but works the same, nonetheless!

We use use the #ifexpr: statement a maximum of the max level of the building and you do them up to the highest building level in the game ( I think the Shipyard has the highest level at Level 49.

You set a parameter to be the maxlevel, in this case 49 and you use a seperate parameter for the current buildings max level ex 11 for the Palace/Governor's Residence

you use {{#ifexpr: maxlevel &gt;1| do blah blah blah |do nothing {{#ifexpr: maxlevel &gt;2| do blah blah blah |do nothing {{#ifexpr: maxlevel &gt;3| do blah blah blah |do nothing {{#ifexpr: maxlevel &gt;4| do blah blah blah |do nothing {{#ifexpr: maxlevel &gt;5| do blah blah blah |do nothing . . . {{#ifexpr: maxlevel &gt;10| do blah blah blah |do nothing . . . {{#ifexpr: maxlevel &gt;15| do blah blah blah |do nothing . . . {{#ifexpr: maxlevel &gt;20| do blah blah blah |do nothing . . . {{#ifexpr: maxlevel &gt;25| do blah blah blah |do nothing . . . {{#ifexpr: maxlevel &gt;30| do blah blah blah |do nothing . . . {{#ifexpr: maxlevel &gt;35| do blah blah blah |do nothing . . . {{#ifexpr: maxlevel &gt;40| do blah blah blah |do nothing . . . {{#ifexpr: maxlevel &gt;45| do blah blah blah |do nothing {{#ifexpr: maxlevel &gt;46| do blah blah blah |do nothing {{#ifexpr: maxlevel &gt;47| do blah blah blah |do nothing {{#ifexpr: maxlevel &gt;48| do blah blah blah |do nothing {{#ifexpr: maxlevel &gt;49| do blah blah blah |do nothing