foundryvtt-multilevel-tokens icon indicating copy to clipboard operation
foundryvtt-multilevel-tokens copied to clipboard

[Feature request] Moving through a trigger area by drag and drop

Open VeilOfOblivion opened this issue 4 years ago • 3 comments

I am not sure if this is an intended behavior or not. But right now, as it seems, if the player drags and drops their token from some place to another and crosses the trigger area without stopping there, none of the three options (enter, leave, movement) are triggered. Maybe I am doing something wrong but that is what I can see in my setup.

  • If this is a bug, please fix it.
  • If it is an intended behavior, maybe think of make it an option to also consider tokens moving through by drag&drop.
  • If it is a user error (which is quite likely), please let me know how to fix it :)

VeilOfOblivion avatar Nov 20 '20 13:11 VeilOfOblivion

This is intended, because a token dragged-and-dropped in this way is never actually inside the region. It actually teleports straight to the destination, the movement animation you see is are purely visual effect.

It might be possible to trigger the regions in this case but it'd be a bit more complicated (and you'd get the enter & exit events at essentially the exact same time, so may not be useful depending on what you want to do with it).

grandseiken avatar Nov 20 '20 20:11 grandseiken

Ok, makes sense. I guess if everything happens at once, it might be good to be able to stop the movement of the token if necessary (as an option) and therefore this chain of triggering stuff premature. So for e.g. a trap, if the token enters the grid space, the player has the option to change their mind and maybe not triggering the multi-space trap again and again.

So it looks like it is a feature request after all :)

But thank you for all the good work so far! Still a very handy tool to have :)

VeilOfOblivion avatar Nov 23 '20 09:11 VeilOfOblivion

I know this has been here for a while, but a simple solution for this is to use Trigger Happy to capture token movement. When a token is dragged past the Multilevel Token drawing, Trigger Happy will capture the token and set its end location on top of the Multilevel Token drawing, which will trigger the teleport.

Noshei avatar Apr 10 '21 21:04 Noshei