MountainBlade
Sergeant Knight at Arms
I want to replace this:
(assign, reg0, 0),
(assign, reg1, 1),
(assign, reg2, 2),
with code that does the same thing but up to any number, based on a variable:
(try_for_range,":rnum",0,":num_combatants"),
(assign, reg":rnum", ":rnum"),
(try_end),
Obviously this doesn't build because of reg":rnum". Is there a way to base the reg number you write to on the contents of a variable? Or will I just have to make a try block for every reg?
(assign, reg0, 0),
(assign, reg1, 1),
(assign, reg2, 2),
with code that does the same thing but up to any number, based on a variable:
(try_for_range,":rnum",0,":num_combatants"),
(assign, reg":rnum", ":rnum"),
(try_end),
Obviously this doesn't build because of reg":rnum". Is there a way to base the reg number you write to on the contents of a variable? Or will I just have to make a try block for every reg?