Tiziano74 Posted November 20, 2021 Posted November 20, 2021 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!
youbetterwork Posted November 23, 2021 Posted November 23, 2021 You can't teach enchants with scripts. But you could add an item to the player so they could learn the enchant that way.
Sphered Posted November 23, 2021 Posted November 23, 2021 Enchantment FortifyIllusionSomething = Game.GetForm(0xBE003) as Enchantment FortifyIllusionSomething.SetPlayerKnows(True)Use false to unlearn the enchantment. Works for alchemy/whatever else too
Tiziano74 Posted December 6, 2021 Author Posted December 6, 2021 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!!
darnahroc Posted May 27, 2024 Posted May 27, 2024 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.
IsharaMeradin Posted May 27, 2024 Posted May 27, 2024 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.
darnahroc Posted May 27, 2024 Posted May 27, 2024 OK ty for that information, it at least gives a direction to continue my research in.
Recommended Posts