Force Client SelectTokens Initiative Tool

Discuss macro implementations, ask for macro help (to share your creations, see User Creations, probably either Campaign Frameworks or Drop-in Resources).

Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice

Post Reply
tomlib
Giant
Posts: 195
Joined: Mon Dec 29, 2008 10:48 am

Force Client SelectTokens Initiative Tool

Post by tomlib »

In my game there are a number NPCs for whom the players determine actions. When the initiative round comes to the NPC my players are often selected on their PC token and begin clicking buttons before realizing they are on the non-initiative token. I understand SelectTokens() and can make the current initiative Token become selected easily enough but it only works for me as I'm clicking the Next Initiative macro button. My players remain on the wrong token.

Is there a way to essentially pretend the Owner of the token that is gaining initiative is the one clicking the macro button? That way the macro would run for them and force the correct token to be selected.

Thanks for any help,

Tom

User avatar
metatheurgist
Dragon
Posts: 364
Joined: Mon Oct 26, 2009 5:51 am

Re: Force Client SelectTokens Initiative Tool

Post by metatheurgist »

You can make code execute on a client with macroLink().

tomlib
Giant
Posts: 195
Joined: Mon Dec 29, 2008 10:48 am

Re: Force Client SelectTokens Initiative Tool

Post by tomlib »

I was fooling around with macroLink() but it seems like it requires a click from the player which is what I was hoping to avoid. Thanks though!

Tom

User avatar
JamzTheMan
Great Wyrm
Posts: 1872
Joined: Mon May 10, 2010 12:59 pm
Location: Chicagoland
Contact:

Re: Force Client SelectTokens Initiative Tool

Post by JamzTheMan »

Combined with Wiki: execLink() you can have it execute on other clients.

FYI: The BoT has some UDF's that make this a little easier to execute macros on all clients.
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork

Post Reply

Return to “Macros”