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 .
×
May your rolls be chill this holiday season!
Create a free account

Delay Between Two Effects

I have two effects in a mod.  Is their a simple command to delay the time between the two effects (FX)?  Right now they happen  simultaneously and would like about a two second delay between the first to the second.  
1763906970
timmaugh
Forum Champion
API Scripter
Not by using the /fx commands. While the MetascriptToolbox offers a {&delay} command that can delay chat commands if they start as an API command, by doing that to an /fx command, there is no player owning the message AT THE TIME Roll20 wants to process the /fx, so nothing happens. Theoretically you could do this if you had a script that was spawning the fx (there is a command a script can use to generate the effect). Then you *could* use the {&delay} tag to slow the second one down. I'm not aware of a script that does this (narrowly), but it wouldn't be hard to write one. I think.
1763910941
timmaugh
Forum Champion
API Scripter
Yep. Just tested a small proof-of-concept script and this works. Let me polish it up and give some more argument handles before I publish it, but this should solve your problem.
Thanks timmaugh This is what I have so far /as @{selected|token_name} Casts Magic Missile toward *@{target|token_name}*  /fx missile-fire @{selected|token_id} @{target|token_id} /fx burst-fire @{target|token_id}