Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need better example for usage of AA ApplyEffectsToTemplate #260

Open
Terrox opened this issue Dec 28, 2022 · 1 comment
Open

Need better example for usage of AA ApplyEffectsToTemplate #260

Terrox opened this issue Dec 28, 2022 · 1 comment

Comments

@Terrox
Copy link

Terrox commented Dec 28, 2022

Need a screenshot or something, I put AA ApplyEffectsToTemplate in Item Details -> Fields On Use Macros but get "midi-qol could not find macro AA ApplyEffectsToTemplate"

The macro itself has unworking code in it.
AAhelpers.applyTemplate(<midi arguments here>) from

{"_id":"UwyXiTHK3Q518uLm","name":"AA ApplyEffectsToTemplate","type":"script","author":"E4BVikjIkVl2lL2j","img":"icons/svg/dice-target.svg","scope":"global","command":"//On use macro to apply an item's active effects to the placed template instead of applying through the normal midi QoL workflow \n// requires midi qol, advanced macros and Active Auras \nAAhelpers.applyTemplate(<midi arguments here>)","folder":null,"sort":0,"flags":{"furnace":{"runAsGM":false},"combat-utility-belt":{"macroTrigger":""},"core":{"sourceId":"Macro.fHwT4N13IcbW4D3I"},"advanced-macros":{"runAsGM":false}},"ownership":{"default":0,"E4BVikjIkVl2lL2j":3},"_stats":{"systemId":"dnd5e","systemVersion":"2.0.1","coreVersion":"10.283","createdTime":1662274930163,"modifiedTime":1662274930163,"lastModifiedBy":"GrX6tFOozYFBnDHq"}}

Can do ItemMacro with 'AAhelpers.applyTemplate(args);' Only Called Once Template Is Placed.

@MrPrimate
Copy link
Collaborator

If you take a look at the "Spike Growth" spell in the sample items compendium you can see how it as applied there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants