Page 1 of 1

Macro Links Executing Right away?

Posted: Fri Jan 03, 2020 6:04 pm
by RevenantBob
I'm not sure if this is a bug or intentional, but if I output a macro link to the chat window they are being executed right away. Is this intentional?

I wanted a macro so people could link token handouts easy for people to click if they want to look.

The campaign macro is set to auto execute and apply to selected token:

Code: Select all

[h: macroArgs = "handout=" + getTokenHandout() + ";"]
[h: linkText = getName() + " Handout"]

[r: Macrolink(linkText, "[email protected]:LIBGame", "self", macroArgs, currentToken())]
On the referenced library token I have the script "imageShow" with the following code:

Code: Select all

[h: handoutImage=getStrProp(macro.args,"handout")]
[Frame("Image Handout"): {
    <img src="[r:handoutImage]"></>
}]
When someone clicks the macro everyone automatically sees the the handout. Which is strange since I'm just trying to make a link.

Re: Macro Links Executing Right away?

Posted: Fri Jan 03, 2020 6:28 pm
by aliasmask
So, does it run when you post the link or when someone clicks the link in the chat? Make sure autoexecute if off on the macro imageShow and see if that helps.

Re: Macro Links Executing Right away?

Posted: Fri Jan 03, 2020 10:47 pm
by RevenantBob
Looks like autoexecute was doing it. Thanks!