Open SoilentBrad opened 11 months ago
@SoilentBrad thanks, the console points me to where the issue could be.
@SoilentBrad this should now work on version 2.0.2, I had to disable some functionality that is more specific to 5e system (not the rule set but the actual 5e Foundry system). I will investigate if it's possible to somehow use it in the PF2e system. Please have a look at the new version and let me know
Looking good, @vtt-lair! The chat card is coming up.
Unfortunately, the AC bonus doesn't appear to be applying, whether I have it set to automatic or manual and select the type of cover. I had an AC 12 creature with standard cover (+2 AC), but was still able to hit it with a total 12 roll. Is there something I'm missing or that I need to do to apply it? Or is that the part you had to disable?
@SoilentBrad I'll have to have a look at it. Unfortunately I don't play PF2e myself and the code for this system agnostic version wasn't all done by me. It's working on DnD5e, but is obviously a different system. So I will have to take a look and hopefully isn't too much separate work in order for it to work on PF2e, otherwise it might have to be scrapped. Cross your fingers
I've flagged the module for DnD 5e again, as PF2e doesn't look like it uses effects the same way (or at all?) I'll play around a bit during the next week or so to see if anything can be done so that the effects also works for PF2e.
I'm sorry for the half-hope that this release caused, but will keep you updated.
No worries. I couldn't even begin to understand the work that goes into supporting multiple systems. It was difficult enough trying to figure out some minor data entry - Foundry's coding is a little beyond me.
Thanks for trying, and keep me posted if you manage to get it working.
Curious @vtt-lair. Did you ask about this in the PF2E discord server? They have a foundry mod development help channel that might help you find the necessary things to connect to. Or does this only use effects to apply the cover?
As I mentioned on discord, I'm not getting the chat card and it's not applying automatically, so I'm not sure what I'm doing wrong. You said all of the settings looked right, so there might be something else. Here are the screenshots from Settings.
You also asked me about errors. These are all of the things that popped up.
foundry.js line 753:
Not sure if there was anything else you needed that would help. There are errors for Dorako UI and PF2E system, and they're the same regardless of whether I target a creature that should have cover. I tried deactivating Dorako in case there was a conflict, but the only change was that the errors didn't trigger on an attack. The chat card still didn't pop up.