#DAE Goodberry macro

1 messages Β· Page 1 of 1 (latest)

gentle forge
#

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

daring karma
#

no effect is put on the actor after using the spell. neither is any berry appearing

gentle forge
#

Dragging the spell onto the actor applies the effect? In that case the caster should get the berry

daring karma
#

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)

gentle forge
daring karma
#

mind if we have a call and I share my screen? maybe that'll help πŸ˜„

gentle forge
#

So to reiterate:
The macro is executed on whoever the effect is applied to, the berry should be getting added with the effect

gentle forge
# gentle forge So to reiterate: The macro is executed on whoever the effect is applied to, the ...

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.

daring karma
#

ok. So to add the effect, i got into the DAE tab of the spell, hit the plus.

gentle forge
#

.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

gentle forge
daring karma
#

removed the spell from the actor. Now I got the "goodberries" item (consumable) in the itemtab and the spell "goodberry"

gentle forge
#

So it works

daring karma
#

i created those.

gentle forge
#

oh

#

dangit

daring karma
#

now I need to add the code into the macro tab of the spell, right?

gentle forge
#

Sure

daring karma
#

and then I need the spell to have an effect to execute that macro, still right?

gentle forge
#

yes

daring karma
#

ok. do I need to add the effect on the DAE Tab?

gentle forge
#

no just via the effects tab

daring karma
#

or in the effects tab?

#

ok

gentle forge
#

Effekte

daring karma
#

that'll be a temporary one?

gentle forge
#

Probably for the best yes

#

Set the duration equal to whatever the goodberry duration is

#

Just to make it future proof

daring karma
#

ok. so I add the effect, hit stackable to the stacking thingy.

gentle forge
#

yep

daring karma
#

ok. duration of 86400 seconds πŸ˜„

#

now, i have to add the macro item macro effect, right?

gentle forge
#

since you put it in the item macro tab you need to select the item macro option from that option

daring karma
#

Do I have to put in a value?

gentle forge
#

...I don't think so?

#

I never use item macros for that

daring karma
#

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

gentle forge
#

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

daring karma
#

it did

gentle forge
#

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

daring karma
#

I got the "Transfer item to other players" feature, think it's from the lootsheet addon.

#

so that's covered.

gentle forge
#

Then I think you should be good

daring karma
#

can I trigger...

#

the effect by using the spell?

gentle forge
#

With the methods I mentioned yes

daring karma
#

cause I want the berries to appear, when the actor casts the spell

gentle forge
gentle forge
#

In my totally biased opinion Effective Transferral is neat πŸ˜›

gentle forge
#

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)

daring karma
gentle forge
#

It is an option

#

And in active developement (I'm the dev if that wasn't clear)

daring karma
#

yeah, saw that on the bottom πŸ˜„

gentle forge
#

Take a look at the github for a demonstration video if you want

daring karma
#

alright. I'll install it (and warpgate) and see if I can manage to make it work.

gentle forge
#

You should just need to untick the box (pictures found on the module page), readd the spell and be good to go

daring karma
#

holy .. .that was easy. worked πŸ‘

gentle forge
#

πŸ˜„

#

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

daring karma
#

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. πŸ˜„

gentle forge
daring karma
#

thanks for all the time!

gentle forge
#

No problem

daring karma
#

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?

gentle forge
daring karma
#

4hours sleep, sitting in lecture and still providing that tons of help? you got balls πŸ˜„

gentle forge
gentle forge
#

been going since 8 am

daring karma
#

what're you studying?

gentle forge
#

Try

const itemData = [game.items.getName("Gute Beeren").data]; 
gentle forge
daring karma
#

awesome. I studied medical engineering πŸ‘

gentle forge
daring karma
#

yeah, it worked like a charm

gentle forge
#

πŸ‘

#

I am too tired to figure out how you would pull it from a compendium if that's the next question πŸ˜…

daring karma
#

that's okay. I'm mostly working on imported stuff currently, since I'm testing and creating a ton.

gentle forge
#

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

daring karma
#

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.

gentle forge
#

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

daring karma
#

well. why should it get boring? πŸ˜›

gentle forge
#

πŸ€·β€β™‚οΈ

daring karma
#

πŸ˜„

#

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

gentle forge