fantasycalendar / FoundryVTT-Sequencer

This module implements a basic pipeline that can be used for managing the flow of a set of functions, effects, sounds, and macros.
Other
47 stars 25 forks source link

[REQUEST] - Add-a-named-location method #316

Closed MrVauxs closed 2 weeks ago

MrVauxs commented 3 weeks ago

Is your feature request related to a problem? Please describe. When working with modules, sometimes you need to delegate stuff such as location of an effect outside of Sequencer. The problem is that in order to add that location to a sequence, you need to replace every instance of that location in each section from .atLocation("test") to .atLocation(yourData).

Describe the solution you'd like It would be great to have a CoreMethod that adds a generic named location to the Sequence without it being attached to other existing sections.

Example

const location = await crosshairs();

new Sequence()
  .addLocation("loc", location)
  .effect()
    .atLocation("loc")
    .file("jb2a.antilife_shell.blue_no_circle")
  .play()
Haxxer commented 2 weeks ago

Added in 3.3.1