#DAE Goodberry macro
1 messages Β· Page 1 of 1 (latest)
Does casting the spell apply the effect to your chosen target? If not it is expected nothing happens
Since DAE only executes the macro when the effect is applied/removed
no effect is put on the actor after using the spell. neither is any berry appearing
Dragging the spell onto the actor applies the effect? In that case the caster should get the berry
when executing the macro out of the macro tab (while targeting the actor): still no effect, but a console error with undefined lastArg. (which will not happen if using the spell)
yes you can't execute that macro directly since it is setup for DAE
mind if we have a call and I share my screen? maybe that'll help π
So to reiterate:
The macro is executed on whoever the effect is applied to, the berry should be getting added with the effect
in 3 h yes, no rn
Should you not have a method of applying the effect to any one BUT the caster these are your options:
If you wish to apply active effects upon using an item from the item to the source actor or other actors your options are the following:
-Midi QoL includes a lot of automation, including effect application. Due to its complexity it is however not recommended to start out with it or install it if you just want the effect application part. https://foundryvtt.com/packages/midi-qol/
-Item Effects to Chat DnD5e prints all effects on an item to the chat when the item is rolled from where the DM may apply them as they wish. https://foundryvtt.com/packages/item-effects-to-chat-5e
-If you want a more player targeted approach, where whoever rolls the item is asked to apply the effect take a look at my module Effective Transferral. Whenever an item with an effect marked not to βtransfer on item equipβ is rolled, the one who rolled the item will be prompted with a dialogue to apply the effects to selected tokens. This has the advantage of not relying on the DM to choose and apply the effects, though depending on their settings the DM might still need to confirm the effect application. Should you have further questions feel free to ask me. https://foundryvtt.com/packages/effective-transferral
-Should none of these options seem enticing to you your only option is to write a macro for this purpose.
.nooo
You drag the item into the sidebar, go to the effects tab of the item set it up there then add the spell back onto the actor
the effect gets transfered and a berry created on the actor
To get berrys on anyone that isn't the caster see above
remove the original spell from the actor first to avoid confusion#
removed the spell from the actor. Now I got the "goodberries" item (consumable) in the itemtab and the spell "goodberry"
So it works
i created those.
now I need to add the code into the macro tab of the spell, right?
Sure
and then I need the spell to have an effect to execute that macro, still right?
yes
ok. do I need to add the effect on the DAE Tab?
no just via the effects tab
Effekte
that'll be a temporary one?
Probably for the best yes
Set the duration equal to whatever the goodberry duration is
Just to make it future proof
ok. so I add the effect, hit stackable to the stacking thingy.
yep
ok. duration of 86400 seconds π
now, i have to add the macro item macro effect, right?
since you put it in the item macro tab you need to select the item macro option from that option
exactly
Do I have to put in a value?
good to know π
ok. so now I'm ready to give the spell to the actor and use it, right?
I got the macro, i got the effect to execute it
using it won't do anything but yes
Adding it should add a berry to the actor
if it does we can go from there
it did
nice
So now we want a way to add that effect to other actors since we don't want just the caster to have berries
For that refer to this:
I got the "Transfer item to other players" feature, think it's from the lootsheet addon.
so that's covered.
ok that works too
Then I think you should be good
With the methods I mentioned yes
cause I want the berries to appear, when the actor casts the spell
yeah so use one of the methods I outlined
these ones, right?
In my totally biased opinion Effective Transferral is neat π
yes
If you go with Effective Transferral we'll have to edit the effect to not transfer on item equip before adding the spell to the actor (this also prevents the initial berry being added)
https://foundryvtt.com/packages/effective-transferral
Looks like the one I'd need π
Effective Transferral, a Module available for Foundry Virtual Tabletop
yeah, saw that on the bottom π
Take a look at the github for a demonstration video if you want
alright. I'll install it (and warpgate) and see if I can manage to make it work.
You should just need to untick the box (pictures found on the module page), readd the spell and be good to go
holy .. .that was easy. worked π
π
There are two issues with it currently:
IF the item gets deleted before the dialogue pops up it fails
The button on items in the sidebar doesn't work
I am working to fix the second later today, the former will be a little harder
now I just need to read, decrypt and understand the code of the macro and I'll be able to use all those functions for flameblade, create potion and all other spells/talents, where a new item is made/needed. π
yep π Happy macroing!
thanks for all the time!
No problem
Do you know how to change the code from crymic to give an already existing item rather than generating a new one in the code itself?
didn't get pinged, so sorry for the delay. Should be possible but I'll have to look through it give me like an hour at which point my lecture should be done
4hours sleep, sitting in lecture and still providing that tons of help? you got balls π
For future reference for me: https://gitlab.com/crymic/foundry-vtt-macros/-/blob/8.x/5e/Spells/Level 1/Goodberry.js
6 hours lecture block to be exact
been going since 8 am
what're you studying?
Try
const itemData = [game.items.getName("Gute Beeren").data];
chemical and biological engineering
awesome. I studied medical engineering π
@daring karma you saw this part right? replace the itemData definition in the macro with that
yeah, it worked like a charm
π
I am too tired to figure out how you would pull it from a compendium if that's the next question π
that's okay. I'm mostly working on imported stuff currently, since I'm testing and creating a ton.
Don't put too much stuff in your sidebar outside of compendiums as
A. everything in the sidebar gets sent to clients on login -> longer log in time
B. If you hit a critical point (100s of actors, 1000s of items) thigns will slow to a crawl
yeah, heard about that. as soon as I finished preparing all of waterdeep and the stuff I want, I'll start to export to compendiums.
Links will break if you linked to stuff in world
Links to compendiums are different to links in world
Which is why I usually link to compendium and pull my macro dummy items from compendiums
just FYI
well. why should it get boring? π
π€·ββοΈ
π
alright. I'll grab by boy from kindergarden and then see how I can make those berries disappear from the inventory, when they are used off. π take care
Make it a consumable item, set it to 1/1 charges, tick destroy on empty