What are you seeing? It appears to be working correctly on my end
Printable View
I think I have worked out what was happening. If it isn't the NPCs turn in the combat tracker it fails completely if ranged is in the code. If it is the NPCs turn it works fine with ranged in the code. So it needs to be the attackers turn in the combat tracker
Sure. Sorry to be a bother
First image is heavy crossbow targeting the monk but it is the skeletons turn as it is using the crossbow
Attachment 50087
Second Image is when changing the turn to the heavy crossbow
Attachment 50088
Another issue I have noticed is if you have 2 sets of modifiers in the code it double counts the second when you roll against it. E.g. when using deflect missile with 1d10+[DEX]+5 to account for the monk level and dex modifier the dice rolls a 1 (with dex +5) and shows as 11+5 in the combat tracker instead of just 11 so when you roll against the monk it adds another 5 making it 16 you are rolling against instead of 11. (Also can't use 1d10+[DEX]+[MONK] but I think that is a FGU thing not your extension.)
Attachment 50089
I still can't reproduce. I checked and what I'm processing is the source of the damage and the target, not who has initiative. The screenshots look fine and it should work. Are you running any other extensions?
I did think about this and wasn't sure if FG handed that or not vanilla. That might be a future add.
No other extensions. I'll start a new campaign and try again. Might be a db issue in the campaign. Will let you know if I see the same in a fresh campaign
New campaign with only BCE running. Still having issues when ranged is in the effect.
I don't think it actually is the turn order. If I run the damage from the combat tracker and not the NPCs sheet the effect works (ie Expand the Offence on the combat tracker). If I do damage from the NPCs sheet it fails (I don't normally have offense open so if it isn't the NPCs turn this doesn't appear on the CT)
Attachment 50092
I'm opening the character sheet from the CT using the shield. As long as the offence is expanded in the CT it will work from the character sheet. If it is minimised it doesn't work from the character sheet. Strange that no one else is able to replicate
Attachment 50101
This has nothing to do with BCE, this has to do with FGU.
If you using a ranged attack from the NPC sheet, it will not understand ranged/melee damage.
It's only after it's parsed that it does it.
You will notice that the NPC sheet will NEVER (On the NPCs turn or not) give you a ranged effect in chat. It' not until after it's parsed that it has the show ranged, this is standard FGU.
You can tell it's a ranged damage, it will say "DAMAGE (R)" whereas any attack from the NPC sheet, will say "DAMAGE"