I am using a DM macro where I want to impersonate a Player when he/she recieves initiative to allow it to say something "Angor is ready to fight now!" or something similar, and then end the impersonation.
But I find no way to end the impersonation within the macro (except after the macro ends and i press the "end" button in the impersonation chat window). Is there no macro function for endimpersonate(), that I can use before I end the macro?
How to end impersonation in macro
Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice
Re: How to end impersonation in macro
You should be able to impersonate a token without changing the chat impersonation. The only exception is if your login is the same as a token name.
I just tested this, you can use [H: impersonate("")] to turn off impersonation.
I just tested this, you can use [H: impersonate("")] to turn off impersonation.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: How to end impersonation in macro
I can probably turn it of with impersonate(""), but not in the same macro, i.e. I cannot start an impersonation inside the macro in order to write something and have the token say it, and then turn of impersonation later in the same macro in order to not exit the macro with impersonation active (i.e. I am in impersonation mode in the chat window as the DM for the token when the macro ends.)
Re: How to end impersonation in macro
can't you just use Wiki: switchToken() or [token:]
and if you really have to use impersonte() then you can probably turn it off with a deferred macro call: Wiki: execFunction()
and if you really have to use impersonte() then you can probably turn it off with a deferred macro call: Wiki: execFunction()
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
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
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
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