Skip to content

[Feature]: Add setMapLightingStyle() Function and Ability to Set other Map Settings via Macros #6042

Description

@Ryezen

Describe the Problem

(Just following the example suggested here, lol):

"I'm always frustrated when..." I go to toggle a setting that can be toggled via menus, but there isn't a macro function() that can do the same thing.

Case in point is various Map settings, such as Lighting Style, Vision Distance, and Grid Settings.

The Solution you'd like

I would like to be able to change map aspects via macro functions. Maybe something like setMapLightingStyle() as one example (and, in my particular case, the most significant, since I'm unable to adjust scene data that would look better toggling between map lighting styles based on time-of-day changes).

Would actually be nice if ALL of the variables that can be used in the createMap() function could have associated macro functions() to allow adjusting them on an existing map:

    "display name", "Display Name",
    "player visible", json.true,
    "vision type", "NIGHT",
    "vision distance", 600,
    "lighting style", "OVERTOP",
    "has fog", json.true,
    "ai rounding", "CELL_UNIT",
    "grid", json.set("{}",
            "type", "Square",
            "color", "#FF0000",
            "units per cell", 20,
            "size", 200,
            "x offset", 7,
            "y offset", 11
    ),
    "background paint", "asset://c93660c09e3d3f9aff04df49a6c594b4",
    "map asset", "asset://014aaa10a10b5ddcbbe006f3c22188c2"

Alternatives that you've considered.

I've considered writing scripts that would cycle through all the lights on a map and set to them to a dimmer or brighter variant to mimic what happens when toggling the Map Lighting Style between Environmental and Overhead. While the actual scripting wouldn't be crazy complex, it requires duplicate light entries for an effect that's already baked into MapTool.

Additional Context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureAdding functionality that adds value

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions