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...