maptool icon indicating copy to clipboard operation
maptool copied to clipboard

[Feature]: New VBL - Cover

Open ColdAnkles opened this issue 2 years ago • 8 comments

Feature Request

The existing suite of VBL tools are excellent, but one use case I've come across and not found a satisfactory solution to is cover: an area of a map that hides anything within, but does not prevent those within from seeing out.

The Solution you'd like

A new VBL definition alongside the existing three: Cover.

Tokens outside the cover area cannot see into the cover area - identical to wall VBL in this case. Tokens inside the cover area are unaffected by the cover area - identical to both hill and no VBL in this case.

Relevant drawCoverVBL() setTokenCoverVBL() etc. also added.

Alternatives that you've considered.

I am currently using Wall VBL on a "terrain" token, and removing the VBL when it is the turn of a token inside of the terrain, and replacing it at the end of their turn.

It works, but is not very good, and requires fiddly, easy to mistake VBL removal/reapplication.

Additional Context

The Hero Cannot See into Cover image

The Troll in Cover, is unaffected, and can see the Hero outside. image

ColdAnkles avatar Nov 03 '22 23:11 ColdAnkles

Your existing solution sounds like you're using solid VBL. Have you tried using just the outline VBL? I believe that will do what you want...

Azhrei avatar Nov 03 '22 23:11 Azhrei

Outline VBL?

ColdAnkles avatar Nov 03 '22 23:11 ColdAnkles

Your existing solution sounds like you're using solid VBL. Have you tried using just the outline VBL? I believe that will do what you want...

An outline would not allow those under cover to see out of it. The request is akin to Pit VBL, just working in the opposite direction.

kwvanderlinde avatar Nov 03 '22 23:11 kwvanderlinde

Ah, yes; they want to see out. You’re right, Pit VBL in reverse. Tip VBL? 🙂

Azhrei avatar Nov 03 '22 23:11 Azhrei

I like this feature as it would address not only cover but also, e.g., tall towers where you don't want outsiders to be able to see the top, while those on top can still see their surroundings.

There is a bit of a hack that can be used today that mostly achieves this effect, but it's not ideal. The key is to draw your "cover" as an area of Hill VBL, then around that add a thin border of Hill VBL with a small gap between. Finally add a little line connecting the outline to the solid portion. like this: image Note the little connection at the bottom: image

The effect is almost exactly as you want, provided those outside aren't aligned with that small line we needed to add: image

The drawbacks are

  • it doesn't work at all angles. I.e., a token directly beneath the connection can still see inside.
  • the vision outline looks a little janky.
  • it's tedious to do and probably unintuitive.

A true Cover VBL would be able to address these drawbacks.

kwvanderlinde avatar Nov 03 '22 23:11 kwvanderlinde

Tested on 1.15.0-rc.2. Working as expected.

kwvanderlinde avatar Mar 28 '24 07:03 kwvanderlinde

GUI should have a modern icon: image

How will that be addressed?

Baaaaaz avatar Mar 28 '24 08:03 Baaaaaz

Good point @Baaaaaz.

What kind of icon do we want for it? I imagine something like this: image

kwvanderlinde avatar Mar 28 '24 17:03 kwvanderlinde