PDA

View Full Version : Correct coding for bomb weapons



WinterSoldier7
February 14th, 2023, 15:59
What effect would I need to add to bomb, projectile weapons, so that those affected make a check?

I have an extension that allows me to add effects to items, but don't know what to put to get this effect;

Each creature within 5 feet of the explosion point must succeed on a DC 12 Constitution saving throw or be blinded and deafened until the end of their next turn.

Appreciate any help

LordEntrails
February 14th, 2023, 16:07
Without an extension, FG doesn't calculate range to targets. So it won't know what tokens are within the AoE. You need to target them manually.
For an NPC, you can see the wiki 5E Effects for Advanced Automation - Fantasy Grounds Customer Portal - Confluence (atlassian.net) (https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996642031/5E+Effects+for+Advanced+Automation#Saving-Throws) for the text string that a ranged power uses to make DC saves (vs attack rolls) and then apply conditions on fails. That page has other powers for PCs etc as well.

WinterSoldier7
February 14th, 2023, 16:49
This helps loads, thanks!

Zacchaeus
February 14th, 2023, 17:36
If you are using an extension to add effects to an item then it's not going to matter what the wording is since the wording isn't going to be parsed. You'll be creating the effects in the item just as you would create them in the actions tab. In this case you want a save effect and an apply condition effect.

WinterSoldier7
February 14th, 2023, 18:18
Yeah, been poking around and getting myself all kinds of confused with it all.

These bombs are a new idea I'm trying out, so not yet common enough to worry about too much - might not need to code anything in.

LordEntrails
February 14th, 2023, 19:14
Really, a bomb is no different than a fireball scroll right? You just have to decide if you want the action tied to the item (and therefore an extension) or if you want to just set it up like a spell scroll and detemrine how you are going to track quantity (uses, ammo, etc)

Nyarly Dude
February 14th, 2023, 19:53
Haven't poked at it in a while, but IIRC "B9's Spell Tokens Extension" ( https://forge.fantasygrounds.com/shop/items/149/view ) provides a means to associate a spell token (not provided) with a spell, and then to target all tokens within its area with a click. With a 5' radius manually targeting should rarely be all that tedious unless you're dealing with a lot of Tiny combatants, though. For frequently triggered effects with a larger radius it might save you some work.

For a goofier approach using a free extension, creating a new "NPC" with an appropriate aura ( "Aura Effects", https://forge.fantasygrounds.com/shop/items/32/view ) might serve. Hm, you'd want the "NPC" at the impact point with an initiative right after it was triggered, so that it'd force saves when its "turn" came up. Then remove the "NPC" once it's had its "turn". This sort of approach wouldn't allow instantanous application of the effect, though, which might be a problem if whomever is using the weapon has multiple attacks.

WinterSoldier7
February 14th, 2023, 19:54
Ahhh, spell scrolls - you're right! I'll have go