vitaeexmorte Posted August 11, 2023 Share Posted August 11, 2023 (edited) Goal: A spell that either ignites or extinguishes various light sources in an area around the caster, primary flammable torches, candelabrum and braziers. I got part of it working by altering a spell found in the mod 5E Spells (https://www.nexusmods.com/baldursgate3/mods/125). Prestidigitation only works as a single target version, I changed SpellType from "Target" to "Shout" and "TargetArea" to "AreaRadius" which worked to make it AOE, removed targeting Characters. Problem: It works on torches and candles but ignores iron Candelabrum and braziers never work. Either it is not targeting them or target every item, applying the burning status to everything, even normally non-targetabke things like the glowing crystals in the Underdark. \Public\Shared\Stats\Generated\Data\Object.txt stats that Candelabrum have A) inherited the "Torch" flag from _LightSouce and B) got it's own too. I can not find braziers. Already tried adding a custom flag and setting that as target, didn't work out.Funnily enough, the torch has not the flag "Torch" itself only inherited from _LightSource. But candles have both. And both work. new entry "OBJ_Candelabrum"type "Object"using "_LightSource"data "Weight" "7"data "GameSize" "Small"data "Vitality" "10"data "Flags" "Torch" new entry "_LightSource"type "Object"using "_BaseItem"data "Vitality" "4"data "Flags" "Torch;Grounded"data "FireResistance" "Immune"data "NecroticResistance" "Immune"data "PoisonResistance" "Immune"data "PsychicResistance" "Immune"data "RadiantResistance" "Immune" The spell so far, the bold part is what is properly wrong somehow. If I remove the and Tagged('TORCH') every damageable object starts to burn but if I add it to the TargetConditions, said items are no longer valid targets. new entry "Target_Prestidigitation"type "SpellData"data "SpellType" "Shout"data "Level" "0"data "SpellSchool" "Transmutation"data "SpellProperties" "TARGET:IF(Item() and Tagged('TORCH') and HasStatus('BURNING')):RemoveStatus(BURNING);TARGET:IF(Item() and Tagged('TORCH') and not HasStatus('BURNING')):ApplyStatus(BURNING,100,-1)"data "TargetConditions" "(Item())"data "AreaRadius" "18"data "Icon" "Spell_Transmutation_Prestidigitation"data "DisplayName" "db65ca99-df3d-4492-9daa-28bf7861dcef;1"data "Description" "e8442688-04f1-4751-a863-fe05abc86b89;1"data "TooltipStatusApply" "ApplyStatus(PRESTIDIGITATION,100,1)"data "PreviewCursor" "Cast"data "CastTextEvent" "Cast"data "CastSound" "Spell_Cast_Control_Friends_L0"data "SpellAnimation" "554a18f7-952e-494a-b301-7702a85d4bc9,,;,,;ab7b6aac-b3c9-4918-8f17-f777a94dcb5e,,;57211a11-ed0b-46d7-9369-81df25a85df6,,;22dfbbf4-f417-4c84-b39e-2039315961e6,,;,,;5bfbe9f9-4fc3-4f26-b112-43d404db6a89,,;,,;,,"data "UseCosts" "ActionPoint:1"data "VerbalIntent" "Utility"data "SpellFlags" "HasVerbalComponent;HasSomaticComponent;IsSpell"data "PrepareEffect" "2fa6b127-6f8a-4150-8be6-6f62b7a85911"data "CastEffect" "d2ef6b50-243f-478d-85c6-892086a1477e" In the attached image you can see the targeting problem. the vase, chest and hinge of the hanging brazier targeted (causing it to fall) and would burn if I cast the spell but shouldn't.If I add the and Tagged('TORCH'), only the torch would be targeted. So my thought is making the spell AOE somehow interferes with it recognizing what counts as a "Torch" when it is an intractable item. Any help would be appreciated. Edited August 11, 2023 by vitaeexmorte 1 Link to comment Share on other sites More sharing options...
Recommended Posts