Jump to content

Recommended Posts

Posted

Hello all.
I hope I can explain myself well.
I'm looking for a way to add an enchantment to the player via script, without using the arcane enchanter to disenchant an item and learn the enchantment.

I've been looking for a script command that does this, such as AddSpell for spells, but I can't find anything for Enchantments. . .

Anyone have any ideas on how this could be done?

Thanks!

Posted
Enchantment FortifyIllusionSomething = Game.GetForm(0xBE003) as Enchantment
FortifyIllusionSomething.SetPlayerKnows(True)

Use false to unlearn the enchantment. Works for alchemy/whatever else too

  • 2 weeks later...
Posted
  On 11/23/2021 at 1:52 PM, Sphered said:
Enchantment FortifyIllusionSomething = Game.GetForm(0xBE003) as Enchantment
FortifyIllusionSomething.SetPlayerKnows(True)

Use false to unlearn the enchantment. Works for alchemy/whatever else too

 

Thanks Sphered!!

  • 2 years later...
Posted

I know this is years later, but, for clarification, that snippet of script, can that be entered in the console or is it needing to be built into a mod itself. Cuz I'm very much looking to do the same thing.

Posted

What was written is intended for use in a papyrus script and not the console.

Since SetPlayerKnows is an SKSE provided function, I doubt that there is a console equivalent.

  • Recently Browsing   0 members

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