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

Special effect based on roll result?

Hey Fam, I was just wondering if it were possible and / or if anyone knew of a way to have a macro look for roll result and perform another action based on specific result.   Use Case:  When my group plays on Friday the 13th, and any die results in a 13 something crazy cool happens, and if we had a macro or something that would fire off whenever there was a result of 13 that would make it easier to do the things.   Is it possible to add some sort of listener to the chat roll results and when a 13 is a result on a roll, to maybe fire off the special effects or post something to chat or what have you?   Probably a silly idear but figured I'd ask.  Thank you in advance.  
1749825540
timmaugh
Forum Champion
API Scripter
Customizable Roll Listener is a script that can monitor rolls and take actions. I'm not sure how granular it can get (for instance, looking at the value rolled on the die rather than the total of the full roll equation), but this is the direction you'd want to go. Then you'd want a script that would fire off FX with given parameters (a normal /fx command won't work if it's issued from a script... that is, you can't tell Customizable Roll Listener that the command you want to run is: /fx explode-fire @{target|token_id} ...because that won't work.) So you'll need a script to generate the FX. Then, whatever the command line is for that script, you'd give it to CRL as the command to run. The closest thing to that in the 1-click is Create FX... but I haven't used it and I'm not sure that's what you're looking for.... but that's the direction you would have to go. Nick Olivo might have a video where he uses a "Multi FX" scriptlet he wrote... so that might give you a start toward something that would work.