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

How do I "save" an inline roll result for use later in the same command?

1485817003

Edited 1485817143
Hello! I am attempting to return two inline roll results, and the second one is merely the first total x2 (for the purposes of this example). How do I substitute the results of the first roll in the second part of the command, where "PreviousRollResultHere" is listed? Is there any way to do this at all? I've scoured the wiki but can't seem to find anything about this. I can't seem to find a way to put results into a generic temporary variable. Damage: [[2d6]] and [[ PreviousRollResultHere * 2]]
1485817703

Edited 1485817769
Hi, JohnD . Unfortunately, it is not possible to 'reuse' an inline roll like this without the assistance of an API Script . (Access to the API is available only in games in which the game's Creator currently has an active Pro subscription.) /r [[2d6]] * 2 might function as a workaround for you.