-
Notifications
You must be signed in to change notification settings - Fork 46
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
[BUG] "Show Actors" option only shows the one character selected in User Configuration, not all actors owned by that Player #453
Comments
I might take a swing at making the change myself, but I suspect there may be a problem with what I'm looking for, so hoping someone who knows better than I do will weigh in... thank you! |
Replaced that block with this:
I suspect I've made some basic error or neglected something, but this appears to be doing what I was hoping. So far have just been hacking the file in place, but I can fork the repo and submit a pull request if you'd like. |
(Note: that it ignores disposition, and just uses the more direct monks-tokenbar include/exclude attribute ) |
That's not a bug, that's how it was designed. If you include all the player's owned characters, that could drop a bunch of characters onto the tokenbar that aren't necessarily intended to be there. The only reliable way to include actors is to limit it to just the selected actor, that way you know it's supposed to be included, anything else is just begging for trouble. |
Okay, I understand. In my setup, you could exclude actors by choosing the "Exclude" option in the "Show on Tokenbar" setting, which seems natural. My use case is a scenario where are multiple characters per player, but we're using theater of the mind, so tokens don't necessarily appear in scene. (This would likely be a common approach for those running lvl 0 "funnel"-style adventures.) I was hoping to have an easy way for players to see all of their characters and access their sheets, and I thought the "Show Actors" option was meant to support that. Maybe there's another module for that, or I can hack together something myself. Appreciate the consideration! |
Describe the bug
"Show Actors" option only shows the one character selected in User Configuration, not all actors owned by that Player. (I'm using the Dungeon Crawl Classics system, v .040.0)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
My expectation would be that all actors owned by the player would appear if that option is checked, assuming their disposition is set to "friendly." For GMs, that means all player-owned actors set to friendly.
Please complete as much of the following information as possible:
Find the Culprit
to make sure it isn't a module interaction.: NoAdditional context
Add any other context about the problem here.
It looks like this code in the getCurrentTokens() function in tokenbar.js is responsible. I'm not very knowledgeable about the Foundry API but it looks like it's just grabbing a character attached to the user object (e.g. the one set in the Config I mentioned above), and not attempting to iterate through all actors to find ones owned by the player, but I could be wrong :
The text was updated successfully, but these errors were encountered: