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

Nested Global Macro - works for GM but not for Players

February 05 (4 years ago)

Edited February 05 (4 years ago)

Ok - I've got a bunch of stuff going on with some APIs and I'm using macros to push a chat menu to my players. It works for me, but my players just see the text posted for the macro... am I missing some long established trick? I am at a loss, so all help appreciated!

I have tried the below with and without the spaces after the macro calls - works for me either way. For players the first call needs the space, after that it fails regardless just outputting the text call of the macro. All macros are set visible to All Players, and any time I've gone back into the chat menu macros I have restored the HTML escapes...


#bedemoji 

?{Would you like to take a short or a long rest?|Short Rest,!short-rest
#HitDiceMenu |Long Rest,!long-rest}


#HitDiceMenu

/w @{selected|token_name} @{selected|character_name} you have [[@{selected|Hit_Dice}]] available - [**Use a Hit Die**](!
#UseHitDie) (1d@{selected|hitdieroll}+@{selected|constitution_mod})
/w @{selected|token_name} If you use at least one hit die and the bard is doing their thing you can [**Use Song of Rest**](!
#SongOfRest) (1d6)


#UseHitDie

!setattr --silent --sel --modb --hit_dice|-1
!alter --show|GM --target|@{selected|token_id} --bar|1 --amount|+1d@{selected|hitdieroll}+@{selected|constitution_mod}
/w @{selected|character_name} you have [[@{selected|Hit_Dice}-1]] available - [**Use a Hit Die**](!
#UseHitDie ) (1d@{selected|hitdieroll}+@{selected|constitution_mod})
/w @{selected|token_name} If you use at least one hit die and the bard is doing their thing you can [**Use Song of Rest**](!
#SongOfRest ) (1d6)


#SongOfRest

!alter --show|GM --target|@{selected|token_id} --bar|1 --amount|+1d6
/w @{selected|character_name} you have [[@{selected|Hit_Dice}]] available - [**Use a Hit Die**](!
#UseHitDie ) (1d@{selected|hitdieroll}+@{selected|constitution_mod})
/w @{selected|token_name} If you use at least one hit die and the bard is doing their thing you can [**Use Song of Rest**](!
#SongOfRest ) (1d6)


What I as the GM see when hitting #bedemoji, [Use a Hit Die], [Use Song of Rest], [Use a Hit Die]



What the player sees, again hitting #bedemoji, [Use a Hit Die], [Use Song of Rest], [Use a Hit Die]



February 05 (4 years ago)

Edited February 05 (4 years ago)
Jordan C.
Pro
API Scripter

Not at all intuitive, but there is an option when you edit the macros at the bottom to display macros for all players and that is what is required for them to roll from them.

You have to scroll to see it.



February 05 (4 years ago)

They are all set to All Players - I checked already... so something weird is going on!