I've created a macro that works fine with numbers 0-10, but am having trouble getting it to work right past that point. In addition, what I've come up with so far seems a bit laborious. Is there a more streamlined means of creating such a macro, or a thread I've missed in my search that discusses that? Thanks!
Code: Select all
[if(state.Count09 == 1), CODE:
{
[H: state.Count09 = 0]
[H: state.Count10 = 1]
[H: state.Count00 = 1]
};
{
}]
[if(state.Count08 == 1), CODE:
{
[H: state.Count08 = 0]
[H: state.Count09 = 1]
};
{
}]
[if(state.Count07 == 1), CODE:
{
[H: state.Count07 = 0]
[H: state.Count08 = 1]
};
{
}]
[if(state.Count06 == 1), CODE:
{
[H: state.Count06 = 0]
[H: state.Count07 = 1]
};
{
}]
[if(state.Count05 == 1), CODE:
{
[H: state.Count05 = 0]
[H: state.Count06 = 1]
};
{
}]
[if(state.Count04 == 1), CODE:
{
[H: state.Count04 = 0]
[H: state.Count05 = 1]
};
{
}]
[if(state.Count03 == 1), CODE:
{
[H: state.Count03 = 0]
[H: state.Count04 = 1]
};
{
}]
[if(state.Count02 == 1), CODE:
{
[H: state.Count02 = 0]
[H: state.Count03 = 1]
};
{
}]
[if(state.Count01 == 1), CODE:
{
[H: state.Count01 = 0]
[H: state.Count02 = 1]
};
{
}]
[if(state.Count00 == 1 && state.Count10 == 0), CODE:
{
[H: state.Count00 = 0]
[H: state.Count01 = 1]
};
{
}]