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

!delay + !cfx Player Permissions Help

Having an issue where !delay is working fine with !cfx when I run my macro as a GM, but the VFX do not display when the macro is run by a player.  If I remove the !delay command, however, the players can run the VFX (via the !cfx command) through the macros. I suspect the problem is in my implementation of the msg.playerid adjustment mentioned here , but I'm new to scripting and I'm not sure what I'm doing wrong: on("chat:message", function(msg) { if('api' !== msg.type ) { return; } if (!state.cfx_pid) state.cfx_pid = "API"; if (msg.playerid !== "API") state.cfx_pid = msg.playerid; else msg.playerid = state.cfx_pid; Is the above correct?  If not, how do I need to adjust to get it to work correctly?  If it is correct, is there any other permissions issue that would prevent !delay from working with !cfx for a player?  Thanks!
Sorry to bump this, but I would love to see if there's a solution here.  I designed a bunch of custom VFX that I would love my players to be able to see!  (and would love to have them synced with the SFX if that problem can also be cleared up...)