RPTools.net

Discussion and Support

Skip to content

It is currently Thu Apr 27, 2017 11:48 am 




Forum rules


Posting now open to all registered forum users.



Reply to topic  [ 8 posts ] 

Previous topic | Next topic 

  Print view

Author Message
User avatar  Offline
Great Wyrm
 
Joined: Mon Sep 15, 2008 8:27 am
Posts: 1153
Location: Bristol, UK
 Post subject: FEATURE: Map Name & Visibility Functions
PostPosted: Wed Apr 27, 2016 6:06 pm 
The following changes and functions have recently been submitted.

Bugfix
It is possible and acceptable to move players to a hidden map through the use of script functions. However when you do so, the players see the message "Map not visible to players". This message will now only display to the GM.

Bugfix
When you edit the current map and change the map name or use the rename ui to change the map name, the change does not get updated on the Maptool window frame unless you change maps. This will now update immediately the name is changed.

getMapVisible() function
Returns true (1) or false(0) indicating whether the specified map is visible to players. If no map is specified the current map is selected.
Usage:
Code:
getMapVisible()
getMapVisible(mapName)


Examples:
Code:
[r:getMapVisible()]
[r:getMapVisible("Grasslands")]


setMapVisible() function
Sets a maps visibility to players to true (1) or false(0). If no map is specified the current map is selected. May only be used by a trusted macro.
Usage:
Code:
setMapVisible(visible)
setMapVisible(mapName)


Examples:
Code:
[r:setMapVisible(1)]
[r:setMapVisible(1, "Grasslands")]


setMapName() function
Changes the name of a specified map. May only be used by a trusted macro.
Usage:
Code:
setMapName(oldMapName, newMapName)

oldMapName is the current name of the map you wish to rename.
newMapName is the name to which you want it changed.

Examples:
Code:
[r:setMapName("Grasslands","Map1")]


Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Mon Sep 15, 2008 8:27 am
Posts: 1153
Location: Bristol, UK
 Post subject: Re: FEATURE: Map Name & Visibility Functions
PostPosted: Thu Apr 28, 2016 12:41 pm 
copyMap() function
Function creates a copy of an specified map, with the new map name. Returns the name of the new map. May only be used by a trusted macro.
Usage:
Code:
copyMap(originalMapName, newMapName)


Examples:
Code:
[h:copyMap("BaseMap","Tower")]
[h:setMapVisible(1,"Tower")]


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9191
Location: Netherlands
 Post subject: Re: FEATURE: Map Name & Visibility Functions
PostPosted: Thu Apr 28, 2016 2:07 pm 
awesomesauce!!

_________________
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 and 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


Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Mon Sep 15, 2008 8:27 am
Posts: 1153
Location: Bristol, UK
 Post subject: Re: FEATURE: Map Name & Visibility Functions
PostPosted: Fri Apr 29, 2016 12:40 pm 
I will add this to the wiki next week :mrgreen:


Top
 Profile  
 
User avatar  Offline
TheBard
 
Joined: Tue Mar 21, 2006 7:26 pm
Posts: 3467
Location: Austin, Tx
 Post subject: Re: FEATURE: Map Name & Visibility Functions
PostPosted: Sat Apr 30, 2016 9:48 am 
Great stuff!

_________________
ImageImage ImageImageImageImage
MapTool/Savage Worlds Blog
Free SW/MT Modules
SW Framework for MT


Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Mon Sep 15, 2008 8:27 am
Posts: 1153
Location: Bristol, UK
 Post subject: Re: FEATURE: Map Name & Visibility Functions
PostPosted: Tue May 03, 2016 6:46 am 
Wiki should now be up to date


Top
 Profile  
 
User avatar  Offline
TheBard
 
Joined: Tue Mar 21, 2006 7:26 pm
Posts: 3467
Location: Austin, Tx
 Post subject: Re: FEATURE: Map Name & Visibility Functions
PostPosted: Tue May 03, 2016 8:57 am 
Sweet. Again, thanks for all the effort.

_________________
ImageImage ImageImageImageImage
MapTool/Savage Worlds Blog
Free SW/MT Modules
SW Framework for MT


Top
 Profile  
 
User avatar  Offline
Demigod
 
Joined: Sun Feb 25, 2007 11:53 am
Posts: 3588
Location: MD
 Post subject: Re: FEATURE: Map Name & Visibility Functions
PostPosted: Tue May 03, 2016 11:15 am 
Jagged wrote:
Wiki should now be up to date

Thanks.

You might want to wfunc your nice syntax posts so they link to it.

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 8 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 are 0 users online :: 0 registered, 0 hidden and 0 guests (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 0 guests





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

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman