Script to impersonate?
Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice
-
- Cave Troll
- Posts: 36
- Joined: Sat May 19, 2012 3:41 pm
Script to impersonate?
I see there's a getimpersonated, but is there no function to set it?
- Bone White
- Great Wyrm
- Posts: 1124
- Joined: Tue Aug 23, 2011 11:41 am
- Location: Cornwall, UK
Re: Script to impersonate?
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.
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.
-
- Cave Troll
- Posts: 36
- Joined: Sat May 19, 2012 3:41 pm
Re: Script to impersonate?
maybe I need to make a new function then in my own build. Thanks for the feedback.
- Bone White
- Great Wyrm
- Posts: 1124
- Joined: Tue Aug 23, 2011 11:41 am
- Location: Cornwall, UK
Re: Script to impersonate?
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.
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.