If it helps these calculations are from the Original Extended automation and overlays https://forge.fantasygrounds.com/shop/items/1/view
The calculations are documented about 2/3rds of the way down the page. I have attached them for reference.
https://www.fantasygrounds.com/forum...3&d=1784125218
Although the H,T,Q tags can handle some of these there are some spells that cannot be handled by those.
For, example Bullet Shield which says
'The warded creature gains a +4 deflection bonus to AC against firearm and ranged attacks, with an additional +1 to the bonus for every five caster levels you have (to a maximum of +8 at 20th level)'
The effect previously used for this was - Bullet Shield;AC:4 [d5CL4], deflection, ranged

