Can you launch a macro from an image button?

Discuss macro implementations, ask for macro help (to share your creations, see User Creations, probably either Campaign Frameworks or Drop-in Resources).

Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice

Post Reply
Lizard Lips
Kobold
Posts: 6
Joined: Mon Aug 01, 2011 9:46 pm

Can you launch a macro from an image button?

Post by Lizard Lips »

I can call macros via text (macroTextLink, macroLink), but I'd like to add an image of a d20 to the player's character sheet to indicate they can roll (ie call a macro) by clicking on it. Is that possible?

Sydious
Giant
Posts: 155
Joined: Sun Aug 21, 2011 2:27 am

Re: Can you launch a macro from an image button?

Post by Sydious »

Yes. I learned how to do this using the Forms tutorial from the wiki.

Takes 2 macros. Your char sheet macro (dialog or frame), and a processing macro which takes the value of the image button and then you fire your macro with macroLink or such...

Check out the "Forms" tutorial. Helped me alot.

User avatar
CoveredInFish
Demigod
Posts: 3104
Joined: Mon Jun 29, 2009 10:37 am
Location: Germany
Contact:

Re: Can you launch a macro from an image button?

Post by CoveredInFish »

And here is the link to it [wiki]Forms tutorial[/wiki]

Sydious
Giant
Posts: 155
Joined: Sun Aug 21, 2011 2:27 am

Re: Can you launch a macro from an image button?

Post by Sydious »

CoveredInFish wrote:And here is the link to it [wiki]Forms tutorial[/wiki]


Ya, probably would have helped if I provided a link....Thanks CoF

Post Reply

Return to “Macros”