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

[Help] Customizable Roll Listener - Individual Crits

I was able to configure Customizable Roll Listener to respond to attacks from different individuals But as soon as I put a roll result like trying to find a critical, it won't work Help?
1650541268

Edited 1650541380
Pretty sure if its a 5e by roll20 sheet that you have to do r1=##, then make a duplicate of this crl entry for r2=##.  The reason is because if the sheet rolls normal, it does not read both.  That first entry is X AND Y, not X and/or Y.   I really wish one of  the guru's would clean this old script up cause it is amazing.  Theres a debug tool left on in it and the entry fields are asking for unconventional entries than what the USER DM is used to from all the modern scripts so its hard to understand what one needs to put in the fields.   EDIT:  Also if the character sheet does not feed the name into the template then its going to fail to fire.  That setting is in the cog on each sheet or outside on sheet default settings.  I avoid using names for triggers cause my players fiddle with names a ton.  Instead I find something unique in the template that they'll never change.  
DM Eddie said: Pretty sure if its a 5e by roll20 sheet that you have to do r1=##, then make a duplicate of this crl entry for r2=##.  The reason is because if the sheet rolls normal, it does not read both.  That first entry is X AND Y, not X and/or Y.   EDIT:  Also if the character sheet does not feed the name into the template then its going to fail to fire.  That setting is in the cog on each sheet or outside on sheet default settings.  I avoid using names for triggers cause my players fiddle with names a ton.  Instead I find something unique in the template that they'll never change.   Already making sure that the name I'm looking for feeds onto the character sheet, so that shouldn't be the issue. I am looking for AND rather than AND/OR. I want the listener to find where an inline roll has been made AND made by character X. I'm well-versed in Java (not javascript, to be fair), and I'm confused as to why I find this harder/more complicated than programming itself, lol.
Maybe it would help if I make it crystal clear what I'm trying to accomplish. I'd like each of my characters to have a unique crit song that triggers when they, and they alone, roll a crit. So Hammond has one song if he crits, Eren has a separate song if she crits. Using the method at the very top, I've been able to get the listener to recognize when different characters are rolling attacks. But as soon as I tell it to look for critical rolls, the whole thing stops responding.
1650547158

Edited 1650547179
Daniel R. said: Maybe it would help if I make it crystal clear what I'm trying to accomplish. I'd like each of my characters to have a unique crit song that triggers when they, and they alone, roll a crit. So Hammond has one song if he crits, Eren has a separate song if she crits. Using the method at the very top, I've been able to get the listener to recognize when different characters are rolling attacks. But as soon as I tell it to look for critical rolls, the whole thing stops responding. You need to put the ampersands in and add their character sheet name to the entry and if its 5e by roll20, you have to make an entry for r1=## and an entry for r2=##.  Sadly you cannot combine them because then it fails to fire when the players rolling just once.  Just putting ## into the search field is because the search function is looking for the first numbers in the template that match the request, and in 5e by roll20, thats the mod= number which isn't going to have a dice roll therefore it will never crit.  You need to tell it to look for r1/r2=## so it skips ahead to the roll section of the templates.  
1650576101

Edited 1650579183
I've done that, though. Tried it the "r1=##&&Hammond" in addition to "r2=##&&Hammond" route. Still nothing. I've done as much debugging as I can with just the limited information I have. If I set listeners for both r1=## and r2=## to trigger on a crit, it's r1 that responds. But as soon as I put r1=##&&Hammond, it just stops working. And yes, I've tried it in conjunction with r2=##&&Hammond, and even an r3=##&&Hammond for good measure, since there's two mods (strength and proficiency)
The ampersand entry is not for adding additional search text like I thought, its for replacing spaces so the field doesn't continue on.  So if you wanted to search for "The Boat", you'd put "The&&Boat".  I thought as you did, but after testing it out, it seems its really just a space replacement.  Your only hope is that a script author picks it up and modernizes CRL.  You cannot get it to search for a specific players roll and respond only on crit/fumble.  That crit/fumble requires a ## entry in the first instead of text.  I tried to include a section of a template that would include the character name too but the problem then becomes the laziness of the 5e by roll20 sheet.  Instead of calling attributes, the template spits out the raw numbers so you couldn't do r1=##cs>20&&+Atsymbol{Name because the 5e sheet is inputing the manual attribute call number instead of the charactername entry.  If you try to do all the way from the start of the template there are numerous characters that CRL is just not prepared to take and if you try to html replace them the CRL entry goes corrupt and you have to delete and remake.  
You could create a crit entry that whispers the GM with X apichat buttons that you can then manually fire on your end when a specific crit fires for said character.  
1650640817

Edited 1650640833
Damn. Thanks for trying, though.  I may go that route. I did create a macro that can play a character-specific song as a token action. The button idea wouldn't be hard to implement with that