Script to impersonate?

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
RevenantBob
Cave Troll
Posts: 36
Joined: Sat May 19, 2012 3:41 pm

Script to impersonate?

Post by RevenantBob »

I see there's a getimpersonated, but is there no function to set it?

User avatar
Bone White
Great Wyrm
Posts: 1124
Joined: Tue Aug 23, 2011 11:41 am
Location: Cornwall, UK

Re: Script to impersonate?

Post by Bone White »

Correct.

If you're after the chat effect for talking you'll have to simulate it with a formatted html table. If you're after setting the current token (because you don't use the optional parameter tokenID in your functions, e.g. in Wiki: getProperty()), then you'll need to use [token:] or Wiki: switchToken(). Also see currentToken.

RevenantBob
Cave Troll
Posts: 36
Joined: Sat May 19, 2012 3:41 pm

Re: Script to impersonate?

Post by RevenantBob »

maybe I need to make a new function then in my own build. Thanks for the feedback.

User avatar
Bone White
Great Wyrm
Posts: 1124
Joined: Tue Aug 23, 2011 11:41 am
Location: Cornwall, UK

Re: Script to impersonate?

Post by Bone White »

I assume you're using impersonate to identify which token a player is attacking with?

There are many other ways to do this such as Wiki: getOwned() combined with Wiki: getPlayerName(). Once you move to using tokenIDs, your MapTool coding power will grow by many degrees.

Post Reply

Return to “Macros”