I have the following campaign macro:
Code: Select all
[h: link = macroLinkText("test@Lib:mylib")]
[h: broadcast(execLink(link))]
Moderators: dorpond, trevor, Azhrei
Code: Select all
[h: link = macroLinkText("test@Lib:mylib")]
[h: broadcast(execLink(link))]
I noticed the BoT also uses macroLink() instead of macroLinkText().aliasmask wrote: ↑Sun Jul 14, 2019 2:22 pmexecLink() for running code from the current client. You're simply outputting the result of that run to chat. If you output the link, like with macroLink(), then players can click it and run it on their client. Typically these work together like this. You create a link for your client with macroLinkText, convert that in to a valid macro link by adding <a href="%{link}">Click Me!</a> and then broadcast that to the other players. If autoexecute is on for the linked macro then it will autorun for the other clients but not you. That's why you use execLink so it runs for you as well.
Code: Select all
[h: link = macroLink("", "test@Lib:mylib")]
[h: broadcast(link)]