You are calling Wiki: currentToken() in the first macro and storing it in m1args. That means when the first macro is executed, the active token will be whichever was active for the macro and it will still be the same when Wiki: copyToken() is executed and m1args is passed to the second macro. So I suggest you leave out the "tToken" field from m1args since inside the macro Wiki: currentToken() will already return the correct (i.e. newly created) token.lmarkus001 wrote:Revisiting this... in recent changes it appears you can load the Updates parameter of the Wiki: copyToken() and have it run a macro! Unfortunately I sure can't get it to work...
You're also using Wiki: setCurrentMap() which has some known problems that I discussed recently in another post (I probably didn't update the wiki though, so I need to do that). In this specific case it looks like you're not modifying any tokens after calling Wiki: setCurrentMap() and you then switch back to another map, so you should be fine. But in general you should avoid Wiki: setCurrentMap() and use other functions like Wiki: getInfo().