Any more convenient way to cancel a token's movement?
Moderators: dorpond, trevor, Azhrei
Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
- goldensword52
- Cave Troll
- Posts: 42
- Joined: Thu Jul 31, 2014 1:24 am
Any more convenient way to cancel a token's movement?
Hi everyone, I feel like I'm missing something obvious, and I hope you can fill me in. When I click and drag a token, it would be nice if I could just hit escape or something to cancel the movement, and drop the token back down where it started, similar to how it works for drawings. The only way I know to cancel a tokens movement is to drag it back to its original starting position. And even that doesn't work once a waypoint has been set along the movement path (because the "canceled" movement will still reveal fog). So is there just a hotkey that I'm not aware of for this feature? And if not, would it be possible to MacGyver some kind of macro to achieve the same result? Thanks in advance.
Re: Any more convenient way to cancel a token's movement?
Right Click Token, click "Revert Last Move"
Don't think that undoes fog reveal though.
Don't think that undoes fog reveal though.
Re: Any more convenient way to cancel a token's movement?
I thought there was some way but button mashing didn't work. ESC is the obvious cancel move key, but it doesn't work that way. Whatever you do don't hit DEL key like I did.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Any more convenient way to cancel a token's movement?
[EDIT] When you think about it, undoing the Fog reveal would be a bad idea because it would enable cheating. Better everyone knows the fog has been accidentally revealed.Jagged wrote:Right Click Token, click "Revert Last Move"
Don't think that undoes fog reveal though.
- goldensword52
- Cave Troll
- Posts: 42
- Joined: Thu Jul 31, 2014 1:24 am
Re: Any more convenient way to cancel a token's movement?
I've been reading about tokens.denyMove macros, but so far I can only find stuff about onTokenMove functionality. Is there some way to apply the tokens.denyMove macro at the push of a button? Because if so, that seems like it would solve the issue quite well.
Re: Any more convenient way to cancel a token's movement?
You could use that and then ask the user to confirm move and when confirmed move the token using the saved path and moveToken.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
- goldensword52
- Cave Troll
- Posts: 42
- Joined: Thu Jul 31, 2014 1:24 am
Re: Any more convenient way to cancel a token's movement?
That sounds interested, but I feel like that would be more trouble than it's worth.
Re: Any more convenient way to cancel a token's movement?
You could use onTokenMove macro to store the last path and corresponding token on a lib:token. Then you can create a macro that reverts the move using that data.
You can't restore the fow though, but as mentioned above, that's perhaps for the best.
Actually you can restore fow, but only if you do this for every move. There s an option for this in the bag of tricks. The bot would probably also make it easier to create the above macro using an event macro
You can't restore the fow though, but as mentioned above, that's perhaps for the best.
Actually you can restore fow, but only if you do this for every move. There s an option for this in the bag of tricks. The bot would probably also make it easier to create the above macro using an event macro
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
- goldensword52
- Cave Troll
- Posts: 42
- Joined: Thu Jul 31, 2014 1:24 am
Re: Any more convenient way to cancel a token's movement?
After a bit of work, I've come up with a simple set of macros that does exactly what I want. For the prototype, I made a token property called "mov". I then made this onTokenMove macro:
[if(mov == 0): tokens.denyMove = 1]
[mov=1]
Then I made this macro and bound it to a hotkey:
[mov=0]
Hitting the hotkey lets the onTokenMove macro know to cancel the current movement (even if the token is currently being dragged by the mouse), then resets and lets the token move again. It could use a bit of polish, but it works perfectly and is nice and simple. Thank you guys for your help.
[if(mov == 0): tokens.denyMove = 1]
[mov=1]
Then I made this macro and bound it to a hotkey:
[mov=0]
Hitting the hotkey lets the onTokenMove macro know to cancel the current movement (even if the token is currently being dragged by the mouse), then resets and lets the token move again. It could use a bit of polish, but it works perfectly and is nice and simple. Thank you guys for your help.