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 .
×
Create a free account

Is This Possible !!! (Super Helpfull if it is)

So i am always learning more about roll 20 api and basic commands and i know that you can use ChatSetAttr to make Command set attributes i know you can run commands using a  journal entry  would it be possible to use a journal entry to make the code for an attack once and then add it to as many stat blocks as you want or maybe make a spell and make it add it maybe using a macro and calling the sheet or maybe by selecting the token probably by macro is easier heck even having an api that would facilitate the coding of like have the atack on the handout  and you click a button on the character sheet and it calls to the handout to run the attack or spell as if that character sheet had casted it this is to replace the compendium attacks and spell adding that we still dont have seriously roll 20 we want this
1654533794
GiGs
Pro
Sheet Author
API Scripter
Can you rewrite that question with punction? sentences and paragraphs. I'm not beign snarky, but I just can't follow that.
1654548407
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Provided I understand, I believe the answer to be "Yes", though in the case of spells and attacks, I would caution some research and testing. there are a lot of attributes in a spell. I considered writing an API for this once upon a time, that would display a formatted spell or item in the top part of the journal, parsed from carefully formatted text in the bottom, along with an auto-generated ChatSetAttr button to send it to a chosen sheet. It sounded like a lot of work. :) Here are some things to look at for similar projects: 5e Class Feature writer  -  Shaped Sheet only OGL Sheet Inventory Writer
I think i have solved the problem just need to do some coding to make it actually work just came here to check if any one know if its possible to make it so a macro creates a handout so i can make a character that has all the handout code on it and i transfer them easier between games if not i already know how to do what i wanted anyway also thanks keith this would have been impossible without your advice seeing those pieces of code save me a lot of time
1654715544
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Not through a macro alone. A script could be written that would do this, but I'm not aware of anything automatic built expressly for that.