Toggling Light Sources On & Off in Roll20

Sdílet
Vložit
  • čas přidán 13. 01. 2020
  • This video shows how to toggle light sources on and off via a macro in Roll20. Note that this requires you to have a Pro account, and the TokenMod API script to be installed. If you need help installing an API script, please see this video: • How to Install Roll20 ...
    The FlashLightOn macro:
    !token-mod --set light_hassight|yes light_otherplayers|yes light_angle|70 light_radius|15 light_dimradius|10
    The FlashLightOff macro:
    !token-mod --set light_radius|0
    My Patreon: / nickolivo
  • Hry

Komentáře • 39

  • @stevenlathrop7884
    @stevenlathrop7884 Před 4 lety +1

    Nick, I have watched all your videos so far and learned so many new ways to use Roll20. Keep them coming, you are very good at explaining things in your videos!

    • @NickOlivo
      @NickOlivo  Před 4 lety +1

      Thank you for the kind words, Steven! I'm glad you find the vids helpful. Happy Gaming!

  • @Ben-ew9eu
    @Ben-ew9eu Před 4 lety +1

    Short and simple Explanation for a great tool. Thanks and Cthulhu fhtagn!

  • @RisingPhoenixGallery
    @RisingPhoenixGallery Před 4 lety +2

    Nice to see a new video again. Thank you. You once again did a great job with the unique info, quick concise language. useful cut and paste code, and clear quick info about the video at it's start. Is this the fist in a series again? Should we expect a weekly Friday video again? No pressure.

    • @NickOlivo
      @NickOlivo  Před 4 lety

      Glad you liked it! I've got a few other ideas for vids coming soon, but my update schedule is going to be pretty erratic for the foreseeable future.

  • @sirlennon8941
    @sirlennon8941 Před 4 lety

    Hi Nick, your videos and tutorials are awesome! They enhance my games every time you release a new tip. I immediately went to adding this trick to my games.
    I noticed small error in your macro in the description. I was having an issue getting the FlashlightOn macro to check "All Players See Light" box. There is a small typo that fixed it.
    It needs to be "...light_otherplayers|yes..." It's missing an "s" at the end of player.

  • @CampervanCookout
    @CampervanCookout Před 4 lety

    Awesome!

  • @thisjust10
    @thisjust10 Před 4 lety

    hey I love all your videos! They've helped a ton! Something I haven't quite figured out...How do you handle light effects on tokens with dark vision, since we're really using the emits lightfield to be the dark vision? I've just been making a separate light token but it's a little clunky.

    • @NickOlivo
      @NickOlivo  Před 4 lety

      Glad you like them! To your question - it depends on what you're looking to achieve. If you want the token with darkvision to also be under the effect of a Light spell, then yeah, a separate token acting as that light source is probably the way to go. If your darkvision token happens to be giving off the same radius of light as the token has darkvision, then you can just check the "All Players See Light" box and that'll get what you want.

  • @martinbove1032
    @martinbove1032 Před 4 lety

    Hey Nick! Love your videos. Keep up the good job. Your channel has been very helpfull and the reason that I become pro in roll20. Thank you so much, and you reply almost every coment wich is awsome for people like me and everyone that watch this kind of videos. I have a request if I may, as you probably know the dynamic lightning has been updated, and I was wondering if you can tell me, or make another tutorial on how to interact with that interface. I cetranly used a lot of things that you have shown to make very intresting macros, but regarding this I just felt a lot behind (ProgramingSkill==0).I also had a lot of truble with wich direction certain fields on the tokens have and i couldn't find where to find that info. Once again thanks for everything that you do. Sorry for bad english.

    • @NickOlivo
      @NickOlivo  Před 4 lety +1

      Hi Martin - glad you liked the vids! I'm holding off on the dynamic lighting stuff b/c Roll20's still firming those features up. Once it's officially released I'll probably do a vid then.

    • @martinbove1032
      @martinbove1032 Před 4 lety

      @@NickOlivo Thx m,an. I love the way you explain and that you take the time to answer, truly remarcable. Keep up the good work man.

  • @dersies6347
    @dersies6347 Před 4 lety +1

    With the new dynamic light feature out, can you update this clean tutorial to set the dynamic light properties! Thanks for all your great work. youre turning DM zeroes into DM heroes :)

    • @NickOlivo
      @NickOlivo  Před 4 lety +3

      Thanks for the kind words! I plan on doing a vid on the new dynamic lighting feature once they've ironed out a few more of the issues. Stay tuned, and happy gaming!

  • @MrQuantumPhenomena
    @MrQuantumPhenomena Před 2 lety

    Great video and this worked really well, upon coming back I noticed this macro doesn't seem to work anymore would this be due to the Roll 20 light update. If so do you plan to do a revised version like with the map icons?

    • @NickOlivo
      @NickOlivo  Před rokem

      Hi MrQP - thanks for the heads up. I'll see if I can get an updated video for this in the near future. Happy gaming!

  • @GhostsniperAus
    @GhostsniperAus Před 2 lety

    Nick, Could you update this for the new UDL calls please?

  • @seangorby7468
    @seangorby7468 Před 4 lety

    Been following quite a few of your vids now, gotta say, love the content so far!
    Quick question for you or any others that might now, I took the macros for this guide and made token actions for my players that allow them to light torches, snuff them and to switch to dark vision. My only issue right now is that upon hitting the dark vision macro I still get a circle of bright light around that token... if I click the macro a few times it "shrinks" down to the right size. What am I doing wrong? Macro below:
    !token-mod --set light_hassight|yes light_otherplayers|no light_angle|360 light_radius|70 light_dimradius|-5

    • @NickOlivo
      @NickOlivo  Před 4 lety +1

      Thanks for the kind words, Sean! I think I see what's going on with TokenMod - when I run your command in chat, it works just fine, but when I put it in a macro, it seems to be converting the -5 to a +5, and then, when you click the macro again, it reduces the light_dimradius by 5, taking it down to 0, and then clicking it a 3rd time gets you to the desired -5. This looks like a hiccup, but I'm not sure if it's Roll20 or in TokenMod itself - you might want to let the script's author know, he has a forum post about TokenMod here - app.roll20.net/forum/post/4225825/script-update-tokenmod-an-interface-to-adjusting-properties-of-a-token-from-a-macro-or-the-chat-area/?pagenum=16

    • @seangorby7468
      @seangorby7468 Před 4 lety

      @@NickOlivo Will do kind sir. In the meantime, I figured it out... I think :P.
      Light Torch
      !token-mod --set light_hassight|yes light_otherplayers|yes light_angle|360 light_radius|40 light_dimradius|20
      Snuff Torch
      !token-mod --set light_radius|0 light_dimradius|20
      Darkvision (60ft)
      !token-mod --set light_hassight|yes light_otherplayers|no light_angle|360 light_radius|70 light_dimradius|-25
      Darkvision (90ft)
      !token-mod --set light_hassight|yes light_otherplayers|no light_angle|360 light_radius|100 light_dimradius|-25
      Something about having a torch out makes the -5 for darkvision be applied to the dim radius of 20 not literally changing it to -5. By setting both Light Torch and Snuff Torch to a dim radius of 20ft and then changing the -5 dim radius in both darkvisions to -25, this will subtract the -25 from the 20. Thus giving you the -5 that I was trying to achieve.
      Sorry if that's confusing but if you plug in the macros they should work nonetheless.

    • @NickOlivo
      @NickOlivo  Před 4 lety

      Hey Sean - I was just poking around the forums and came across someone having the same issue. Turns out if you want to have a negative value with TokenMod, you need to preface the - with an =
      Give this a try: !token-mod --set light_hassight|yes light_otherplayers|no light_angle|360 light_radius|70 light_dimradius|=-5

  • @TheFunkyTob
    @TheFunkyTob Před 2 lety

    Hi Nick,
    thank you for your Video! It was very helfpul. I was just wondering though, would it be possible to merge these two Marcos in to one Marco that toggles between on and off? I am very new to all this API and Macro stuff (just upgraded to an pro account yesterday), so i don't know how to put things together in the right order and solely depent on tutorials and forum posts so far, while bringing APIs and Marco to work for me and my players. But i saw a couple of Macros included in the DoorKnocker API, which allow toggling between opening and closing doors, with the very same button. So i was wondering if the same concept could be adopted to turning lights off and on. Thank you very much again!

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

      You left this here 2 years ago so you probably figured it out by now, but the answer is yes; just use the flip command instead of the set command.

  • @SirPalandar
    @SirPalandar Před rokem

    First, let me say I love the videos! Question though, does this no longer work? I have used it before and it was fantastic, did something change in roll 20?

    • @NickOlivo
      @NickOlivo  Před rokem

      Yes, Roll20's UDL update changed how this works - I've got another video that talks about that here - czcams.com/video/kWz0yYj6kII/video.html Happy gaming!

    • @SirPalandar
      @SirPalandar Před rokem

      @@NickOlivo Thank you so much!!

  • @randalthor6670
    @randalthor6670 Před 4 lety

    How can I do this, but not have those token actions connected to every token? So I used this to build both hooded and bullseye lanterns that can be shuttered/shut off. But I only want those token actions to work for their respective tokens, not pop up when I drag out an NPC or character.

    • @NickOlivo
      @NickOlivo  Před 4 lety

      I think you could do this by making a character sheet for the lantern and then give the players control over the lantern. Or you could just add the macro to a specific character's sheet on the Abilities page, and then it only works for them.

    • @randalthor6670
      @randalthor6670 Před 4 lety

      @@NickOlivo So, I made the lanterns just like you showed in your video. (The one I commented on before - I ended up just deleting those out and making sure I made the new ones on the correct layer. The new ones work fine, they aren't invisible.) So, it has a character sheet, though it is set up to be an NPC. I guess that is the difference? OK. I guess I can just delete the macro from the campaign page and put it on the individual items sheet. Thanks, I probably should have thought of that.

    • @randalthor6670
      @randalthor6670 Před 4 lety

      @@NickOlivo That worked perfectly. Now, each one has their own "TurnOff" and "TurnOn" token actions. Very cool!! Thanks.

  • @luxysama94
    @luxysama94 Před 3 lety

    Hi Nick! This was exactly what I was looking for. I was wondering, is there any way to create a macro that involved all the player's tokens? I want to toggle all their lights off and on when the ghost chases them but I have to do it manually because I don't know how to create a delay between macro commands... and when I select all the tokens and use "flashlighton" they automatically deselect and I have to select them again to turn them off... it's a bit of a mess hahah. Thank you!

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

      Hi Noah - I did another vid a while back that shows how to work with multiple tokens simultaneously. I think you could apply the concepts there to the scenario you described. czcams.com/video/QxiIZLiWjiA/video.html

    • @luxysama94
      @luxysama94 Před 3 lety +1

      @@NickOlivo Oh my god!! Totally did! Thank you so much, your videos are awesome!!

  • @randalthor6670
    @randalthor6670 Před 3 lety

    Is there a way to change the "facing" of the token. So that the light source - if going with a cone effect - isn't coming out the top of their head. Most of my tokens are close-ups of heads/faces so they can be recognized easily, so it looks weird that the light seems to be shooting out their brain. 😁 (Plus: Have you ever found a flashlight token? I haven't and I have looked in the Roll20 image vault several times.)

    • @adamtune
      @adamtune Před 3 lety

      If you select the token right click it and and flip it vertically, I believe you'll get the desired result.

  • @merlin6311
    @merlin6311 Před 4 lety

    Hey, is there any option to use this macro with the new dynamic lightning feature?

    • @NickOlivo
      @NickOlivo  Před 4 lety +1

      I haven't tinkered with the new dynamic lighting feature yet, but I do plan on doing a video on it. Stay tuned!

    • @brianpatterson3422
      @brianpatterson3422 Před 3 lety

      @@NickOlivo I've been searching desperately but haven't seen any updates since the new dynamic lighting feature came out. Either I'm not doing something right (very very possible), or this doesn't play well with the update. Do you happen to have any insight?