Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

Swap Initiative - Alert Feat

1788207711

Edited 1788211239
I couldn't find an existing API Script that assisted with Swapping Initiative in the Turn Order quickly. Need comes from the Alert Feat in D&D 2024 Rules. I was able to "create" the script with AI assistance (I'm not an experienced or even novice coder).  As I'm a total newbie to such things, is it frowned upon to share AI generated Scripts?  If not, what is the proper method for sharing the script along with the Macro that I'm utilizing in my game?  I searched but couldn't locate the etiquette, etc. Also, it would be nice for more proficient eyes to glance over the script.  I looked over it, but I don't exactly follow everything it is doing in great detail. Thanks
Hi there!  Our full policy is here , but we'll also be adding it to the sheet and mod repository readme files soon as well. For what you're asking, the short version is we know AI powered code assistants are now pretty standard in the dev community, and our main concern is that you can stand behind your code. We do frown on publishing code a creator doesn't fully understand and couldn't troubleshoot on their own. Since you mentioned you were a novice coder (welcome to the coding community btw!) I'd recommend getting to where you can explain each part, and understand a bug if one came up. Walking through it line by line is a great way to learn. You're welcome to post your code block here and flag parts you're uncertain about. Many people in the community are usually happy to review! And once you understand it, then feel free to submit it to the repo. The code is your responsibility once you share it, and that does mean being able to support it.
1788308818
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi (Klauk)! If you are seeking to learn and understand more, the same agent that helped you write your code can walk you through and explain each part to you. For a short script, this can be a great learning tool.