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

Question About a Custom FX

I made this custom FX for magic missile. { "angle": -1, "angleRandom": 1, "duration": 10, "emissionRate": 500, "endColour": [0, 10, 50, 0], "endColourRandom": [0, 0, 0, 0], "gravity": {"x":0.01, "y":0.01}, "lifeSpan": 50, "lifeSpanRandom": 1, "maxParticles": 5000, "size": 2, "sizeRandom": 0, "speed": 60, "speedRandom": 60, "startColour": [90, 125, 250, 1], "startColourRandom": [12, 12, 12, 1] } You click then aim a line in where you want to fire and and fires from the point of origin in the direction you clicked. How would I make the effect length end where you clicked. Example: I click on X as origin and click Y but the missile passes Y and continues for a long time. I want it to end at Y instead of continuing to fire in that clicked direction. I want it to stop where I clicked, what's circled in red in this image: How can I make the effect stop where clicked?
1522942415
The Aaron
Pro
API Scripter
Not reasonably possible.  You could set a really short lifeSpan and a small lifeSpanRandom to get a length you wanted, but it would only be right for that exact length and would only be right for that one distance.  Then you could create MagicMissle10ft, MagicMissle15ft, etc.   That's going to get pretty old pretty fast.
Okay. Thanks for the quick reply. I guess I'll just resort to using "/fx beam-magic @{target|Caster|token_id} @{target|Foe|token_id}" and not worry about it reaching the target if it's too far.