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

Refer to original roll and add a value to it.

1610813341

Edited 1610813643
For pathfinder 1 I have an investigator and I'm trying to use the notes of the default save to allow me to use the immediate action and then roll the new value. This I then want to add to my previously rolled result, but when I try to get that result as a value I get the entire rolling text (see value listed as Original) Contents of the notes field on the character sheet: [immediate action: 2 inspiration points: add inspiration](!&newline; &{template:default} {{name=updated Fort save}} {{Original=$[[1]]}} {{inspiration=[[d6]]}} ) Does anyone have any idea how to retrieve the result from the original text if possible at all? At least my current output is usable although somewhat annoying.
1610827464
Jordan C.
Pro
API Scripter
I can't seem to find way for it to take the number instead of the string, but in terms of your end goal of adding a new value to it I'm afraid it wouldn't be possible regardless. You can only print previous rolls with $[[0]] syntax and cannot perform further operations on them at all. Since it is so close to the previous template it looks like it would probably be simpler to just remove the reprint of the original roll since that is the case.
1610852304
GiGs
Pro
Sheet Author
API Scripter
It's not possible to do what you want. You'll need to create a completely new copy of the macro, and edit it to do what you want.