Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Remove Vision Script And how to set that up with Macros

So i want to use the darkness spell against my players, but Id like the command to be macro instead of me individually going to every single token and removing the has sight tick box. I found a topic related to this with a command code, but i dont know how to set that code up and use it as a macro. any help in that regard would be most appreciated

July 27 (5 years ago)
The Aaron
Roll20 Production Team
API Scripter

You could actually do this with TokenMod:

!token-mod --off light_hassight --ids @{Bob the Slayer|character_id} @{Tommy Hawkfeet|character_id}

You just need to specify the character_id in the --ids parameter.  You could use the --flip instead of --off if you want a single macro that toggles it on and off.

Additionally, people often find setting the los_angle to 0 instead of turning off sight.  This removes vision but still prevents tokens from moving through walls.  If you're using UDL, you'd need a few more settings.

So....whats a tokenmod? sorry still new to the UI and its usage.

July 27 (5 years ago)
Kraynic
Pro
Sheet Author

Keep in mind that using an api script will require you to upgrade from plus to a pro subscription (unless you are wanting to set this up in game that was created by a pro subscriber).

July 27 (5 years ago)

Edited July 27 (5 years ago)
The Aaron
Roll20 Production Team
API Scripter

Ah, good point Kraynic.  TokenMod is an API script you can install via the 1-click script library.  But it does require a Game created by an active Pro Subscriber.  Without the API, what you are after is not possible.

Ah....damn....welp, thanks anyway