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

Problems with initiative macro [5e] [shaped]

I am trying to get a macro working for 5e Shaped that makes players roll their initiative with a d20+ modifiers, but I cant seem to get it to work. What I have tried 1: linking the token to the script and correctly associating the tokens name to the proper character sheet. 2: tried the scripts in both shaped and in communty, and have gotten neither to work. 3: i have tried the scrpit inside the tokem, in the tools bar, outside the token and in the options menue. I cant seem to get it to work. This is the script I am trying to get to work. %{Selected|npc_Initiative}.
From the  documentation  you should use %{Selected|shaped_initiative }
1472323546
Kryx
Pro
Sheet Author
API Scripter
Ed S. said: From the  documentation  you should use %{Selected|shaped_initiative } Correct. All macros were namespaced with "shaped" so that token macros can be named whatever without conflict. Thanks Ed.
Would someone be willing to add me to skype and help explain a little bit of this to me. Im trying to give my players the best experience possible. Dashiell.sarnoff is my skype
1472362337

Edited 1472365245
If you can't, i'm looking to ad d an attack roll, and one that includes a sneak attack, as well as attribute rolls.
I am not sure I can help but the sheet and all its attributes and macros are fully documented in a google document which is copy and paste-able from the link at the bottom of the sheet.  Where exactly are you stuck? Is it as simple as being able to add an attack to the sheet or more complicated in the details of said attack? For sneak attack, there are a few ways to go about it but the easiest is to have a standard attack and an additional sneak attack with the sneak attack damage added as the second damage.  I am not sure I understand what you mean by attribute rolls. You roll for checks and saves by clicking on the appropriate words in the sheet itself. What do you wish to customize here? Does this help? H
I see the documentation and i'm trying to learn it. If i'm trying to do an attack macro  %{NAME|repeating_attack_ID_attack} what would i put in the name section. I have tried looking through the character sheet for the name of the referenced attack, but I cant find it. I'm trying to simply everything for my players so they don't need to constantly look at their character sheet. Thanks for your resposne.
1472400001
Kryx
Pro
Sheet Author
API Scripter
NAME is the name of your character. Or you can use "selected" if you have it on a token macro. for ID see  Referencing Repeating Sections
I replaced the "Name" with "Selected" in the attack macro and then this happened. This is the macro i am using %{Selected|repeating_attack_ID_attack}  
1472415525
Kryx
Pro
Sheet Author
API Scripter
You must replace ID as mentioned in the documentation which is linked above.
I tried the id name method using. Macro: %{Selected|repeating_attack_KQ7zlCEzAgc9Spp5w5e_name} This is the error i keep getting. I tried the macro while selecting the monster tile
1472416622
Kryx
Pro
Sheet Author
API Scripter
Please reread the  documentation . The author and I spent a long time making it. @{NAME|repeating_attack_$0_name} would be used to read the name %{NAME|repeating_attack_$0_attack} would be used to execute the macro The documentation link I put above links directly to the section containing all the pertinent information.
I understand that there is a link to the documentation, and I have been reading it to try and understand it, i'm telling you i don't understand most of it, that's why i'm asking you for help.
1472416799
Kryx
Pro
Sheet Author
API Scripter
Me quoting it here won't make it any clearer, but the answer you seek is literally written right in that section: For example %{NAME|repeating_attack_$0_attack} will roll the first attack for the character NAME as if clicking the field on the sheet.
Does this work for npcs?
1472417207
Kryx
Pro
Sheet Author
API Scripter
The  NPC section addresses NPCs: Actions Example format: Attribute: @{NAME|repeating_action_ID_ATTRIBUTE} Macro: %{NAME|repeating_action_ID_action}
So what would I need to put if I wanted to have a macro for a bite attack,and then have the damage rolled? %{NAME|repeating_action_ID_action}
1472420371

Edited 1472420573
These sections of the Roll20 Wiki might help make things clearer: Attributes 6.1 Referencing Repeating Attributes 6.1.1 By RowIndex 6.1.2 By RowID You're attempting something quite advanced, and you'd benefit from mastering the basics first. After reading through the above, I recommend rereading this thread and the documentation you were linked to, and then try applying the knowledge that you've gathered from the Roll20 Wiki.
Dashiell S. said: So what would I need to put if I wanted to have a macro for a bite attack,and then have the damage rolled? %{NAME|repeating_action_ID_action} Dashiell, I know it is confusing so I am going to help you out. But I agree with the others that understanding repeating values and the shaped sheet documentation on repeating attributes and macros is going to extremely helpful in your case. I am assuming you are either creating a new attack macro or adjusting some of the coding withing an already established attack on the sheet. Otherwise, you really don't need any of this. I am also assuming you know how to find the ID of your attack and that it is KQ7zlCEzAgc9Spp5w5e from above post. Finally, I am assuming your character name is Wolf. If it is not, replace with the actual name from your character sheet. In your macro or code, referencing the attack macro  of this particular attack is done using the following code. You can replace Wolf with selected to be able to run this from your selected token but the ID has to be the same or you will get an error. Putting this into a macro will output the roll template in the chat with both the attack and the damage as that is how the sheet works. %{Wolf|repeating_attack_KQ7zlCEzAgc9Spp5w5e_attack} And just to be a little clearer, this code outputs the name of the attack, the one you typed into the sheet. For example Bite. Generally, a standard user, even a GM would not need to use this type of reference. @{Wolf|repeating_attack_KQ7zlCEzAgc9Spp5w5e_name} Hopefully this helps. Let me know what you get. H
1472449168
Jakob
Sheet Author
API Scripter
Stupid question, don't all ids start with a dash, and wouldn't you need to put a dash in there for things to work? I.e., %{Wolf|repeating_attack_-KQ7zlCEzAgc9Spp5w5e_attack}
Jakob said: Stupid question, don't all ids start with a dash, and wouldn't you need to put a dash in there for things to work? I.e., %{Wolf|repeating_attack_-KQ7zlCEzAgc9Spp5w5e_attack} That is certainly not a stupid question. I actually did not notice that until I started looking at all my ID's. That is pretty important thing to remember. H