Toggling Light Sources On & Off in Roll20
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
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!
Thank you for the kind words, Steven! I'm glad you find the vids helpful. Happy Gaming!
Short and simple Explanation for a great tool. Thanks and Cthulhu fhtagn!
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.
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.
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.
Awesome!
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.
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.
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.
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.
@@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.
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 :)
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!
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?
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!
Nick, Could you update this for the new UDL calls please?
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
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
@@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.
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
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!
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.
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?
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!
@@NickOlivo Thank you so much!!
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.
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.
@@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.
@@NickOlivo That worked perfectly. Now, each one has their own "TurnOff" and "TurnOn" token actions. Very cool!! Thanks.
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!
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
@@NickOlivo Oh my god!! Totally did! Thank you so much, your videos are awesome!!
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.)
If you select the token right click it and and flip it vertically, I believe you'll get the desired result.
Hey, is there any option to use this macro with the new dynamic lightning feature?
I haven't tinkered with the new dynamic lighting feature yet, but I do plan on doing a video on it. Stay tuned!
@@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?