Advertisement
Guest User

Untitled

a guest
Dec 10th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. !servalias potion embed
  2. {{arg = "%1%".lower()}}
  3. {{num = int(''.join([x for x in "0"+arg if x.isdigit()]))}}
  4. {{name = "Greater" if num == 4 or 'gr' in arg else "Superior" if num == 8 or 'supe' in arg else "Supreme" if num == 10 or 'supr' in arg else ""}}
  5. {{rollInrt = "1d20"}}
  6. {{inert = vroll(rollInrt)}}
  7. {{rollStr = "10d4+20" if name == "Supreme" else "8d4+8" if name == "Superior" else "4d4+4" if name == "Greater" else "2d4+2"}}
  8. {{heal = "0" if inert == 1 else vroll(rollStr)}}
  9. {{set_hp(min(hp, heal.total + currentHp))}}
  10. -title "<name> drinks a Potion of name Healing!"
  11. -desc "A character who drinks the liquid in this vial regains hit points. Administering or drinking a healing potion takes a bonus action. Some healing potions may be inert."
  12. -f "Healing Received|heal" if inert >1 else "No Heal received"
  13. -f "Hit Points|get_hp() / hp" if inert > 1 else "Potion is inert."
  14. -footer "Treasure | DMG 187 - 188"
  15. -color <color>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement