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

Would have how to create this type of macro without API

1601747211

Edited 1601747449
  Could someone help me to create a macro that in the scroll take the attribute + mod and add this value in the result of the d100. as if a character has 15 Strength and MOD strength is 2. the person takes 52 on the d100 and adds 15 + 2 on the 52 = 69.
1601751762

Edited 1601751783
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
The actual syntax will vary depending on where and how it is used, and what the sheet is. This will work if you are using the D&D 5th Edition by Roll20 Sheet, and have a token selected that represents a character: [[@{selected|strength}+@{selected|strength_mod}+[[1d100]]]]
thanks man
keithcurtis said: The actual syntax will vary depending on where and how it is used, and what the sheet is. This will work if you are using the D&D 5th Edition by Roll20 Sheet, and have a token selected that represents a character: [[@{selected|strength}+@{selected|strength_mod}+[[1d100]]]] without being too boring. as i add this macro of yours to this macro [[1d100cs> 45cf <44]] i would like to make a menu where players choose among the attributes to make tests.
1602003267
GiGs
Pro
Sheet Author
API Scripter
Thats pretty easy. Just do this: [[1d100 + ?{ChooseAttribute| Strength,@{selected|strength}+@{selected|strength_mod}| Dexterity,@{selected|dexterity}+@{selected|dexterity_mod}}]] Just copy that strength line as many times as you need, and replace the attributes.
GiGs said: Thats pretty easy. Just do this: [[1d100 + ?{ChooseAttribute| Strength,@{selected|strength}+@{selected|strength_mod}| Dexterity,@{selected|dexterity}+@{selected|dexterity_mod}}]] Just copy that strength line as many times as you need, and replace the attributes. thanks man.
The macro is almost ready but I'm not able to leave it with template @{selected|Token_name}**?{Choose|Normal, [[1d100cs>45cf<44]] > 44; Normal | Easy, [[1d100cs>29cf<28]] > 28; Easy | Difficult, [[1d100cs>61cf<60]] > 60; Difficult | Very Difficultl, [[1d100cs>77cf<76]] > 76; Very Difficult | Impossible, [[1d100cs>93cf<92]] > 92; Impossible } does anyone know how to put template in this macro.
1602029517
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Without knowing which character sheet you are using (you still haven't confirmed), this should work in any game: &{template:default} {{name=Put Title Here}} {{Roll=@{selected|Token_name}**?{Choose|Normal, [[1d100cs>45cf<44]] > 44; Normal | Easy, [[1d100cs>29cf<28]] > 28; Easy | Difficult, [[1d100cs>61cf<60]] > 60; Difficult | Very Difficultl, [[1d100cs>77cf<76]] > 76; Very Difficult | Impossible, [[1d100cs>93cf<92]] > 92; Impossible }}}
keithcurtis said: Without knowing which character sheet you are using (you still haven't confirmed), this should work in any game: &{template:default} {{name=Put Title Here}} {{Roll=@{selected|Token_name}**?{Choose|Normal, [[1d100cs>45cf<44]] > 44; Normal | Easy, [[1d100cs>29cf<28]] > 28; Easy | Difficult, [[1d100cs>61cf<60]] > 60; Difficult | Very Difficultl, [[1d100cs>77cf<76]] > 76; Very Difficult | Impossible, [[1d100cs>93cf<92]] > 92; Impossible }}} thanks. I use 5e sheet
1602475875

Edited 1602475930
In 5e you can create an attack macro with 1d20 + [MOD] + [PROF] adding percentage as + 20% or -30%?