Draw VBL via macro code

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
Briawan
Kobold
Posts: 4
Joined: Mon Jun 15, 2020 7:29 am

Draw VBL via macro code

Post by Briawan »

Hi all,

I'm wondering if there's a function to draw a VBL line between 2 points on the map (giving the coords), and mainly to remove a VBL line in the same way.

I need it for a trap, a collapsing wall.
I've already put down some simple code to hide the wall and to place some debirs where the wall was, but what I'm missing is a way to erase also the VBL line that I draw over that wall.
Since I always write down also a "Reset" macro, I'd like a way to automatically re-draw the VBL line on click.

Thanks in advance :)
Stefano

User avatar
Full Bleed
Demigod
Posts: 4736
Joined: Sun Feb 25, 2007 11:53 am
Location: FL

Re: Draw VBL via macro code

Post by Full Bleed »

Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."

taustinoc
Dragon
Posts: 515
Joined: Mon Aug 03, 2015 6:30 pm

Re: Draw VBL via macro code

Post by taustinoc »

Is the wall a separate image from the background map? If so, you could attach the VBL to the wall token, and instead of hiding it move it somewhere out of the way.

Briawan
Kobold
Posts: 4
Joined: Mon Jun 15, 2020 7:29 am

Re: Draw VBL via macro code

Post by Briawan »

I used the eraseVBL function at the end, and it works perfectly :wink:

Thank you both guys!

Post Reply

Return to “Macros”