Latest version | 2.1.7 |
---|---|
Minimum Core | 0.8.9 |
Compatible Core | 9.000 |
Last updated | 1 week ago |
Created | 1 year ago |
Authors | |
Languages |
English 日本語 |
Systems | All systems |
Dependencies |
socketlib |
Project source | Project URL |
Report bugs | Bug tracker URL |
Read-me | Readme URL |
This module implements a basic pipeline that can be used for managing the flow of a set of functions, effects, sounds, and macros.
It implements a fluid and very readable interface so that even common users can read exactly what the Sequencer will do.
Here's a guide how to create a Fire Bolt effect using the Sequencer and a few other modules:
https://github.com/fantasycalendar/FoundryVTT-Sequencer/wiki/MidiQOL-&-JB2A-Fire-Bolt
First you have to define a sequence:
let sequence = new Sequence();
Then, you can add functions and effects to it.
let sequence = new Sequence();
sequence.thenDo(async function(){
do_something();
});
sequence.wait(200);
sequence.thenDo(async function(){
do_something_else();
});
The Sequencer uses a method-chaining fluent interface, meaning you can continuously call functions on the sequence object, like so:
let sequence = new Sequence()
.thenDo(async function(){
do_something();
})
.wait(200)
.thenDo(async function(){
do_something_else();
});
To start the sequence off, you simply call .play()
on the sequence.
If you have Animated Spell Effects installed (https://foundryvtt.com/packages/animated-spell-effects), you can select two tokens and run this macro:
new Sequence()
.effect("modules/animated-spell-effects-cartoon/spell-effects/cartoon/water/acid_splash_CIRCLE_01.webm")
.atLocation(canvas.tokens.controlled[0])
.scale(0.3, 0.6)
.randomRotation()
.effect("modules/animated-spell-effects-cartoon/spell-effects/cartoon/water/acid_splash_CIRCLE_01.webm")
.atLocation(canvas.tokens.controlled[1])
.scale(0.3, 0.6)
.randomRotation()
.play();
You can read more about the module on the github page, which also contain more examples!
To install this package, open your Foundry Setup screen and navigate to your Module tab and click the Install Module button.
From there, you can either search for the package unique name: sequencer or copy its manifest URL:
And paste it to the input box at the bottom of your window.
You can install this package directly to your Forge account.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Advertisement cookies are used to deliver visitors with customized advertisements based on the pages they visited before and analyze the effectiveness of the ad campaign.
The mother of all effect modules! This let’s me easily script cool little animation sequences, including things like opening a door and playing the corresponding sound, playing special effects like having a token of the evil sorcerer teleport away right infront of the eyes of the PCs, or just have spell animations for the (n)PCs spells. A very nice Addition!
Thank you, Wasp, for making this!