AngryBeaver / beavers-crafting

Crafting module for Foundry
MIT License
8 stars 3 forks source link

[Feature Request] Spell consumption #14

Closed Janner3D closed 1 year ago

Janner3D commented 1 year ago

Would it be possible to allow spells to be part of the recipe?

For example: An item has a spell as part of the recipe. When crafted, it referenced any spells or spell scrolls with the same name on the character sheet. As part of the crafting process, the recipe could prompt the crafter to use the spell or scroll as if rolling them, thus expanding the scroll, or spell slot.

AngryBeaver commented 1 year ago

Well probably not as you like to see it but it will become possible.

Last weekend i already started implementing the upcomming macro addition. You can code what ever you want into it. The macro will recive the actor and a recipeResult. This macro gets executed then before updating the actor according to the result and sending the chat message wich will also be included in the recipeResult.

With this addition many of my requests for this module gets possible while i do not need to make my code increasingly complex with every possible combination of things that are needed :-)

So yes it will become possible but without much ui support and you need to script it.

AngryBeaver commented 1 year ago

btw i am typically working on weekends only so rough estimation: this weekend or maybe i got some spare time during xmas holidays.

Janner3D commented 1 year ago

So yes it will become possible but without much ui support and you need to script it.

I'm a fairly novice scripter, so I'll probably struggle with this 😅

AngryBeaver commented 1 year ago

Now possible with macros although this is not simple to implement if you want it fullout correctly. A simple solution can be found: This is no simple task to give you an idea for simple spell consumption you can