Is there any interest in an onMapLoad event to perform cleanup functions on a map when it is first loaded.
You might want to restrict this to when the GM loads a map but you could do that through the macro coding.
Just a thought.
FREQ: onMapLoad() Event
Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice
- Full Bleed
- Demigod
- Posts: 4736
- Joined: Sun Feb 25, 2007 11:53 am
- Location: FL
Re: FREQ: onMapLoad() Event
I could see finding uses for this.
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."
Re: FREQ: onMapLoad() Event
i dont see any immediate use, but i can think of some examples where it might be useful.
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: FREQ: onMapLoad() Event
You could enforce a player to a map so they can't change to another.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: FREQ: onMapLoad() Event
In that case the function would need to have access to the current map and the loading map so you can setMap() for the player.
I think you can do that now with Enforce Players to Current Map. I don't know if it's a continuous thing but that might be better handled via a menu option.
I was thinking more for list/token cleanup purposes.
I think you can do that now with Enforce Players to Current Map. I don't know if it's a continuous thing but that might be better handled via a menu option.
I was thinking more for list/token cleanup purposes.
Re: FREQ: onMapLoad() Event
On the subject of maps, I really wish you could set a start up map in the settings, perhaps preferences. It could be based on last map loaded or some setting in the campaign like a specific map. Right now, it's just pot luck as to which map loads. I've loaded a campaign, was given a certain map , closed, reloaded and was given a different map. That goes for starting a server as well. The frameworks usually try to set players to a default map with onCampaignLoad which can cause issues in itself.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: FREQ: onMapLoad() Event
agreed, map handling should be better structured.
-onMapLoad should NOT be used to force players to current map, that should be a seperate function
-basically OCL should also not be required to load all clients to a certain map (but that function is already requested)
-what does need to be taken into account is that lib token can be changed OCL and that currently leads to duplicate lib tokens over the campaign file. Also something that needs to be addressed.
-as for the onmapload, i dont understand the cleanup. what do you mean with that? (i can think of some things, but i would never use that so perhaps i misunderstand). onmapload could be used to get stuff to the chat, a pop up with a message, retrieving all player tokens over the campaign and putting them on that map, forcing all other clients to the same map, setting initial viewpoint, etc. All not superfancy and direly needed functions, but not unuseful applications.
-onMapLoad should NOT be used to force players to current map, that should be a seperate function
-basically OCL should also not be required to load all clients to a certain map (but that function is already requested)
-what does need to be taken into account is that lib token can be changed OCL and that currently leads to duplicate lib tokens over the campaign file. Also something that needs to be addressed.
-as for the onmapload, i dont understand the cleanup. what do you mean with that? (i can think of some things, but i would never use that so perhaps i misunderstand). onmapload could be used to get stuff to the chat, a pop up with a message, retrieving all player tokens over the campaign and putting them on that map, forcing all other clients to the same map, setting initial viewpoint, etc. All not superfancy and direly needed functions, but not unuseful applications.
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