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

Power Rangers Macro/Sheet Roll Template

Hi All! First off, complete newbie at using any kind of Macros or writing them, so I'm hoping that someone might be able to help me. Looking at the Power Rangers sheet specifically, there's a built in sheet roller that will roll skills with specialisations (using a ladder of 1d2,1d4,1d6,etc. kh1) and will roll either 1d20, 2d20kh1 or 2d20kl1 depending on whether or not it's a normal, snag, or edge. The template compares the roll to a difficulty you specify when you click the button, and tells you whether you suceed, fumble or critical. Criticals depend on the ladder roll being the highest (2 on a 1d2) and the skill being a success by the total. Using the chat box and the upwards arrow,   &{template:powerrangers} {{character_name=@{Michael|character_name}}} {{title=might}} {{difficulty=[[?{Difficulty?|10}]]}} {{ladder=[[1d2]]}} {{auto=[[0]]}} {{total=[[0]]}} {{result=[[0]]}} {{roll=[[?{Edge, Snag or Normal?|Normal,1d20|Edge,2d20kh1|Snag,2d20kl1}]]}} I want to do a macro for a Grid Relic Weapon skill, so I know I need to change the title, and I'll manually have to edit the ladder.  &{template:powerrangers} {{character_name=@{Michael|character_name}}} {{title=grid relic weapon}} {{difficulty=[[?{Difficulty?|10}]]}}{{ladder=[[{1d2}kh1]]}} {{auto=[[0]]}} {{total=[[0]]}} {{result=[[0]]}} {{roll=[[?{Edge, Snag or Normal?|Normal,1d20|Edge,2d20kh1|Snag,2d20kl1}]]}} So from what little I can work out this will, for example, let me set the difficulty, let me choose edge, snag or normal, and roll 1d2kh1 (I appreciate that last part is currently superfluous!), however the total always shows as 0, the result is always a fail even if the roll is higher than the difficulty. Can anyone help me with this? Feel free to explain it as if I'm a five year old! :) 
1644420648
GiGs
Pro
Sheet Author
API Scripter
The fact that there are a bunch of =[[0]] in there sugggests the sheet is using Custom Roll Parsing. That likely requires input to be in a very specific form. It looks like the only difference is this: {{ladder=[[{1d2}kh1]]}} I'd guess the parser is using a method that isnt compatible with {}kh1 groups, and when it finds something its not compatible with, it returns a value of 0. If that's the case, there's no way for a user to fix this - you'd need to be able to edit the sheet, requiring a Pro subscription, and then figure out how tofix it.
1644420764
GiGs
Pro
Sheet Author
API Scripter
Then again, if it's using CRP, it is only triggered if launched through an appropriate action button, not a roll button, so creating an oappropriate roll template string won't work. That's another potential problem, and the solution is the same.
1644431480

Edited 1644431520
I actually copied the kh1 part from a different character's skill check when I was trying to work out how they applied the Specialisation bonus (if you have a d4 with a specialisation it rolls 1d2, 1d4, kh1) as the Grid Relic Weapon skill also has a specialisation, so I don't think it's that but I could be wrong! The game essentially has no room on the sheet for adding extra skills, but being the White Ranger gives you a weapon that you can only use with a Grid Relic Weapon skill, the die of which goes up as you level, so with nowhere to put the skill I was essentially hoping to figure a work around for my player. If I hit enter with that code in the chat bar (I pressed the up arrow on the keyboard to populate the entry space with the last posted message) then even with a success it still shows as 0 and Fail. If it's a CRP then I guess there's no joy, thank you for looking at least! :)