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

Experimental Elixir Macro

Does anyone have the coding for an Experimental Elixir macro? I know it isn't necessary but it would make it a tad easier.


Thank you

January 31 (4 years ago)
David M.
Pro
API Scripter

Easiest solution would be to create a rollable table with the 6 effects as items. Name the table "ExperimentalElixir", then call it with [[1t[ExperimentalElixir]]].

If you are using the 5e by Roll20 sheet, you can use this macro using the traits template

&{template:traits} {{name=Experimental Elixir}} {{source=Alchemist subclass feature}} {{description=[[ 1t[ExperimentalElixir] ]]}}

Note, unless you use an api script like RecursiveTable, the die roll for "Healing" will not get rolled - only the text e.g. 2d4+INT will be displayed.

I've also been playing around with the new ScriptCards script (kinda like Powercards, but more...powerful). It's not on one-click yet, so needs a manual install. Here's a macro that works for Experimental Elixir that will auto-roll the healing if you're interested.

!scriptcard  {{ 
  --:___Formatting___
  --#title|Experimental Elixir
  --#leftsub|Alchemist subclass feature
  
  --:___Primary Roll___
  --=ElixirRoll|1d6

  --:___Conditionals___
  --?[$ElixirRoll] -eq 1| >Roll_1
  --?[$ElixirRoll] -eq 2| >Roll_2
  --?[$ElixirRoll] -eq 3| >Roll_3
  --?[$ElixirRoll] -eq 4| >Roll_4
  --?[$ElixirRoll] -eq 5| >Roll_5
  --?[$ElixirRoll] -eq 6| >Roll_6
  --X|___Exit Macro___

  --:___Functions___
  --:Roll_1|
      --=HealRoll|2d4 + @{Trix|intelligence_mod}
      --+**~~>Healing|**
      --+|The drinker regains [$HealRoll] hit points
      --<|

  --:Roll_2|
      --+**~~>Swiftness|**
      --+|The drinker's walking speed increases by 10 feet for 1 hour.
      --<|

  --:Roll_3|
      --+**~~>Resilience|**
      --+|The drinker gains a +1 bonus to AC for 10 minutes.
      --<|

  --:Roll_4|
      --+**~~>Boldness|**
      --+|The drinker can roll a d4 and add the number rolled to every attack roll and saving throw they make for the next minute.
      --<|

  --:Roll_5|
      --+**~~>Flight|**
      --+|The drinker gains a flying speed of 10 feet for 10 minutes
      --<|

  --:Roll_6|
      --+**~~>Transformation|**
      --+|The drinker's body is transformed as if by the alter self spell. The drinker determines the transformation caused by the spell, the effects of which last for 10 minutes.
      --<|
}}


Thank you.