Script:Dynamic Lighting Animation
From Roll20 Wiki
Version: 2.0
Last Modified: 2015-01-08
Code: Dynamic Lighting Animation
Dependencies: splitArgs, IsGM Auth Module
Conflicts: None
The following script creates the API commands !snapshot
, !reset
, !run
, and!stop
.
Syntax
!snapshot <frames>
!reset
!run
!stopFormally:
S
→ !snapshotframes
S
→ !reset
S
→ !run
S
→ !stop
frames
→ integer
Parameter | Values |
---|---|
frames | The number of frames to hold the snapshot when running the animation. One frame is equal to 1/20th of a second, so a value of 20 will hold the snapshot for 1 second. |
Using the commands
Only the GMs can use these API commands.
In order to "record" the animation, move the player bookmark to the page with the DL layer you want to animate. Set up the paths on the DL layer as you want, and then use the !snapshot
command.
The animation record will persist between game sessions, although the script is not set up to record different animations for different pages.
Once you're ready to show off your fantastical magical labyrinth to your players, use the !run
command. Stop the animation with !stop
.
You cannot record additional snapshots while the animation is running. If you need to change the animation or you're ready to record a different one, you need to use !reset
to clear the old animation.
Notes
This script does not create or delete paths. If you want a frame with one or more paths missing, you can simply move them off the map.