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

[help] fog of war scripting?

Hi Guys,

I have been looking through the API coding abd i didnt see anything that could help. Is there any way to target the fog of war? ie: reveal an area, see if an area is hidden. I am trying to make a script that will automatically reveal an area around an object.
February 01 (11 years ago)
Chad
Sheet Author
Hi Stephanie,

I was curious about your question so I spent some time poking around various commands that give lists of all objects in the campaign and trying to track changes to those. Except for it being on and off, I don't see any way that fog of war is tracked on the server, at least not accessible to the API.

It's obviously tracked somewhere, but I can't find it.

Chad



February 01 (11 years ago)
If you use dynamic lighting instead of the fog of war, you could turn off/on the light via the API.
February 01 (11 years ago)
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
Or change the graphic source file to a solid black JPG.. maybe haven't tried that.
February 02 (11 years ago)
Just as an extra bit of background, I have a mini map set up with the dynamic lighting so my players can see where they have been. I was hoping to have the minimap auto expose as they moved.

Stephen S. said:
Or change the graphic source file to a solid black JPG.. maybe haven't tried that.

I have been experimenting with having the rooms move from GM to Map layer as the players move onto them. Seems to work well as long as you know the dimentions of the rooms and the room names.
February 02 (11 years ago)

Chad said:

Hi Stephanie,

I was curious about your question so I spent some time poking around various commands that give lists of all objects in the campaign and trying to track changes to those. Except for it being on and off, I don't see any way that fog of war is tracked on the server, at least not accessible to the API.

It's obviously tracked somewhere, but I can't find it.

Chad




Thanks Chad, I had been looking as well, and I could see any references. i was hoping it might besomething that was new and just hadnt been added to the API wiki.