It looks like you're new here. If you want to get involved, click one of these buttons!
<<for _i = 1; _i lt 65; _i++>> <<if $AreaStats[_i].State is "Allied">> <<if $Commander[_i*3-2].Active>><<print $Commander[_i*3-2].Image>> <<print $Commander[_i*3-2].Troops>> <<print $Commander[_i*3-2].Morale>> [[Select|Attack2][$AttackingCommanderNumber to (_i*3-2)]] <</if>><<if $Commander[_i*3-1].Active>><<print $Commander[_i*3-1].Image>> <<print $Commander[_i*3-1].Troops>> <<print $Commander[_i*3-1].Morale>> [[Select|Attack2][$AttackingCommanderNumber to (_i*3-1)]] <</if>><<if $Commander[_i*3].Active>><<print $Commander[_i*3].Image>> <<print $Commander[_i*3].Troops>> <<print $Commander[_i*3].Morale>> [[Select|Attack2][$AttackingCommanderNumber to (_i*3)]] <</if>> <</if>> <</for>>
[[Select|Attack2][$AttackingCommanderNumber to (_i*3)]]This takes the latest value of _i instead of the value of _i at the time of creating that part.
Comments
You can use a <<print>> macro to dynamically create the Setter Link like so:
warning: the above was written from memory and has not been tested.
Works like a charm, thanks so much!