Skip to content

[Bug]: Missing "Name" on a Copied Token with no GM Name in Pop-up Window for Unknown Variable #5339

@Ryezen

Description

@Ryezen

Describe the Bug

Copied tokens do not show a name in the window that pops-up to prompt for an unknown variable if there is no GM name. Instead, only a period (.) appears as the Token Name. Additionally, if auto-numbering has generated a number in the GM Name, only the number appears in the pop-up.

To Reproduce

  1. Copy any token and place the copy on the map (Ctrl-C then Ctrl-V).
  2. Clear the GM Name on the copy (not the original).
  3. Create a macro with no assigned value to a variable. E.g., :
[r: playerInput]
  1. Ensure "Apply to Selected Token" is checked for the macro.
  2. Select the copy of the token (not the original token)
  3. Run the macro.

Expected Behaviour

If no GM Name exists, the token's name should appear in the pop-up input window. Perhaps more ideal, the regular token name should be the primary name that appears, followed by the GM name in parenthesis, if it exits. That would preclude just a number showing in the request versus a name if only a number exists as the GM name (e.g., Auto-numbering).

Screenshots

Image

MapTool Info

Version 1.16.2. Install type: MSI.

Desktop

Windows 11

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issueA good issue for people wanting to contribute to start with

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions