Skip to content

Instantly share code, notes, and snippets.

@beccasaurus
Last active May 22, 2020 06:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beccasaurus/d3d412ae9b7704001f88e110fb238dac to your computer and use it in GitHub Desktop.
Save beccasaurus/d3d412ae9b7704001f88e110fb238dac to your computer and use it in GitHub Desktop.
Roll20 Macros

API Scripts

First, go to your API Scripts and enable these two:

  • TokenMod
  • GroupInitiative (ignore the warning popup when adding this one, it's fine)

Then open up the Macros section.

  • 🗸 Show macro quick bar

Begin-Combat

  • 🗸 In Bar
!group-init --toggle-turnorder

End-Combat

  • 🗸 In Bar
!group-init --clear

Sort-Initiative

  • 🗸 In Bar
!group-init --sort

Set-Token-Name

  • 🗸 In Bar
  • 🗸 Token Action
!token-mod --set name|"?{Name}" showname|yes

Set-Token-HP

  • 🗸 In Bar
  • 🗸 Token Action
!token-mod --set bar1_value|"?{Hit points}" bar1_max|"?{Hit points}"

Set-Player-Bars

  • 🗸 Token Action
!token-mod --set bar1_link|HP bar2_link|passive_wisdom bar3_link|AC showplayers_bar1|yes

Unset-Bars

(Optional)

  • 🗸 Token Action
!token-mod --set bar1_link| bar2_link| bar3_link| bar1_value| bar2_value| bar3_value| bar1_max| bar2_max| bar3_max| showplayers_bar1|no showplayers_bar2|no showplayers_bar3|no

Light

  • 🗸 Token Action
!token-mod --set ?{Vision|Torch, light_radius#40 light_dimradius#20 light_hassight#yes light_angle#360 light_otherplayers#yes|Hooded Lantern, light_radius#60 light_dimradius#30 light_hassight#yes light_angle#360 light_otherplayers#yes|Bullseye Lantern, light_radius#120 light_dimradius#60 light_angle#60 light_hassight#yes light_otherplayers#yes|Lamp, light_radius#30 light_dimradius#15 light_hassight#yes light_angle#360 light_otherplayers#yes|Candle, light_radius#5 light_dimradius#=0 light_hassight#yes light_angle#360 light_otherplayers#yes|Darkvision, light_radius#60 light_dimradius#=30 light_hassight#yes light_angle#360 light_otherplayers#no|Darkvision (120'), light_radius#120 light_dimradius#=60 light_hassight#yes light_angle#360 light_otherplayers#no|Warlock Devil's Sight, light_radius#120 light_dimradius#=120 light_hassight#yes light_angle#360 light_otherplayers#no|No light source(Dusk), light_radius#120 light_dimradius#=-5 light_hassight#yes light_angle#360 light_otherplayers#no|Fog, light_radius#200 light_dimradius#=5 light_hassight#yes light_angle#360 light_otherplayers#no|No light source, light_radius#0 light_dimradius#=-5 light_hassight#yes light_angle#360 light_otherplayers#no|Blinded, light_hassight#no light_angle#360 light_otherplayers#no}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment