-
Notifications
You must be signed in to change notification settings - Fork 6
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
Various Spellstrike issues #14
Comments
This macro was written quite some time ago. Looks like standby spell filtering broke at some point and needs to be fixed, so I will look into it. For the whole limiting spells based on selections, listeners would need to be setup to change the contents of the selection menus. I was at one point going to go away from the prefab Dialogs I have been using since like v0.8 of foundry, and get to making those, but since they weren't broken, it was put on the backburner. The reroll using hero points could be optimised, but it can't be triggered by the performed roll, since that may mean multiple duplicate hooks or a hook setting/disabling another hook on every use, this also means if a refresh is needed for one or the other reason, that the hook would be lost. This is more module territory than macro territory. (No I don't contribute or work on worbench.) As for posting the chosen spell in the strike, that could be easily done, and I will look into it. It possibly needs a bit of a, or almost complete, rewrite, but since I don't personally use it anymore, I haven't been actively working on it. I will take these suggestions into consideration as some of these affect the other two macros which this one originally comes from. Most macros are written to serve a purpose through simplicity as opposed to modules that usually have nicer interfaces and are more actively developed. Which is why some of the macros, especially the contributed ones, have not been updated or worked on in quite some time. If you would like to integrate spellstrike into a module, or contribute code to it, you are more than welcome to as well. |
I wanted to make a note of the things I noticed. I've fixed some since then. I think reroll from the card could be done via an embedded macro link in the chat card html. Could even the spellstrike macro itself, not yet another macro. The macro can find the context it was invoked from and determine it was as a reroll from a strike card. Pretty sure I can do that without issues. Is that actually better? IDK, maybe not. |
I fixed several other things as well, such as filtering out cantrips when standby spell is chosen, switched to a Dialog.prompt for standby spell, center aligned the text when a stanby spell is going to be used, injected the spell link into the strike. I guess it could just be placed in the ChaMessage with it's applicable variables 🤔 |
The strike chat message already has everything needed to reroll. The macro gets the But there would be this "reroll using hero point" link in every spellstrike message. Don't really like that. Right click menu would be the way, but I can't see how to do that. My idea for standby spell would be to get rid of the initial dialog for it and put it on the main one. Have a line:
When selected, it does the "Choose a Spell" / "Choose a slot to expend" text change and filters the spell list to disable or hide the incorrect options. Or undoes it when unselected. |
How do you add a button with an listening function that doesn't go away when the client reloads? Embedded all the javascript into the html of the flavor text? |
I was hoping to just have to embed the call to execute the script 🤔 |
Updated issue list. Lots are fixed now. Found some new ones. |
These were originally added to have the damage card add certain things, like persistent damage bleed/fire/etc or additional damage when hitting a creature with a specific trait. Or in the case of Acid Splash, add splash, and add persistent damage on a critt. With changes in both the system and the macro, some of these have become obsolete. But with others, they will have to be injected somehow into the rolls as this is a feature as opposed to a detriment. I believe these spells are very few now.
Since a link is added to the spell description in the strike, additional effects that are draggable, such as conditions could be easily dragged from the pop up. Throwing a spell description for attack spells is another way to clutter the chat, which is already pretty cluttered when rolled. There may be a better way of doing this. The descriptions could be posted as tooltips instead of to the chat itself. |
Yes, I think the flavor text should be added to spells with damage rolls too, not just those without. It would probably look different than what's generated (and not used), since there is already a damage card to put it into, but extra information could be added. The spell effects that aren't shown are something that could be here too. And some spells filling the entire chat log with a description every time they are cast is indeed very annoying. But just the effect link, if the spellstrike outcome produces one, would be nice. I looked at removing the stuff for persistent, splash, etc. that the system does now. I think there weren't that many that were entirely obsolete because often something other than double damage happens on a crit and the system doesn't handle any special crit damage. Speaking of minimizing chat log, it's possible to combine the damage roll from both the strike and the spell into a single damage card. Not a single damage instance with damage combined! But like base + splash have their own buttons in one card and can be applied separately. I'm not sure if that's better, as the all the flavor text, traits, the attack title, and also the data in the Message object about the item doing the damage, would be an issue to share with both damages in one card. |
I noticed these while working on the macro.
Dialog.confirm()
factory method instead of making Yes/No dialogs.speaker
andflags
are not valid options totoMessage()
lvl
but there is no field of that name, it'scastRank
.The text was updated successfully, but these errors were encountered: