Jump to content

Can't get value modifying spells to work...


Recommended Posts

Maybe I'm doing something utterly wrong but I can't seem to be able to add buffs with Fire and Forget spells - whether I set them as Peak Value Modifier or Value Modifier, add keywords and dispell keywords or not, tick or untick "recover" in the MagicEffect, nothing works...

 

Even something as simple as to reproduce the RoastedRadstag effect (fortify carry weight) with a spell doesn't work. Enchantments work fine, potions work fine, just not spells.

 

I'm trying to add these buffs to the player by a script attached to a ConstantEffect spell - Debug shows that the script runs just fine and the spells are properly added to the player. But the effects never show up.

 

I found a workaround by attaching these magicEffects to a Potion instead of a spell, and using "PlayerRef.EquipItem(MyPotion)" instead of "PlayerRef.AddSpell(MySpell)". That works just fine. But I'm curious: are there any drastic differences from Skyrim in the way MagicEffects and Spells are set in Fallout 4?

 

I noticed there's quite a few PeakValueModifier and ValueModifier MagicEffects in the CK which are completely unused by the game - maybe there's a reason...

 

Link to comment
Share on other sites

Fire and Forget. I've tried it with as various values as the S.P.E.C.I.A.L. ones or damage multiplier for instance.

 

Debug shows the spell is added, but the called value gets never modded.

Link to comment
Share on other sites

Oh, ok, no, it's not an ability - abilities require the "Constant Effect" flag, don't they?

 

It's just a FireAndForget, Personal Delivery, flagged with "NoArea" and "Recover" (I've tried both ways anyway). They have a magnitude and a duration - pretty much like the RoastedRadstag Potion, which uses the FortifyStrengthFood MagicEffect, except in this case I removed the Vanilla keywords and added my own set of keywords.

Link to comment
Share on other sites

Actually, not always as far as I can tell. I have a FireAndForget spell casting another FireAndForget spell on the player and both work fine. They both use script-flagged MagicEffects. But when I use ValueModifier instead of Script, the spell does fire but the magicEffect's associated Item does not apply.

Link to comment
Share on other sites

Strange, uh? Used to work perfectly in Skyrim. I guess they've hard-coded the magic system differently in FO4.

 

Meanwhile, I'm using potions instead of spells to achieve what I want, but it still bothers me to try and understand why some spells, like the WellRested thing for instance, do fire in Vanilla when my spells don't... :ermm:

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...