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

players are unable to use scripts (delay and cfx)

I'm using! Cfx and! Delay to simulate laser shots and other sound effects, as GM everything works perfectly but my players can't activate the! Cfx and! Delay commands of the macro. Does anyone know the reason for this and how to fix it?  Follow the script !delay 2 --!cfx podermental @{selected|token_id} @{target|Alvo|token_id} !delay 2 --!cfx podermental @{selected|token_id} @{selected|token_id} !delay 1 --!sfx song:podermental action:play unique:true volume:20 %{Quai-Lun|repeating_spell_-MMXJrDSo5hF3euKi2VO_-spell-Desc}
1607003760
David M.
Pro
API Scripter
A quick check looks like the problem is in the delay script. There is a line that requires the player calling the script to have GM status. Look for the following line in the delay code: if(msg.type == "api" && msgTxt.indexOf(cmdName) !== -1 && playerIsGM(msg.playerid) ) { If you want players to be able to call it, try changing that line to  if(msg.type == "api" && msgTxt.indexOf(cmdName) !== -1) {
It worked! Thank you very much!!!!