RPTools.net

Discussion and Support

Skip to content

It is currently Wed Aug 23, 2017 11:48 pm 






Reply to topic  [ 7 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Cave Troll
 
Joined: Sun Feb 13, 2011 10:51 pm
Posts: 28
 Post subject: onLoad or onOpen or something like that
PostPosted: Sun Apr 10, 2011 9:17 pm 
I was reading an article either here or on the documentation site and I remember clearly reading something that sounded like this: "you can get this to work when the campaign loads using the <insert function here>," but I cannot find that article, nor a referenced function in the documentation.

I thought it was something like onLoad or onOpen. I was hoping to get it to open several frames in my players' screens. Right now, I've got a macro that does that, but they still have to press it. Just trying to make things easier for them.

_________________
When all else fails, move a pawn.


Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Sat Feb 13, 2010 2:35 am
Posts: 1001
Location: California
 Post subject: Re: onLoad or onOpen or something like that
PostPosted: Sun Apr 10, 2011 11:26 pm 
What your looking for is onCampaignLoad. Unfortunately I can't find it in the wiki, so I can't point you to it.

_________________
DCI/RPGA# 7208328396 Skype ID mfrizzell77
Characters:
Strabor - Dwarf Avenger 5th Level
Tikkanan - Human Warlock 2nd Level
----------------------------------------------------
"People are more violently opposed to fur than leather because it's safer to harass rich women than motorcycle gangs."


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 12085
Location: Tampa, FL
 Post subject: Re: onLoad or onOpen or something like that
PostPosted: Mon Apr 11, 2011 12:29 am 
Searching the wiki found it. It's right here: onCampaignLoad.

But without knowing what it was it would've been tough to find. :|


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9328
Location: Netherlands
 Post subject: Re: onLoad or onOpen or something like that
PostPosted: Mon Apr 11, 2011 2:14 am 
Azhrei wrote:
Searching the wiki found it. It's right here: onCampaignLoad.

But without knowing what it was it would've been tough to find. :|


man that thing is really hidden. Shouldn't it also just be in the 'functions' list?

_________________
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
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 12085
Location: Tampa, FL
 Post subject: Re: onLoad or onOpen or something like that
PostPosted: Mon Apr 11, 2011 2:27 am 
wolph42 wrote:
Azhrei wrote:
Searching the wiki found it. It's right here: onCampaignLoad.

But without knowing what it was it would've been tough to find. :|

man that thing is really hidden. Shouldn't it also just be in the 'functions' list?

It's not a function, though. Unless you want to create some kind of special category for it. Maybe check to see where Joe put the onTokenMoved macros?

Or if he didn't put them in a particular category, then create a new one for auto-invoked macros or some other name...


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9328
Location: Netherlands
 Post subject: Re: onLoad or onOpen or something like that
PostPosted: Mon Apr 11, 2011 3:38 am 
True, its not a 'function' still I (and I suppose others) either search or wade through the functions list looking for what they need. You could also maybe go for an index or glossary, but that would be more then just a small addition.

_________________
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: 5410
 Post subject: Re: onLoad or onOpen or something like that
PostPosted: Mon Apr 11, 2011 6:53 am 
Yea... I would suggest a top level item named "MapTool 'Events'" or something like that. All of the on* functions should go into there with examples(onChangeSelection, 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  
 
Display posts from previous:  Sort by  
Reply to topic  [ 7 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