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

Cast spell on monster details page #33

Closed
ParadoxGopher opened this issue Aug 31, 2019 · 4 comments
Closed

Cast spell on monster details page #33

ParadoxGopher opened this issue Aug 31, 2019 · 4 comments

Comments

@ParadoxGopher
Copy link

if I run an encounter with a spellcasting monster I open up the monster details page to see its spells
I can click the to hit button to roll the hit but then if I need to roll damage I first need to open the spell page to klick the damage roll

@kakaroto
Copy link
Owner

There's nothing that can be done for that, there is no way of clicking inside of the tooltip. If you have an idea on how to make it work, I'm open to suggestions.

@ParadoxGopher
Copy link
Author

would it be possible to follow the link or parse the popup content?

@kakaroto
Copy link
Owner

Ok, I've investigated this a bit, and it looks like I can fetch the tooltip's content. I was worried about the fact that long spells are cropped, but the server returns the full description, it's just the tooltip display that is cropped. Unfortunately, just like a spell page, there's no real information on how to do an attack (no to-hit, what damages, you do, etc..) and I'm not sure how to implement this. I was thinking of just parsing all the roll formulas and display them next to the spell but it would make things ugly... one other possibility that I just thought of, is to have a beyond20 icon next to each spell and clicking it would display the spell card in the VTT, then you can click those dice formulas from the VTT chat directly. That would work much better I believe.
Alright, that's the plan for now and I'll try to add this for the next release. If you have a better suggestion on how to best implement it, let me know.

@ParadoxGopher
Copy link
Author

ParadoxGopher commented Sep 1, 2019

as long as it will be whispered as by the setting whisper monster roll this sounds like a good plan

one thing just came to my mind:
is the spell attack modifier and the spell DC included in the template ? would be neat to have them with roll button for the attack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants