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

How do I copy Macros/roll formulae from chat box results

Hi there I recall a couple months back finding somewhere a way to copy a formulae I can post into a macro to be able to make adjustments and give myself token buttons without having to write out the macro, look up value names or try to remember what the correct style formatting was This was the original copy I made (with some minor tweaks to make it NPC friendly) @{selected|wtype}&{template:simple} {{rname=^{init-u}}} {{mod=@{selected|initiative_bonus}}} {{r1=[[@{selected|initiative_style}+@{selected|initiative_bonus}@{selected|pbd_safe}[INIT] &{tracker}]]}} {{normal=1}} @{selected|charname_output} Now I have since forgotten this process and have been having great difficulty copying rowID to make on screen buttons for attacks to streamline control for players, often having to drag the attack into the macro bar and copy it letter by letter manually (which I'm sure people are aware is quite challenging if it has too many lowercase L and uppercase I as they look exactly the same in roll20 font) I am aware that instead of a macro like this %{Cecelia Manius|repeating_attack_-N4qMQQYaF9cyNaj4x1s_attack} I could have a macro like this %{Cecelia Manius|repeating_attack_$0_attack} however then whenever a player adds a new weapon to their sheet or reorders anything it can mess up all of the macros, requiring me to fix it for them can anyone recall how I could have possibly copied the initial initiative macro from the text chat output? I remember it being game changing for me when I discovered it and didn't manage to write a tutorial before I forgot the method
1662274697
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Kiki! If you want to see exactly what was sent to chat, click in the chat box and press the up arrow. If you want the like your second one (the one with the id, instead of the row number) it will not be disturbed by re-ordering. To see it, drag the roll button (any part of the sheet that you click on for a result) to the bottom of the character sheet window,. You'll see a little drop zone appear at the bottom of the sheet, that will place that action in your macro bar. The title of that is the macro with ID number.
omg I feel like such an idiot. just press the up arrow... thank you so much. In regards to RowID I have been using that method you suggested to find the value, but surely there must be a method of copying and pasting that value right? or is the only method available to manually type it across? I've tried copying it from the element inspector on my browser but the chat result and actual call seem to have different values
1662328118
Kraynic
Pro
Sheet Author
Kiki said: In regards to RowID I have been using that method you suggested to find the value, but surely there must be a method of copying and pasting that value right? or is the only method available to manually type it across? I've tried copying it from the element inspector on my browser but the chat result and actual call seem to have different values If you roll the ability from the quick macro bar and then put your cursor in chat and hit the up arrow, it will display the ability call (which will include the row ID).
1662328628
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Two things to look out for when using the inspector: That you are getting the ability id and not the character id, and that you copy the entire id. All ids begin with a hyphen: -N4qMQQYaF9cyNaj4x1s Also, if you do get the character id, you can use that in the macro as well: %{-LpLKBIQr4tsr91mXqui|repeating_attack_-LpLRqDGWuIpeZJZw4ci_attack} The advantage here is the same as using the id for the attack. If the character changes their name, the macros do not need to be updated. It's also a quick cross reference to make sure you are copying the right id. This disadvantage is that using the id will cause the macros to break when using the Character Vault, if that is something that applies to you. I know you have the Plus tag next to your name, but if the game you are doing this for was created by a Pro user, the "Token Action Maker" script does all this with one macro. Afterwards, the macros do not require the script to continue functioning.
1662383569

Edited 1662390415
Kiki
Plus
thank you guys so much. I've been trawling through the forums for this for over a month now and getting caught up in all the beginner level "how to write an emote macro" stuff. I may feel like an absolute fool for not having worked this out but I'm very glad I asked and really appreciate your guys time giving me the answer I was looking for Regarding character ID I tend to just use %{selected|} at the moment and set them as token actions, since they then only pop up when the token is selected it seems to be a nice way to keep things simple, thank you very much for the tip though
1662406321
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
It took me a long time when I was starting out to figure out how IDs work, especially how to find them.