Speeding Up Combat in Roll20 with the AutoButton API Script

Поділитися
Вставка
  • Опубліковано 7 вер 2024
  • 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.githubuser...
    The Autobutton Forum Post is here - app.roll20.net...
    The pictos font tables are here -wiki.roll20.ne...
    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

КОМЕНТАРІ • 62

  • @ademiranda2
    @ademiranda2 2 роки тому +6

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

    • @NickOlivo
      @NickOlivo  2 роки тому

      Thanks for the kind words! Happy gaming!

  • @neepers
    @neepers 6 місяців тому

    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  6 місяців тому

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

  • @Tenkin211
    @Tenkin211 2 роки тому +1

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

    • @NickOlivo
      @NickOlivo  2 роки тому +1

      Glad they were helpful! Happy gaming!

  • @revelationmd
    @revelationmd 2 роки тому +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.

  • @nicolaeorengo20
    @nicolaeorengo20 2 роки тому

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

    • @NickOlivo
      @NickOlivo  2 роки тому

      Glad it was helpful! Happy gaming!

  • @TheBierp
    @TheBierp 2 роки тому +1

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

    • @NickOlivo
      @NickOlivo  2 роки тому

      Glad you liked it! Happy gaming!

  • @elrikmordner
    @elrikmordner 2 роки тому +1

    This is nothing but awesome! Thank you!

    • @NickOlivo
      @NickOlivo  2 роки тому

      Glad it was helpful! Happy gaming!

  • @nightfr09
    @nightfr09 Рік тому

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

  • @I..cast..fireball
    @I..cast..fireball 2 роки тому +3

    btw you can just click normal damage twice if vulnerable.

    • @NickOlivo
      @NickOlivo  2 роки тому

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

  • @ChrisCamp914
    @ChrisCamp914 3 місяці тому

    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  3 місяці тому

      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

  • @sefnerr
    @sefnerr 2 роки тому +1

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

    • @sefnerr
      @sefnerr 2 роки тому

      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  2 роки тому

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

  • @JustIT69
    @JustIT69 2 роки тому

    This is so good. Thanks for posting.

    • @NickOlivo
      @NickOlivo  2 роки тому

      Glad you liked it! Happy gaming!

  • @thenannymoh
    @thenannymoh 4 місяці тому

    mind blown

  • @Dude80525
    @Dude80525 Рік тому

    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  Рік тому

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

    • @Dude80525
      @Dude80525 Рік тому

      @@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 Рік тому

      ua-cam.com/video/bOvhOSvevow/v-deo.html

    • @NickOlivo
      @NickOlivo  Рік тому

      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.

  • @kidtruck9157
    @kidtruck9157 2 роки тому

    Nice! Ive been looking for something like this

    • @NickOlivo
      @NickOlivo  2 роки тому

      Glad it was helpful! Happy gaming!

  • @I..cast..fireball
    @I..cast..fireball 2 роки тому +1

    sweeeeeeeeeeeeeet

  • @agitadora60
    @agitadora60 2 роки тому +3

    Can this be applied to multiple targets?

    • @NickOlivo
      @NickOlivo  2 роки тому +1

      Yep, it can. Happy gaming!

  • @alexphipps352
    @alexphipps352 2 роки тому +1

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

    • @NickOlivo
      @NickOlivo  2 роки тому +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 2 роки тому +1

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

  • @chrislupton7521
    @chrislupton7521 Місяць тому

    Does anyone know if autoButtons currently works? I've been trying to get it working all evening, found a script version that compiles, but on generating an attack, it doesn't trigger the buttons

  • @samb8243
    @samb8243 2 роки тому

    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  2 роки тому

      Whoops. Good catch, Sam! Thanks for watching!

    • @samb8243
      @samb8243 2 роки тому

      @@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  2 роки тому

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

  • @ethankellerman2932
    @ethankellerman2932 2 роки тому +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  2 роки тому +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 2 роки тому

      @@NickOlivo thanks so much!

    • @johntrollinski8549
      @johntrollinski8549 2 роки тому +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 Рік тому

      @@johntrollinski8549 where do you place this

  • @benfoshee1899
    @benfoshee1899 6 місяців тому

    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  6 місяців тому

      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

  • @malistair7476
    @malistair7476 5 місяців тому

    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  5 місяців тому

      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 Рік тому

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

    • @NickOlivo
      @NickOlivo  Рік тому

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

    • @benfoshee1899
      @benfoshee1899 Рік тому

      @@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 Рік тому

    Is this 5E specific?

  • @godsdemon7441
    @godsdemon7441 Рік тому

    My only disappointment is this is for DnD.

    • @NickOlivo
      @NickOlivo  Рік тому

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