Any connect events?

Thoughts, Help, Feature Requests, Bug Reports, Developing code for...

Moderators: dorpond, trevor, Azhrei

Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior. :)
Post Reply
User avatar
celestian
Dragon
Posts: 276
Joined: Mon May 17, 2010 3:29 pm

Any connect events?

Post by celestian »

I am wondering if there are any connect events for when you have a game running. I'd like to perform actions when a player connect. Brief motd, maybe force them to map and/or view space/zoom.

I've reviewed the wiki and didn't seem to find anything like that, do they exist? Is there a trick to catch anything like that.

One thing I have noticed is that when a player connects the onCampaignLoad startup message I have shows up on their side so guessing they at least get that? Is there a way to capture that and somehow move them to map?

User avatar
celestian
Dragon
Posts: 276
Joined: Mon May 17, 2010 3:29 pm

Re: Any connect events?

Post by celestian »

I've actually just run some experiments in the campaingload macro.

I was able to [if(isGM()): "gm action";"pc action"] during that process and it worked. Could send GM to one map and the PC to another.

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: Any connect events?

Post by wolph42 »

Yup, OCL is the way to go. You can use the bag of tricks if you like which has some features in that regard.

Post Reply

Return to “MapTool”