Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

delete the empty space from result of rolltable

Hi I want run a macro like #test[[1t[D6]]] but the result give: test 6 for exemple : it's possible to delete the empty space between test and 6 so macro could be launch ? thanks
What do you want the macro to do? I don't understand what you're trying to accomplish. #test will be replaced with whatever is in a Collections Macro named 'test' [[1t[D6]]] will roll on a Roll Table named 'D6' a single time. If you could post screenshots of what is happening and an explanation of what you'd like to have differently that would be helpful.
I want run differents ramdom macro named  test1 test2 ... test6  where number 1to 6 return from a rolltable result give me for exemple but the macro name test1 or test3 not running [[1t[D6]]] will roll on a Roll Table named 'D6' a single time. : yes tanks
1683726274

Edited 1683726493
I think there are 6 different macros to be called via the Rollable table and those macros are named test1 to test6. But I don't think this is going to work with rollable tables. What you can try is putting one macro per entry in the rollable table, so that if a 1 is rolled, macro test1 is activated and so on. OR instead of #test1 etc. you could try putting your macro code there but I do not think that would work.
I try your suggestion but it the same : macro don't run
Terndrash T. said: I want run differents ramdom macro named  test1 test2 ... test6  where number 1to 6 return from a rolltable result give me for exemple but the macro name test1 or test3 not running [[1t[D6]]] will roll on a Roll Table named 'D6' a single time. : yes tanks The issue is the Roll20 Order of Operations .  Macro Calls happen before  rolls, and the order is not recursive.
1683752570
timmaugh
Forum Champion
API Scripter
If you have scripts available, a combination of Fetch + ZeroFrame will get you there: #(test[[1t[D6]]].value) With certain caveats that you have to start the line with a bang (!), and if this macro would produce content for the chat window without invoking a script, you would also want a {&simple} to be included. I can give a fuller explanation if you let us know scripts are available.