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

Teleport API Help

Quick question in relation to the teleport API that is out there.  Is there a way to adapt it for use by a player for the casting of Misty Step? All the topic info I have read has made it GM layer linked and I have no idea how to change it around, or if it can be done. I would guess the target token would have to be @{target|Caster|token_id} but have no idea how to code it, or how to change the teleport location behaviour to be within 30ft of the caster and into an empty sqaure. Any help/advice/coding/it can't be done would be great. Thanks in advance.
For Misty Step, why wouldn't just dragging the token to the destination of the teleport work? I've noticed that the teleport API slides the token from original to destination, if done on the same map, so can sometimes expose fog of war areas; so is no different from manually dragging the token.
Farling, thanks for the suggestion.  That is what we currently do.  I am trying to make the experience for the caster that has this ability a have a little more flair.  I am hoping, if it is able to be done, that the player will select the spell, either select their token or it will auto select the token, and then be able to drop anywhere within 30ft, but have that selection restricted to the 30ft radius from the token, and then drop.  On the screen they (and the other players) will then see an fx cue at the start (the silvery mist), the token move, then run another fx (if possible) when they reappear. If I were to have it work without the visual movement on the token layer and could have that happen on the GM layer that would be even better, but since I do not understand the coding all that well I figure getting help with the easier method from this great community is better than asking people to do a lot of complex work.  Thanks again. 
I'm having a problem even getting the teleport api to even work at all