View Full Version : Making Environmental NPC with Spells
Holo74
February 9th, 2021, 07:39
I want to make a statue that when the player gets near it causes them fear. It also has an additional effect that makes a creature immune to damage. I've been wondering how I could make an NPC that has these spells on it. As well as making something like the Enchanted Spring where it can cast bless and a few other spells on the player. It seems simple at first but now I'm neck deep in XML and wondering if I'm even going in the right direction to create these types of things or maybe I'm in the right place. I tried to find general effects but it seems those only apply to the players and I must have the string parser do most of the work to create those actions appear in the combat tracker. Maybe I'll just have to manually manage everything but I really would prefer going deeper into programming as I'm already fond of coding as it is and love to automate as much as possible.
Maetco
February 9th, 2021, 09:21
I'm not sure what you are actually doing since you are using XML. But how I would proceed was, find an NPC which already has the effect (or similar) in their actions / spells /etc. and copy that NPC. Then rename it, customize the action and done. With stuff like damage immunity, I don't know if the text can trigger them, so you need to create a custom condition using the syntax found here https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996642031/5E+Effects+for+Advanced+Automation and type it yourself. For damage immunity it is IMMUNE: all.
Zacchaeus
February 9th, 2021, 10:01
For an environmental NPC I just use the commoner stat block and amend that to whatever is required (that is make a copy of the stat block and amend the copy). See the wiki here for details on what strings to use to achieve various things. https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996641934/5E+NPCs+and+Encounters For the spell I would just give the NPC the Innate Spellcasting trait and include the save DC (if there is one) in the wording
Holo74
February 9th, 2021, 16:32
This is helpful however sometimes their isn't a spell that is available. Like, I want my crystals to grant a creature invulnerability for a single round as an innate spell that for simplicity sake is at will. So I try to make my own spell that doesn't have any components and lasts only 1 round. I tried to do this by copying the invulnerability wording from xanathars guide exactly but when I put the creature into the combat tracker it shows up but doesn't have the [EFF: Invulnerability] next to the spell. The Xanathars guide does have that next to it and I want my spells to auto fill like that on my NPCs.
Edit: I've found out why the effects weren't showing. Apparently changing the duration to 1 round just gets rid of the effect completely. Now I just need to solve how to target something else and for one round without the effect disappearing.
Holo74
February 9th, 2021, 17:25
So, I can't get my NPC to have the IMMUNE: all effect apply when they cast the spell. Is that something I just need to do myself when they cast or can the spell automatically come with the effect IMMUNE: all when they enter the combat tracker
Zacchaeus
February 9th, 2021, 17:33
Yes, there's no wording that you can use that would produce an immunity to anything. So that one you'd need to create in the effects dialog and apply it when needed.
Holo74
February 9th, 2021, 17:36
Is there any place where I can go over what type of things can be parsed for NPC spells when they enter the combat tracker?
Zacchaeus
February 10th, 2021, 12:30
Is there any place where I can go over what type of things can be parsed for NPC spells when they enter the combat tracker?
Here https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996641934/5E+NPCs+and+Encounters
Holo74
February 10th, 2021, 18:47
Thank you very much for helping. Hopefully my players don't circumvent this one specific thing that I'm doing but who knows, they are as chaotic as a tornado sometimes.
Powered by vBulletin® Version 4.2.1 Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.