RPTools.net

Discussion and Support

Skip to content

It is currently Sun Nov 19, 2017 7:20 am 






Reply to topic  [ 14 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Kobold
 
Joined: Wed Jul 31, 2013 8:57 am
Posts: 9
 Post subject: Clickable Drawings for nested/child map links
PostPosted: Wed May 24, 2017 1:46 pm 
In addition to the ability to select and move drawings, which I read is already on the wishlist, what I would like is the ability to:
right click a drawing --> add link to another map. Then a popup list of maps already existing in the campaign would appear you could select one and click "Create Link" or the other option would be "New Map", which would create a new map and a clink to that. I'm envisioning using this on transparent drawings.

I think this would be useful for campaign management and world building. You could create a world map. Create an invisible drawing over Region 1, and clicking that would bring you to the child map Region 1. You could go further. Perhaps region one has a cave and a town. You could add clickable links on the cave and town which would bring you to a cave map and a town map respectively.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7947
Location: Bay Area
 Post subject: Re: Clickable Drawings for nested/child map links
PostPosted: Wed May 24, 2017 5:24 pm 
chap126 wrote:
right click a drawing --> add link to another map. Then a popup list of maps already existing in the campaign would appear you could select one and click "Create Link" or the other option would be "New Map", which would create a new map and a clink to that. I'm envisioning using this on transparent drawings.


I don't really see this happening. The option menu (right click) is for things related to the object, in this case a drawing. Switching maps and creating maps is not related. Treating drawings as a token to allow additional functionality could be done and perhaps lead to a path for what you want to do.

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9419
Location: Netherlands
 Post subject: Re: Clickable Drawings for nested/child map links
PostPosted: Wed May 24, 2017 6:09 pm 
What you wish to achieve is possible, how you want to achieve it not. Its possible to put a token (drawing) on the token layer and associate a macro with it. The macro in this case would be to switch to the child map that the token depicts. The BoT contains this functionality (although some macro coding might be required, IRC there is an example macro that does this)

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
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


Top
 Profile  
 
 Offline
Kobold
 
Joined: Wed Jul 31, 2013 8:57 am
Posts: 9
 Post subject: Re: Clickable Drawings for nested/child map links
PostPosted: Wed May 24, 2017 10:53 pm 
Is there a macro script for [openMap "name"] or something of the sort? Putting that on a token would pretty much accomplish what I'm after.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7947
Location: Bay Area
 Post subject: Re: Clickable Drawings for nested/child map links
PostPosted: Thu May 25, 2017 12:03 am 
I have this page bookmarked (http://lmwcs.com/rptools/wiki/Category:Macro_Function) which lists all the functions. At the top are some or the more common groupings of function including map functions.

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
Demigod
 
Joined: Sun Feb 25, 2007 11:53 am
Posts: 3773
Location: MD
 Post subject: Re: Clickable Drawings for nested/child map links
PostPosted: Thu May 25, 2017 12:53 am 
aliasmask wrote:
I have this page bookmarked (http://lmwcs.com/rptools/wiki/Category:Macro_Function) which lists all the functions. At the top are some or the more common groupings of function including map functions.


Also of note... some token/map interaction functions not listed in the Map section:

Wiki: moveTokenFromMap()
Wiki: moveTokenToMap()

_________________
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9419
Location: Netherlands
 Post subject: Re: Clickable Drawings for nested/child map links
PostPosted: Thu May 25, 2017 1:46 am 
Do keep in mind that you need the bot. Or you need to figure out how to work with ontokenselect event

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
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


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7947
Location: Bay Area
 Post subject: Re: Clickable Drawings for nested/child map links
PostPosted: Thu May 25, 2017 4:45 am 
When I first started playing I had a goto macro that would list placed of interests. Now I use the call tokens for most of my map switching. (in pf/3.5 fw) Basically, you click a token at the target location and click call tokens macro. It will post a link in chat that player can select their token and click link to go to new map location.

_________________
Downloads:


Top
 Profile  
 
 Offline
Kobold
 
Joined: Wed Jul 31, 2013 8:57 am
Posts: 9
 Post subject: Re: Clickable Drawings for nested/child map links
PostPosted: Thu May 25, 2017 9:19 am 
Thanks guys! I think I might be able to get something close to what I want, how do you set a macro to trigger on token select? If I can figure out the code to trigger a macro whenever that particular token selected, and then setmap to a particular map I think I'll be golden ☺


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9419
Location: Netherlands
 Post subject: Re: Clickable Drawings for nested/child map links
PostPosted: Thu May 25, 2017 10:56 am 
its too long ago for me to remember, but I know the instructions are in the manual of the BoT

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
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


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Sep 11, 2007 6:31 pm
Posts: 5412
 Post subject: Re: Clickable Drawings for nested/child map links
PostPosted: Fri May 26, 2017 11:30 am 
chap126 wrote:
Thanks guys! I think I might be able to get something close to what I want, how do you set a macro to trigger on token select? If I can figure out the code to trigger a macro whenever that particular token selected, and then setmap to a particular map I think I'll be golden ☺


In general, you can't have it happen on token select alone(except in specific situations). The act of selecting a token ALONE does not run any macros and honestly that would be a giant PITA and resource intensive way to do this type of thing. You have to have some way to tell MT that for this time I select a token, I want to do X and that is by creating said macro.

A mostly easy solution(but still moderately annoying unless you already know a MTScript) would be to do as AM said. Send link to players, player selects their token(S) and then click link to execute the macro which finds all selected tokens and moves them to wherever the link said to go.

Wolph's Bag Of Tools also contains some canned stuff which will EASIER(but still some setup required) use of the movedOverToken/movedOverArea macros which would act as a "teleport pad" so to speak. IMHO, this is the easiest option overall with that I THINK you are trying to accomplish.

_________________
I save all my Campaign Files to DropBox. Not only can I access a campaign file from pretty much any OS that will run Maptool(Win,OSX, linux), but each file is versioned, so if something goes crazy wild, I can always roll back to a previous version of the same file.

Get your Dropbox 2GB via my referral link, and as a bonus, I get an extra 250 MB of space. Even if you don't don't use my link, I still enthusiastically recommend Dropbox..


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9419
Location: Netherlands
 Post subject: Re: Clickable Drawings for nested/child map links
PostPosted: Fri May 26, 2017 7:49 pm 
my bot also contains a macro where you can activate another macro when you select a token. Thats whay hes looking for. its simply making use of the ontTokenSelect event.

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
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


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Sep 11, 2007 6:31 pm
Posts: 5412
 Post subject: Re: Clickable Drawings for nested/child map links
PostPosted: Sat May 27, 2017 1:35 am 
wolph42 wrote:
my bot also contains a macro where you can activate another macro when you select a token. Thats whay hes looking for. its simply making use of the ontTokenSelect event.


I generally would eschew onTokenSelect vs onMovedOverToken. I would see people trying to use that event for something it was not designed for and causing all source of headaches because they did not think through the conditionals.

Hmm... about the only thing I could think of that might make some sense would be something like a "teleport terminal" which opened a dialog window with a drop down list of hard coded maps, excluding the one you are on(or perhaps a list of other teleport terminals by "name"(Penn Station, Grand Central Station, etc).

_________________
I save all my Campaign Files to DropBox. Not only can I access a campaign file from pretty much any OS that will run Maptool(Win,OSX, linux), but each file is versioned, so if something goes crazy wild, I can always roll back to a previous version of the same file.

Get your Dropbox 2GB via my referral link, and as a bonus, I get an extra 250 MB of space. Even if you don't don't use my link, I still enthusiastically recommend Dropbox..


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9419
Location: Netherlands
 Post subject: Re: Clickable Drawings for nested/child map links
PostPosted: Sat May 27, 2017 6:31 am 
which I created the functionality, so others don't have to worry about that. E.g. the open door buttons are an example of that which is used quite often.

@OP: the macro is called 'set event button'. there's a tooltip on it which explains how it works. Any token can be used as an 'event button'.

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 14 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 1 guest





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman