Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add a reference to item-id in Chat Messages generated from items #343

Closed
eclarke12 opened this issue Sep 29, 2021 · 4 comments
Closed
Labels
automation Involves built-in automation feature New feature or request good first issue Good for newcomers
Milestone

Comments

@eclarke12
Copy link

Currently it seems like items rolled to chat do not include the item-id in the html.

This means modules such as Maestro cannot infer that a chat message came from an item easily and find the relevant item (eg. in order to play an associated "Item Track" sound).

Generally other systems (eg. dnd5e) include a data-item-id attribute in the outer element of the chat message.

I am not overly familiar with the Lancer system so forgive me if I'm missing something

@eclarke12 eclarke12 added feature New feature or request triage To be assessed by maintainer labels Sep 29, 2021
@Eranziel Eranziel added automation Involves built-in automation and removed triage To be assessed by maintainer labels Jan 9, 2022
@Eranziel Eranziel added this to the v1.1 milestone Jan 9, 2022
@Eranziel Eranziel added good first issue Good for newcomers help wanted Extra attention is needed and removed help wanted Extra attention is needed labels Jan 9, 2022
@mason-bially
Copy link
Collaborator

mason-bially commented Jan 14, 2022

I may have accidentally solved this during my work on #375 I guess I'll check to see if my branch fixes this and if there is any other improvements I can make related to this.

@eclarke12 or anyone else, are there other example modules you can think of like this?

@eclarke12
Copy link
Author

I may have accidentally solved this during my work on #375 I guess I'll check to see if my branch fixes this and if there is any other improvements I can make related to this.

@eclarke12 or anyone else, are there other example modules you can think of like this?

None that I'm aware of sorry.

@mason-bially
Copy link
Collaborator

mason-bially commented Jan 17, 2022

Well I can confirm that I have this working on my dev branch. Though before I forget, one will need to use data-id instead, since that's what the lancer system's internal helpers generate for the case I was working to fix. This shouldn't be an issue for Maestro, even if the id it reads isn't strictly speaking an item-id all the time, since they are only looking for ids in their system anyway.
image

@Eranziel Eranziel modified the milestones: v1.1, v1.2 Apr 20, 2022
@mason-bially
Copy link
Collaborator

Given the current caveat above this has been fixed as of #375. I have pending documentation for Maestro to be put on the wiki (but I need access).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation Involves built-in automation feature New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants