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

[Script Request] Need help with this simple script.

1689144480

Edited 1689144534
Hanen
Pro
Marketplace Creator
Hi! I have been looking around the forum for an API that pings in chat whenever someone rolls a specific Number for a Homebrew I made.  I call it lucky number, whenever a player rolls their lucky number on a die I'd like to give them an inspiration of sorts but a lot of the times we forget all about it. It'd be great to be reminded someone rolled a 6 on the die for example. It's not urgent I can still kind of manually track it but it'd be great if it just reminds us automatically.
1689145389
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Hanen! Look at Customizable Roll Listener. I believe the number has to appear in a roll template, but it can be configured to perform an action (run a macro or give a Mod script command) when a particular number or string is produced in a roll template.
1689150542

Edited 1689150573
Hanen
Pro
Marketplace Creator
That was the first one I tried. I've spent some time fiddling with it but it doesn't work for me, I might be doing something wrong. I'm not able to make it listen for a specific number.  !crl \\create,name=Lucky,template=spell atk dmg atkdmg npcatk npcdmg,roll=6 \\You got an inspiration!