User:Mendel/Templates/danball/enemy 200

Call this with ((enemy 200|peak=lvl|max=lvl)). It will return a string that when used with ((#explode:((enemy 200|peak=lvl|max=lvl))|$|lvl}} will return the peak level and the appropriate levels for values of 1 to max.

Defaults: peak=10, max=20

As a check, the result of ((#explode: ((enemy 200|peak=10|max=20))|$|8)) is now.

The multipliers in the two lines at the end of the big #sub #sub need to be because that is the length of. Obviously it is kinda important that these segments are all the same size.