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

Idea for Macro Function [D&D5E, possibly others]

March 28 (9 months ago)

Edited March 28 (9 months ago)

I had an idea based on something cool I was shown awhile ago, which basically has a value be duplicated across a macro for consistency.

Say I have a macro that utilizes an equation, 1d4*5, but I want to reference the results of that at different points in the macro, I can't just put "1d4*5" for every reference, as they will all roll independently, and have different results. But what if you make a simple prefix to say "[1]1d4" (or alike), then putting [1] anywhere else will reference that value? so that way you have the first "[1]1d4*5", then everywhere else you can just do [1]*5 and it'll be consistent.

It wouldn't need to be just numbers either, you could nickname them too; ie "[ath1]%{character_name|athletics}"

Logically you'd have several things you can do this with, say [1]1d4, [2]%{character_name|athletics}, etc etc up to whatever limit would be there.

Regarding ones for things like Athletics, if possible, have it only take the roll/bonus/global totals of said roll to use as a raw numerical value

(I imagine it would be different than "[]", but conceptually I feel this would be very nice to have)

Maybe a better way would be {{value=value_name,1d4}}*5 as a base, then {{value_name}}*5 when referencing it?

Specifically also for cases where rolltables aren't available etc - purely macro-based (via regular macro or ability-sheet)


Additional Thought - When making a macro button, you could perhaps have it be "[Button Name](~ability){[1],[2]}" as a way to say "Carry values [1] and [2] over to the macro this button references"

Hey so uh, I realized I posted this in the incorrect forum type. I do not know how, but this was fully intended to be sent under Suggestions and Ideas. Any way to move these over, or should I repost this there and remove this here?

March 28 (9 months ago)
Gauss
Forum Champion

This already exists partially: https://wiki.roll20.net/Reusing_Rolls

The problem is that reused rolls won't allow calculations to be done upon them. There are some tricks that kind of work around that.

IIRC, there are already suggestions to improve reusing rolls so that calculations can be done upon them.