feroulm / rptoolsRQ

rpTools Macro for RuneQuest
GNU Affero General Public License v3.0
0 stars 0 forks source link

Update refresh combat window for all connected player #72

Closed feroulm closed 7 months ago

feroulm commented 8 months ago

For each combat action that trigger a refresh, use the broadcat option as defined on the first cast Action

New Code :

<!-- Refresh Action Window for the new token -->
    [h: macroParam = json.set("{}", "tokenId", newToken)]
    [h: lnkTxt = macroLinktext("openCombatAction@Lib:RQII", "all",macroParam)]
    [h: execLink(lnkTxt,0,"all")]

Instead of

 <!-- Refresh Action Window for the new token -->
    [h: macroParam = json.set("{}", "tokenId", newToken)]
    [r, macro("openCombatAction@Lib:RQII"): macroParam]

Files to be modified :

A noter : Non implémenté pour les fenêtre de type edit Attibute ou Sheet management, cela ne fait pas de sens de les synchroniser, chacun peut "editer dans son coin"