maptool icon indicating copy to clipboard operation
maptool copied to clipboard

[Bug]: Impersonate() function via macroLink is delayed.

Open fw opened this issue 2 years ago • 0 comments

Describe the Bug

Switching impersonation using impersonate() function via macro link is delayed.

To Reproduce

  1. Drop two tokens ("Elf" and "Dragon") from MapTool resouces on a map.
  2. Configure both tokens: "token type" is "PC"; "Visible to players" is available.
  3. Write two macros: impersonating as "Dragon" and say "Hello", and creating frame that call that macro.
  4. Impersonate as "Elf".
  5. Click the macro link.
  6. Impersonated as "Dragon" in chat entering fields, but output message isn't impersonated.

macro: ImpersonateAndHellolFrame

[frame("test-impersonate-and-roll"):{
	[r: macroLink("Impersonate and Hello via macroLink", "ImpersonateAndHello@this", "all")]<br>

	[h: linkText = macroLinkText("ImpersonateAndHello@this", "all")]
	<a href="[r: linkText]">Impersonate and Hello via macroLinkText</a><br>
	
	<form action="[r: linkText]">
	<input type="submit" value="Impersonate and Hello vim Form">
	</form>
}]

macro: ImpersonateAndHello

[h: impersonate(findToken("Dragon"))]
Hello!

ImpersonationDelayed.cmpgn.zip

Expected Behaviour

Switch impersonation before saying previous impersonated PC.

Screenshots

1-impersonated-as-elf Initial: Impersonation as "Elf".

2-switched-impersonation-to-dragon-but-message-is-not After running macro: Impersonation in chat entering field changed to "Dragon". But output message is said by "Elf".

MapTool Info

Version: 1.11.4

Desktop

Windows 10

Additional Context

No response

fw avatar Jan 01 '22 18:01 fw