It doesn't work. Same problem still occursYou can also locally shadow Integer A so it behaves as a local integer (like Dr Super Good suggested JASS can do) but can be accessed in GUI by putting this as the first line of your actions:
Actions
Custom script: local integer bj_forLoopIndexA = 0
Try Illidan(Evil)X's otherwise you will need to use JASS if the trigger can have multiple threads.So which one is the solution? I'm at lost here.
You can shadow any number of global variables as far as I know.Since you can't shadow two variables that won't work either.
Use a For Each Integer Variable loop instead of the Integer A one and create a new unique integer variable for it.So which one is the solution? I'm at lost here.
Tested and I was able to shadow two integers properly. Was the single variable thing just a myth perpetuated from years ago? I remember it not being a viable solution for MUI-ability in GUI many times because you couldn't shadow too many variables.You can shadow any number of global variables as far as I know.