You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a Lib-token is on the hidden-layer some events are not called until you edit and save one macro on this Lib-token.
Please follow the steps below to reconstruct this behavior. The events onTokenMove and onInitiativeChange are NOT called on a hidden Lib-token. onCampaignLoad is called on a hidden Lib-token. This bug occurs until someone edits one of the macros on the corresponding Lib-token. When doing so it calles the events for every player, that was connected to the server at the time one of the macros was saved. Players connecting later will not get their eventy called until someone resaves on of the macros again.
To Reproduce
Open Maptool
Drag a token onto the map
Rename it to Lib:macros
Change it to the hidden layer
Add the macro "onTokenMove" to Lib:macros with the following content:
[h: broadcast("onTokenMove was called!")]
Change to token layer and add another token to the map. Move it around. It should print a prompt to the chat.
Save the campaign and load it again.
Move the token around. Now the chat remains empty until you open and edit one of the macros on the Lib:macros token.
Expected Behaviour
I would like all event-macros on every lib-token to be called independet of the layer this tokens are on.
I might pick this up soon as I stumbled across the reason for it yesterday. Will probably do it as part of a bigger simplification to how we handle layers internally.
Describe the Bug
When a Lib-token is on the hidden-layer some events are not called until you edit and save one macro on this Lib-token.
Please follow the steps below to reconstruct this behavior. The events onTokenMove and onInitiativeChange are NOT called on a hidden Lib-token. onCampaignLoad is called on a hidden Lib-token. This bug occurs until someone edits one of the macros on the corresponding Lib-token. When doing so it calles the events for every player, that was connected to the server at the time one of the macros was saved. Players connecting later will not get their eventy called until someone resaves on of the macros again.
To Reproduce
[h: broadcast("onTokenMove was called!")]
Expected Behaviour
I would like all event-macros on every lib-token to be called independet of the layer this tokens are on.
Screenshots
No response
MapTool Info
Version: 1.11.5
Desktop
No response
Additional Context
Here is the link to the discord-thread where i had the issue with onTokenMove not being called:
https://discord.com/channels/296230822262865920/1015084154301456455
The text was updated successfully, but these errors were encountered: