Our great sponsors
-
mob-attack-tool
A module for Foundry VTT that offers a tool for handling mob attacks in the dnd5e system.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
You're welcome! I've actually written a module myself (Mob Attack Tool) which is why writing such macros comes pretty easy to me nowadays. Mind you, I'd never written a single line of javascript before I bought Foundry. :P
If you want to learn to write macros, try examining the macros from the Foundry Community Macros module. Then try changing parts of them, or reusing parts of one macro in a different one. Open up the console (by hitting F12) and pepper in some console.log( ... ); commands in your macro, in order to output whatever variable you place at the ... to the console while your macro executes. It's helpful to know how far a macro got before it ran into an error :)