Speeding Up Combat in Roll20 with the AutoButton API Script

Sdílet
Vložit
  • čas přidán 22. 06. 2022
  • This video shows how to use the AutoButton Script in Roll20. Note that this requires a Pro account in order to use.
    Prerequisite - TokenMod script, available from the Roll20 script library.
    The script can be found here - raw.githubusercontent.com/oos...
    The Autobutton Forum Post is here - app.roll20.net/forum/post/107...
    The pictos font tables are here -wiki.roll20.net/CSS_Wizardry#...
    The code I used in the video:
    !autobutton --createbut {{name=Vulnerable}} {{content=t}} {{tooltip=Vulnerable (%)}} {{style=color: black; font-family: pictos custom; font-size: 2.1rem;}} {{math=-(damage.total*2)}}
    !autobutton --showbut Vulnerable
    !autobutton --createbut {{name=VulnerableCrit}} {{content=tt}} {{tooltip=VulnerableCrit (%)}} {{style=color: darkred; font-size: 2.1rem;}} {{math=-floor((crit.total + damage.total)*2)}}
    !autobutton --showbut VulnerableCrit
    !autobutton --editbut {{name=VulnerableCrit}} {{style=color: red;font-family: pictos custom;font-size: 1.5rem; padding-top:1px;}}
    !autobutton --order 1,2,3,5,6,4
    !autobutton --deleteButton Vulnerable
    My Patreon - / nickolivo
  • Hry

Komentáře • 61

  • @ademiranda2
    @ademiranda2 Před 2 lety +6

    Your videos never dissapoint. I owe having become Roll 20 literate solely to watching your videos. Great job!

    • @NickOlivo
      @NickOlivo  Před 2 lety

      Thanks for the kind words! Happy gaming!

  • @Tenkin211
    @Tenkin211 Před rokem +1

    Thanks for these tutorials, they got me using API scripts. Hoping my players enjoy the changes as much as I do!

    • @NickOlivo
      @NickOlivo  Před rokem +1

      Glad they were helpful! Happy gaming!

  • @nicolaeorengo20
    @nicolaeorengo20 Před rokem

    Bro I've been looking for something like for years, thank goodness. Can always count on ya to find the best scripts

    • @NickOlivo
      @NickOlivo  Před rokem

      Glad it was helpful! Happy gaming!

  • @elrikmordner
    @elrikmordner Před 2 lety +1

    This is nothing but awesome! Thank you!

    • @NickOlivo
      @NickOlivo  Před 2 lety

      Glad it was helpful! Happy gaming!

  • @TheBierp
    @TheBierp Před 2 lety +1

    Ooh, this is a nice one. Thanks for sharing.

    • @NickOlivo
      @NickOlivo  Před 2 lety

      Glad you liked it! Happy gaming!

  • @JustIT69
    @JustIT69 Před rokem

    This is so good. Thanks for posting.

    • @NickOlivo
      @NickOlivo  Před rokem

      Glad you liked it! Happy gaming!

  • @nightfr09
    @nightfr09 Před rokem

    Its been a while since i last commented, but thanks man

  • @kidtruck9157
    @kidtruck9157 Před 2 lety

    Nice! Ive been looking for something like this

    • @NickOlivo
      @NickOlivo  Před 2 lety

      Glad it was helpful! Happy gaming!

  • @revelationmd
    @revelationmd Před 2 lety +3

    Thanks. This is really helpful. I’m thinking rather than set up vulnerability buttons I may just click the usual damage button twice. Not tried it yet but it seems like that should work.

  • @neepers
    @neepers Před 4 měsíci

    I've been D&Ding for 3 years and for the first time next week I'll be a DM for my group--and now I'm figuring out the tools on roll 20 which we've NEVER used and oh my god, completely changes things. Your videos are fantastic! So much appreciated: what you've helped with completely changes how we do incredibly slow combat.
    In fact, my DM avoids any large combat because of rolls, and all enemy mobs have the same turn because the pain from rolling every initiative is so time consuming. No longer!
    Anyway! Onto my point on this one: I've set up two macros that are available to all players. One is called -1hp and the other is -5hp. I also have -10, but I don't think it's really necessary. Was thinking those macros are faster than this tool.
    Anyway! Thanks for all your videos!

    • @NickOlivo
      @NickOlivo  Před 4 měsíci

      Glad the videos have been helpful! Happy gaming, and good luck with your session!

  • @I..cast..fireball
    @I..cast..fireball Před 2 lety +3

    btw you can just click normal damage twice if vulnerable.

    • @NickOlivo
      @NickOlivo  Před 2 lety

      Well sure, but now you know how to make your own buttons :)

  • @thenannymoh
    @thenannymoh Před 2 měsíci

    mind blown

  • @I..cast..fireball
    @I..cast..fireball Před 2 lety +1

    sweeeeeeeeeeeeeet

  • @sefnerr
    @sefnerr Před 2 lety +1

    As always, very helpful Nick! Question; does this script only work with the D&D 5e sheet?

    • @sefnerr
      @sefnerr Před 2 lety

      I just needed to read the script text/instructions on the forums;
      "
      The script comes with a preset for 5e by Roll20, but you can customize it to work with any sheet or roll template. If you need it to do anything tricky (like picking up spells & higher level casting on the 5e sheet), you will need JavaScript skills. But trickier operations aside, you can set the script up to watch for whatever roll templates and template properties you like.
      "

    • @NickOlivo
      @NickOlivo  Před 2 lety

      Glad you found what you were looking for! Happy gaming!

  • @ChrisCamp914
    @ChrisCamp914 Před měsícem

    Love your vids. Been such a big help with spending more time storytelling and ease of use for my players.
    Having trouble Changing the font size on images
    Ive changed the values but is seems that only rollName font shows any diiference.
    "buttonShared: `background-color: transparent; border: none; border-radius: 5px; padding: 0px; width: 100%; height: 100%; overflow: hidden; white-space: nowrap; position: absolute; top: 0; left: 0; text-decoration: none;`,
    crit: `color: darkred; font-size: 1rem; line-height: 2.3rem; text-shadow: 0px 0px 2px black;`,"
    changed the value for crit font size as a test and no results.

    • @NickOlivo
      @NickOlivo  Před měsícem

      Roll20 made some changes to roll templates after this video was released. The last entry in this forums post shows how KeithCurtis was able to adjust the font size. Hope that helps, happy gaming! app.roll20.net/forum/post/11548051/autobutton-weirdness-big-buttons/?pageforid=11564935#post-11564935

  • @Dude80525
    @Dude80525 Před 11 měsíci

    I just recently found your videos and it now it's like crack to me! I cannot get enough! LOL. Question: How can this be applied to attacks/spells that use Token Actions?

    • @NickOlivo
      @NickOlivo  Před 11 měsíci

      Glad the vids have been helpful! Can you elaborate on the scenario you've got in mind?

    • @Dude80525
      @Dude80525 Před 11 měsíci

      @@NickOlivo I thought it would be easier to uplaod a video showing you the issue, but youtube doesn't let me add a hyperlink to it?

    • @Dude80525
      @Dude80525 Před 11 měsíci

      czcams.com/video/bOvhOSvevow/video.html

    • @NickOlivo
      @NickOlivo  Před 11 měsíci

      I think it's because the AutoButton script only fires when a roll comes in using the atkdmg, dmg, npcfullatk, or npcdmg roll templates. Try changing your macro to use one of those instead of the Default template and see if it fixes it.

  • @samb8243
    @samb8243 Před 2 lety

    Thanks for the great tutorial Nick! My combat will definitely benefit from this streamlining. I did notice a little error in the code you posted. Shouldn't it be {{tooltip=Vulnerable (%)}} instead of {{tooltip=VulnerableCrit (%)}} when creating the 'Vulnerable' button?

    • @NickOlivo
      @NickOlivo  Před 2 lety

      Whoops. Good catch, Sam! Thanks for watching!

    • @samb8243
      @samb8243 Před 2 lety

      @@NickOlivo No worries Nick, thanks again for the great content!
      I did have one more question. I tried to edit the 'VulnerableCrit' button with the code you added: !autobutton --editbut {{name=VulnerableCrit}} {{style=color: red;font-family: pictos custom;font-size: 1.5rem; padding-top:1px;}}
      But the character for autobutton changed to a red 'J' letter instead of the other character previously used. Is this due to it not being a 'pictos custom' character as written in the code, but a normal one?

    • @NickOlivo
      @NickOlivo  Před 2 lety

      Dang, I need to get more sleep. Change the J to tt and you should be good. Sorry about that.

  • @benfoshee1899
    @benfoshee1899 Před 4 měsíci

    Is there a way to setup buttons to do only one part of damage from a creatures attack?
    Ex: A creature does 1d6 slashing and 1d6 necrotic against a Barbarian character. The Barbarian is in a rage and has resistance against slashing - what would the code be for making sure the barbarian gets all of the necrotic and half of the slashing?
    So there would have to be buttons for all damage1, half damage1, all damage2, half damage2.

    • @NickOlivo
      @NickOlivo  Před 4 měsíci

      I'm not aware of a way to do that, sorry. Your best bet would be to post over in the Roll20 forums - app.roll20.net/forum/category/46806

  • @agitadora60
    @agitadora60 Před 2 lety +3

    Can this be applied to multiple targets?

  • @alexphipps352
    @alexphipps352 Před rokem +1

    This would also be super useful if it did it on all attacks

    • @NickOlivo
      @NickOlivo  Před rokem +1

      When you say "all attacks" do you mean so the players could automatically apply damage that they'd taken to their tokens?

    • @alexphipps352
      @alexphipps352 Před rokem +1

      @@NickOlivo No sorry. Badly formatted. So it would work with not just spells. So attack from all weapons'

  • @ethankellerman2932
    @ethankellerman2932 Před rokem +1

    now i like to put my health into the 3rd bar for "red HP" how do i change the script so that it still applies?

    • @NickOlivo
      @NickOlivo  Před rokem +2

      Hi Ethan! I think you can do that by changing line 26 of the script to read hpBar: 3,
      Best of luck, and happy gaming!

    • @ethankellerman2932
      @ethankellerman2932 Před rokem

      @@NickOlivo thanks so much!

    • @johntrollinski8549
      @johntrollinski8549 Před rokem +2

      Just had this problem myself, changing the line did not work for me. If you still have the problem or for anyone wondering, this command will resolve the issue:
      !autobut -hpBar / --bar

    • @CucoNY
      @CucoNY Před rokem

      @@johntrollinski8549 where do you place this

  • @malistair7476
    @malistair7476 Před 3 měsíci

    Sir, not sure what I am doing wrong, but when I attempt to add a button with your instructions and even with the autobutton create feature I get no results. It seems to be bugging out at the math section. Can you assist?

    • @NickOlivo
      @NickOlivo  Před 3 měsíci

      Hi @malistair7476 - your best bet will be to post over on this forum, and the folks there should be able to help - app.roll20.net/forum/category/46806 Best of luck, and happy gaming!

  • @benfoshee1899
    @benfoshee1899 Před rokem

    Is there a way to make a button that effects temp hp?

    • @NickOlivo
      @NickOlivo  Před rokem

      I don't think the script supports that, sorry.

    • @benfoshee1899
      @benfoshee1899 Před rokem

      @@NickOlivo No worries, I made a button for chat-set attr to effect temp_hp and just type in the ammount of damage it did, then it whispers to me how much damage is left over after it takes away the temp hp to let me know how much to take off of HP and I just press the button again to do the remainder to actual HP

  • @MrNhoj509
    @MrNhoj509 Před rokem

    Is this 5E specific?

  • @godsdemon7441
    @godsdemon7441 Před rokem

    My only disappointment is this is for DnD.

    • @NickOlivo
      @NickOlivo  Před rokem

      You can always contact the script's author and see if they can add support for that system