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

Possible to make a gm macro nonapi?

Hey i'm trying to setup a will and perception check that is gm rolled. I've tried a couple of ways to do it but nothing I try works. Is it possible
1409334590
The Aaron
Roll20 Production Team
API Scripter
Do you mean where the GM clicks the macro and he is the only one that sees the results, or where the player clicks the macro and only the GM sees the results? The first is easy: /gr 1d20+@{some|attribute} or /w gm [[1d20+@{some|attribute}]] for some skill The second isn't possible with out the API.
Assuming the token represending the player's character is properly linked to the Character Journal.... /gr [[1d20 + @{Selected|AttributeName} ]] Example: Character Journal has a "Will" attribute of 2 /gr [[1d20 + @{Selected|Will} ]] Please be careful with rolling for your players, though. Many people enjoy the aspect of rolling the die to determine their fates... having the GM roll for you tends to take away from that.
is there anyway to put them in one macro? And the players are traveling through a giant dungeon where saves are needed in every couple of rooms
1409341611

Edited 1409341623
Gauss
Forum Champion
Just put one of the inline rolls after the other. /w GM Perception: [[1d20 + @{Selected|AttributeName} ]] Will: [[1d20 + @{Selected|Will} ]]
I'm trying to do it without using the selected token. I have it out like this /w GM Perception: [[1d20 + @{Prep} ]] Will: [[1d20 + @{Will} ]] and this does nothing =/ Do i have to keep it as a selected or is my code wrong?
Brandon, you have essentially 3 choices. 1) Do it for the selected token as described above. 2) Do it via Targeted macro - /w gm Perception: [[1d20 + @{target|Prep}]], Will [[1d20 + @{target|Will}]]. The benefit to this is that they are generic, meaning they can also be used for the monsters. 3) Hardcode a group macro, I personally do this for Perception: /w gm Player1 - Perception: [[1d20 + @{Player1|Prep}]], Will: [[1d20 + @{Player1|Will}]] /w gm Player2.... This is useful for group macros... but if a player dies or changes names... you need to update the macro.
1409351096
Gauss
Forum Champion
You have to set the character. You can do that in the following ways: @{character name|attribute name} @{target|attribute name} @{selected|attribute name}