in case you're still interested. I found it a fun thing to contemplate so I whipped up a test version both the 'sheet roller' and the 'room layout builder' (including doors). It works.
you can download it here
Moving a Token to a random coordinate
Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice
Re: Moving a Token to a random coordinate
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: Moving a Token to a random coordinate
updated. It and the link to it now actually work:
https://www.dropbox.com/s/lr5byk6azh296 ... cmpgn?dl=1
https://www.dropbox.com/s/lr5byk6azh296 ... cmpgn?dl=1
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: Moving a Token to a random coordinate
Nice Wolph, here's what I ended up with:
I made a table called tbld4 and added 4 different images of a d4, one image for each side.
Then I made a simple token that's a transparent square with a solid colored border around it, and named it "die_drop_area".
I made a token called "dice_drop_d4" and set it to top down view in its properties.
I adjust my die drop area to whatever size I need. The dice will change it's image based on what's rolled and will rotate to a random angle at a random spot within the "dice_drop_area" I specify.
Code: Select all
[roll=roll(1,4)]
[h:gs = json.get(json.get(getInfo("map"),"grid"),"size")]
[h, token("dice_drop_d4"):setTokenImage(tblImage("tbld4",roll))]
[h:moveToken(
getTokenX(1,"dice_drop_area") + roll(1,getTokenWidth("dice_drop_area")),
getTokenY(1,"dice_drop_area") + roll(1,getTokenHeight("dice_drop_area")),
1,
"dice_drop_d4"
)]
[h:setTokenFacing(roll(1,360),"dice_drop_d4")]
Then I made a simple token that's a transparent square with a solid colored border around it, and named it "die_drop_area".
I made a token called "dice_drop_d4" and set it to top down view in its properties.
I adjust my die drop area to whatever size I need. The dice will change it's image based on what's rolled and will rotate to a random angle at a random spot within the "dice_drop_area" I specify.
Re: Moving a Token to a random coordinate
why the facing of the die?
have you also noticed the room divider?
have you also noticed the room divider?
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: Moving a Token to a random coordinate
Yeah! Super cool and clever! I added it to my campaign.wolph42 wrote:why the facing of the die?
have you also noticed the room divider?
I did facing because sometimes I use a dice drop to point me in the direction of something being looked for. A d4 makes a good arrow: the direction it points is the direction the target is, and the number represents a distance (could be blocks, or miles, or 10s of miles, etc)
Re: Moving a Token to a random coordinate
ah clever!chap126 wrote:Yeah! Super cool and clever! I added it to my campaign.wolph42 wrote:why the facing of the die?
have you also noticed the room divider?
I did facing because sometimes I use a dice drop to point me in the direction of something being looked for. A d4 makes a good arrow: the direction it points is the direction the target is, and the number represents a distance (could be blocks, or miles, or 10s of miles, etc)
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