Skip to content

[Feature Request] Add the ability to add a macro as a result of the recipe to be launched #117

@p4535992

Description

@p4535992

Thanks to the hook created by you "beavers-crafting.processed", I can manage my use cases, but I force too many people to go through me for the integration of their stuff and I got this idea and if we allow to add as result not only the a resulting item, but directly a macro ?

Let me explain better when the crafting reaches 100%, instead of creating the item on the actor we launch a macro with the arguments "actor", "recipe", "result", "processed" valued, leaving the update of the actor to the macro (similar to the item piles solution https://github.com/fantasycalendar/FoundryVTT-ItemPiles/blob/46295cb0850c1b559ab773dd030f558315167e86/src/helpers/utilities.js#L337).

With this solution I could at that point handle any use case without bothering you further, I also think it is a useful solution for any system not just Dnd5e.

From a code point of view it seems feasible to me what do you think ?

If it is something you would be willing to consider I can try to do a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions