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 .
×

[5e Shaped] Need help with macros (Absolute noob here)

I've been trying to understand all of the macros and stuff for hours and hours and I have learnt quite a bit but it's really really complicated , there is so much info about all these different things involving macros but I don't even know what I'm searching for in the first place in order to get what I want . So maybe someone can give me some guidance if I tell you what I want . I have shaped sheet and I really like how the statbox and all the actions for the monsters are set up and that when you click them they roll for you and give you the description of the attack/spell and a bunch of other goodies depending on what's clicked. I want to know how I do this for a either a character or monsters that isn't in the SRD . I also want to create token macro's but I enter the macros I've found like %{kobold|repeating_actions_0_action} but nothing seems to work. I even messaged Kryx the creator of the sheet who helped me and I feel that the info is somewhat narrowed down but I know I'm going to fail repeatedly at attempting this and it's going to consume way more time than I've already spent on it.
I figured out how to place stuff in the statbox with actions and stuff, you have to be in edit mode and on the npc sheet . But I'm still completely clueless on how I create macros so I'd love some help with that.
1515268269

Edited 1515268314
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
If you have any ability in the sheet that you would like to become a token macro, simply click it manually. Then place your cursor in the chat input field like you were going to type and press the up arrow. That will show the last command that was sent to chat. You can select and copy that, then go to the abilities tab on your character sheet and create a new token macro. Name it, paste the code in the code box and click the check box for token macro.
1515270924
Kryx
Pro
Sheet Author
API Scripter
I would highly recommend not using the above method. The sheet may change and then the formula for those abilities would change. There is a method outlined on the wiki that will reference the sheet's macros. For example: %{NAME|shaped_spells} or %{ID|repeating_offense_REPEATINGID_roll}
1515279481
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Thanks, Kryx. Mine was more of a generic answer, I suppose, for total non-programmers on any sheet. Personally, I use your script to make token actions, but James B didn't have that option.
Thanks! The first method is real easy but I'm starting to get the jist for macros even though they mostly fail a few times before I get them to work.
1515355428
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
My suggestion would be to follow Kryx's advice and take the time and effort to learn the syntax. It's ultimately more rewarding not only for the reasons he states, but will open up new ideas for possibilities you hadn't even considered yet. My method works, but it's very sledge-hammery.