Is there a bug in movedOverToken where it can't handle the output of getLastPath(0)?
I run this command on an impersonated token
[r:t=getLastPath(1)]<br>+[r:movedOverToken("Information",t)]+
and get this output
[{"x":384,"y":512},{"x":448,"y":512},{"x":512,"y":512},{"x":576,"y":512},{"x":640,"y":512},{"x":704,"y":512},{"x":768,"y":512},{"x":832,"y":512}]
+[{"x":512,"y":512}]+
I run it with a 0
[r:t=getLastPath(0)]<br>+[r:movedOverToken("Information",t)]+
and get this output
[{"x":6,"y":8},{"x":7,"y":8},{"x":8,"y":8},{"x":9,"y":8},{"x":10,"y":8},{"x":11,"y":8},{"x":12,"y":8},{"x":13,"y":8}]
+[]+
Thanks in advance,
Keith
getLastPath/movedOverToken Question
Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice
Re: getLastPath/movedOverToken Question
thats really weird. AFAIK the BoT only uses the 0 option and last time i checked, it worked fine.
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
Re: getLastPath/movedOverToken Question
The output makes sense if movedOverToken only checks for pixels. But the description does mention grid coordinates. What are your map settings? Are you using gridless anywhere? Snap to grid?
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: getLastPath/movedOverToken Question
That makes sense now that I think about it since you're passing in a JSON array without the units designation. It wouldn't know which one to use.